diff options
Diffstat (limited to 'static/alert-timeout.js')
-rw-r--r-- | static/alert-timeout.js | 5 |
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(); + }) + }) |