Simple clock
Basic clock with reactive variable
The Active CSS "draw" event is triggered when any element is first drawn on the page.
When the "clockTime" variable changes every second, it re-draws automatically.
The double curlies around clockTime means "re-draw when the variable changes".
Only the content drawn in variable placeholders is updated, never the whole HTML tag.
(Reactive variables can also be placed inside attributes.)
When the "clockTime" variable changes every second, it re-draws automatically.
The double curlies around clockTime means "re-draw when the variable changes".
Only the content drawn in variable placeholders is updated, never the whole HTML tag.
(Reactive variables can also be placed inside attributes.)