aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-11-11 22:59:59 +0100
committerKaran Jayachandra <mail@karanjayachandra.com>2025-11-11 22:59:59 +0100
commitca3e550fb59af89a2ddc0e1e0e59a3025edbece7 (patch)
tree05ac13709df0c8b6600d375657a4e9f3ce8cf0a4 /index.js
parentd23c38e6f2a972a49a5463cc866190e341e2685e (diff)
Fixed timer notifications and the title
Diffstat (limited to 'index.js')
-rw-r--r--index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/index.js b/index.js
index 28b2f05..949ea80 100644
--- a/index.js
+++ b/index.js
@@ -50,4 +50,17 @@ document.getElementById("confirm").addEventListener("click", () => {
session.push(new Round(proposal, session.length));
// Need to update the number of games played here
document.getElementById("game_list").innerHTML = session.at(-1).render();
+ document.getElementById("timer-start").click();
+ const notification = new Notyf({
+ duration: 30 * 1000,
+ position: {x: 'center', y: 'top'},
+ types: [{
+ type: 'success',
+ background: 'green',
+ duration: 1000 * 1000,
+ dismissible: true
+ }]
+ });
+ notification.success("Round confirmed!");
+
}) \ No newline at end of file