Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
phieri committed Oct 12, 2024
1 parent da1dd3a commit c2e0e38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<head>
<title>SWEREF 99 TM</title>
<meta name="color-scheme" content="light dark">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
<script src="script.js" defer></script>
<meta name="format-detection" content="telephone=no">
<meta name="description" content="Visar koordinaterna för nuvarande position här i formatet SWEREF 99 TM.">
</head>
<body>
<h1>Nuvarande SWEREF 99 TM</h1>
<h1>BETA</h1>
<div id="uncert"></div>
<div class="northing" id="sweref-n">N</div>
<div class="easting" id="sweref-e">E</div>
Expand Down
1 change: 1 addition & 0 deletions _site/om.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>Hjälp sweref99.nu</title>
<meta name="color-scheme" content="light dark">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
<meta name="format-detection" content="telephone=no">
<meta name="description" content="Hjälpsida för sweref99.nu">
Expand Down
4 changes: 2 additions & 2 deletions src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ document.addEventListener(
maximumAge: 30000,
timeout: 27000,
};

const watchID = navigator.geolocation.watchPosition(success, error, options);
},
false,
Expand All @@ -61,7 +61,7 @@ btn!.addEventListener("click", async () => {
try {
const shareData = {
title: "Position",
text: "SWEREF 99 TM: N E",
text: swerefn!.textContent + " (SWEREF 99 TM)",
url: "geo:"
};
await navigator.share(shareData);
Expand Down

0 comments on commit c2e0e38

Please sign in to comment.