Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5029405 commit 969a1afCopy full SHA for 969a1af
21 - Geolocation/index-START.html
@@ -57,18 +57,6 @@ <h1 class="speed">
57
/*Compass: https://thenounproject.com/search/?q=compass&i=592352*/
58
</style>
59
<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
72
</script>
73
</body>
74
</html>
0 commit comments