From d2de3ae10b6f5314bd4b8243218212d2004f35b0 Mon Sep 17 00:00:00 2001 From: Jani Peter Karhunen Date: Sat, 25 Nov 2023 03:32:29 +0200 Subject: MEGA Commit. Rework of routing. Visuals. Answer analysis and much more. --- static/alert-timeout.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 static/alert-timeout.js (limited to 'static/alert-timeout.js') 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(); + }) + }) -- cgit v1.2.3