Added auto darkmode
This commit is contained in:
parent
f8b7247346
commit
a89efa0ddb
@ -7,6 +7,7 @@
|
|||||||
import '../app.postcss';
|
import '../app.postcss';
|
||||||
|
|
||||||
import {alerts, globals} from "$lib/stores.js";
|
import {alerts, globals} from "$lib/stores.js";
|
||||||
|
import { autoModeWatcher } from '@skeletonlabs/skeleton';
|
||||||
|
|
||||||
let alertsvar;
|
let alertsvar;
|
||||||
let globalvars;
|
let globalvars;
|
||||||
@ -25,7 +26,7 @@
|
|||||||
globalvars = value;
|
globalvars = value;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<svelte:head>{@html `<script>${autoModeWatcher.toString()} autoModeWatcher();</script>`}</svelte:head>
|
||||||
{#if typeof globalvars.user !== 'undefined' }
|
{#if typeof globalvars.user !== 'undefined' }
|
||||||
{#each alertsvar as alert, i}
|
{#each alertsvar as alert, i}
|
||||||
<aside class="alert variant-filled-{alert.class}">
|
<aside class="alert variant-filled-{alert.class}">
|
||||||
|
Loading…
Reference in New Issue
Block a user