From 0665e6a2490c9ea770a98908788a1e5d210aa811 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 25 Aug 2023 10:17:21 +0530 Subject: feat: adds try expression for error handlign --- examples/clock/style.css | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/clock/style.css b/examples/clock/style.css index a6f8349..c23e033 100644 --- a/examples/clock/style.css +++ b/examples/clock/style.css @@ -44,6 +44,7 @@ body * { box-sizing: border-box; } --cssx-on-mount: update(--date, call(--get-date)); --cssx-on-update: + update('[data-element=seconds]', --angle, js-eval("360 * new Date().getSeconds() / 60 - 90")), update('[data-element=seconds]', --angle, js-eval("360 * new Date().getSeconds() / 60 - 90")) update('[data-element=minutes]', --angle, js-eval("360 * new Date().getMinutes() / 60 - 90")) update('[data-element=hours]', --angle, -- cgit v1.3.1