Skip to content

Commit cd50b94

Browse files
authored
Merge pull request wesbos#57 from Andreas-Hjortland/21_Geolocation_Start
Removed the solution from index-START.html
2 parents 655daee + 969a1af commit cd50b94

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)