Skip to content

Commit 969a1af

Browse files
author
Andreas Hjortland
committed
Removed the solution from index-START.html
1 parent 5029405 commit 969a1af

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

21 - Geolocation/index-START.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,6 @@ <h1 class="speed">
5757
/*Compass: https://thenounproject.com/search/?q=compass&i=592352*/
5858
</style>
5959
<script>
60-
const arrow = document.querySelector('.arrow');
61-
const speed = document.querySelector('.speed-value');
62-
63-
navigator.geolocation.watchPosition((data) => {
64-
console.log(data);
65-
speed.textContent = data.coords.speed;
66-
arrow.style.transform = `rotate(${data.coords.heading}deg)`;
67-
}, (err) => {
68-
console.err(err);
69-
alert('HEY! YOU GOTTA ALLOW THAT TO HAPPEN!!!');
70-
});
71-
7260
</script>
7361
</body>
7462
</html>

0 commit comments

Comments
 (0)