Compare commits
2 commits
60ec4ef25e
...
1a473db9f8
Author | SHA1 | Date | |
---|---|---|---|
1a473db9f8 | |||
3000cb89ca |
2 changed files with 23 additions and 1 deletions
16
frontend/src/lib/gps.worker.ts
Normal file
16
frontend/src/lib/gps.worker.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
if (!("geolocation" in navigator)) {
|
||||
/* geolocation is not available */
|
||||
return;
|
||||
}
|
||||
|
||||
const watchID = navigator.geolocation.watchPosition((position) => {
|
||||
console.log(position.coords.latitude, position.coords.longitude);
|
||||
});
|
||||
|
||||
onmessage = () => {
|
||||
console.log("Props");
|
||||
};
|
||||
|
||||
export { };
|
|
@ -4,10 +4,11 @@
|
|||
export let data;
|
||||
</script>
|
||||
|
||||
|
||||
<Header transparent></Header>
|
||||
<img src='/splash.jpeg' alt='splash'>
|
||||
|
||||
<div>
|
||||
<div id='divider'>
|
||||
<div id='banner'>
|
||||
<p>Percorso <b>{data.name}</b></p>
|
||||
<p id='duration'>Durata {Math.floor(Number(data.duration) / 60)}'</p>
|
||||
|
@ -17,6 +18,11 @@
|
|||
|
||||
|
||||
<style>
|
||||
#divider {
|
||||
background: white;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
|
|
Loading…
Reference in a new issue