From 47fdd3d073a427f28d13e4fb2ea280a39f1e21e5 Mon Sep 17 00:00:00 2001 From: ana Date: Sun, 8 Aug 2021 19:21:06 +0200 Subject: fix: finish the level input --- src/App.svelte | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/App.svelte b/src/App.svelte index 502f465..1a7aa7f 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -5,6 +5,7 @@ import { getMatches } from "./bestiary"; import day from "dayjs"; import relativeTime from "dayjs/plugin/relativeTime"; + import { onMount } from "svelte"; day.extend(relativeTime); let date = new Date().getTime() * (1440 / 70); @@ -27,6 +28,9 @@ newMatches(); }, 10000); // 10 seconds $: currentEzTime = formatUtc(date); + onMount(() => { + document.getElementById("level").value = $level; // this is fucked up but it works + }); function newForecasts() { anemosForecast = ew.forecast(ew.ANEMOS_WEATHER, "anemos"); @@ -119,6 +123,7 @@

Level: