aboutsummaryrefslogtreecommitdiff
path: root/templates/time.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 23:28:46 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 23:28:46 +0200
commit156056e9c31468564fb53ca284996a5de41471fb (patch)
treed7cf9efc12e0fb411de3f9b33ac2f478cb29133b /templates/time.j2
parent74480cbe2b335fd141cdf5f07bb08808c0d08692 (diff)
Working version with all functionality
Diffstat (limited to 'templates/time.j2')
-rw-r--r--templates/time.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/time.j2 b/templates/time.j2
new file mode 100644
index 0000000..d006fc4
--- /dev/null
+++ b/templates/time.j2
@@ -0,0 +1,3 @@
+<div hx-get="/time" hx-swap="outerHTML" hx-trigger="every 1s">
+ <p class="title">Timer: {{mins}}:{{secs}}</p>
+</div> \ No newline at end of file