From e14ee55ff4c38c7f3b460ff305db784e637208bb Mon Sep 17 00:00:00 2001 From: waltem01 Date: Wed, 28 Feb 2024 09:35:40 +0100 Subject: [PATCH] implement clock animation --- Webserver/src/routes/+page.svelte | 3 ++ Webserver/src/routes/clock/+page.svelte | 53 +++++++++++++++++++++---- 2 files changed, 49 insertions(+), 7 deletions(-) diff --git a/Webserver/src/routes/+page.svelte b/Webserver/src/routes/+page.svelte index e6a00b4..87cebf6 100644 --- a/Webserver/src/routes/+page.svelte +++ b/Webserver/src/routes/+page.svelte @@ -5,3 +5,6 @@

Image upload

+

+ Clock +

diff --git a/Webserver/src/routes/clock/+page.svelte b/Webserver/src/routes/clock/+page.svelte index 396409b..7c86f30 100644 --- a/Webserver/src/routes/clock/+page.svelte +++ b/Webserver/src/routes/clock/+page.svelte @@ -1,4 +1,6 @@
@@ -42,16 +81,16 @@ class="stroke-current" x1="50" y1="50" - x2={calcPos('minute', 'cos')} - y2={calcPos('minute', 'sin')} + x2={clock.positions?.minute.x ?? 50} + y2={clock.positions?.minute.y ?? 0} stroke-width="1" />