diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 69cc459..76a6bc4 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,386 +1,421 @@ {#if config.winter > 0} - {#each Array(config.winter) as i} -
{@html random_snowflake()}
- {/each} + {#each Array(config.winter) as i} +
{@html random_snowflake()}
+ {/each} {/if}
- {#each [hours, minutes, seconds] as row, i} -
- {#each row.split('') as unit, j} - {@const secondary = config.split && !(i % 2 == 0 ? j % 2 == 0 : j % 2 == 1)} - {#if unit === '-'} -
- - {#if config.info === "1" } -
{weekday}
- {:else if config.info === "2"} - {@const { h, m, s} = analog_rotate(time)} - {@const _ = console.log({s, m, h})} - -
-
-
-
- {/if} - -
- {:else} - {@const active = Boolean(Number.parseInt(unit))} -
- {#if config.santa && i === 2 && j === 0} - - {/if} - {#if config.numbers} -
{2 ** (5-j)}
- {/if} -
- {/if} - {/each} -
- {/each} + {#each [hours, minutes, seconds] as row, i} +
+ {#each row.split("") as unit, j} + {@const secondary = + config.split && !(i % 2 == 0 ? j % 2 == 0 : j % 2 == 1)} + {#if unit === "-"} +
+ {#if config.info === "1"} +
{weekday}
+ {:else if config.info === "2"} + {@const { h, m, s } = analog_rotate(time)} + {@const _ = console.log({ s, m, h })} + +
+
+
+
+ {/if} +
+ {:else} + {@const active = Boolean(Number.parseInt(unit))} +
+ {#if config.santa && i === 2 && j === 0} + + {/if} + {#if config.numbers} +
{2 ** (5 - j)}
+ {/if} +
+ {/if} + {/each} +
+ {/each}
-{#if minutes.at(-1) === '1'} - +{#if minutes.at(-1) === "1"} + {:else} - + {/if}