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