summaryrefslogtreecommitdiff
path: root/static/alert-timeout.js
diff options
context:
space:
mode:
authorJani Peter Karhunen <jkarhun2@local>2023-11-25 03:32:29 +0200
committerJani Peter Karhunen <jkarhun2@local>2023-11-25 03:32:29 +0200
commitd2de3ae10b6f5314bd4b8243218212d2004f35b0 (patch)
tree2ab448e0c2ec361478851dbcb43bcd176d17b584 /static/alert-timeout.js
parentc059696450d301b99956d643c21b0e46b4fc39dc (diff)
MEGA Commit. Rework of routing. Visuals. Answer analysis and much more.
Diffstat (limited to 'static/alert-timeout.js')
-rw-r--r--static/alert-timeout.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/alert-timeout.js b/static/alert-timeout.js
new file mode 100644
index 0000000..01bd260
--- /dev/null
+++ b/static/alert-timeout.js
@@ -0,0 +1,5 @@
+Array.from(document.getElementsByClassName('kysAlert')).forEach( (a) => {
+ a.addEventListener('click', (event) => {
+ event.target.remove();
+ })
+ })