Compare commits
No commits in common. "866436fa82882dffe6f2f45bd303effc67d92a37" and "b902b081d7e2e80fdf167657f3c2fda79b888985" have entirely different histories.
866436fa82
...
b902b081d7
@ -1,7 +1,6 @@
|
||||
<script>
|
||||
import axios from "axios";
|
||||
import { _ } from "svelte-i18n";
|
||||
import { fade, slide } from "svelte/transition";
|
||||
import { apikey, api_endpoint, page, stationinfo } from "./store.js";
|
||||
function init(el) {
|
||||
el.focus();
|
||||
@ -32,7 +31,8 @@
|
||||
general = data;
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.log(e);
|
||||
error = true;
|
||||
errormessage = e.response.data.short;
|
||||
});
|
||||
}
|
||||
function stats_runners() {
|
||||
@ -46,7 +46,8 @@
|
||||
runners = data;
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.log(e);
|
||||
error = true;
|
||||
errormessage = e.response.data.short;
|
||||
});
|
||||
}
|
||||
function stats_orgs() {
|
||||
@ -60,7 +61,8 @@
|
||||
orgs = data;
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.log(e);
|
||||
error = true;
|
||||
errormessage = e.response.data.short;
|
||||
});
|
||||
}
|
||||
Array.prototype.cycle = function (str) {
|
||||
@ -91,7 +93,6 @@
|
||||
>
|
||||
<div class="max-w-xl w-full">
|
||||
{#if current_page === "general"}
|
||||
<div transition:slide|local>
|
||||
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900">
|
||||
{hours}:{minutes}:{seconds}
|
||||
</h1>
|
||||
@ -122,9 +123,7 @@
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{:else if current_page === "runners_distance"}
|
||||
<div transition:slide|local>
|
||||
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900 mb-5">
|
||||
Top-Läufer
|
||||
</h1>
|
||||
@ -173,9 +172,7 @@
|
||||
{/each}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{:else if current_page === "orgs_distance"}
|
||||
<div transition:slide|local>
|
||||
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900 mb-5">
|
||||
Top-Firmen
|
||||
</h1>
|
||||
@ -215,7 +212,6 @@
|
||||
{/each}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{:else}
|
||||
<!-- content here -->
|
||||
{/if}
|
||||
|
Loading…
x
Reference in New Issue
Block a user