Fixed tabs/spaces
parent
5a7273998d
commit
1b41bc1d4e
2
main.js
2
main.js
|
@ -11,7 +11,7 @@ if (!'geolocation' in navigator) {
|
||||||
const WID = navigator.geolocation.watchPosition( function (loc) {
|
const WID = navigator.geolocation.watchPosition( function (loc) {
|
||||||
// got speed
|
// got speed
|
||||||
if (loc.coords.speed) {
|
if (loc.coords.speed) {
|
||||||
console.log('Got speed:',loc.coords.speed)
|
console.log('Got speed:',loc.coords.speed)
|
||||||
// convert to mph and display
|
// convert to mph and display
|
||||||
speedDiv.innerHTML = (2.23693629205*loc.coords.speed).toFixed(1)
|
speedDiv.innerHTML = (2.23693629205*loc.coords.speed).toFixed(1)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue