summaryrefslogtreecommitdiff
path: root/Static/Js/notification.js
diff options
context:
space:
mode:
authorDebulois <quentin@debulois.fr>2022-05-07 12:23:11 +0200
committerDebulois <quentin@debulois.fr>2022-05-07 12:23:11 +0200
commit588c4ceb78fae443ca8f9446d256f5474a3bf66a (patch)
tree224c5e5aa643012ac030af4410e935fffcefbe8f /Static/Js/notification.js
parent0048d676a2bed3addadea670fa5d802a314af473 (diff)
Ré-écriture du JS pour le rendre CSP compliant
Diffstat (limited to 'Static/Js/notification.js')
-rw-r--r--Static/Js/notification.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/Static/Js/notification.js b/Static/Js/notification.js
index 4747bc3..59094e1 100644
--- a/Static/Js/notification.js
+++ b/Static/Js/notification.js
@@ -11,6 +11,14 @@ function toggle_notif() {
document.getElementById("notif").classList.toggle("show_notif");
}
+document.getElementById("notifClose").addEventListener("click", () => {
+ toggle_notif();
+});
+
+document.getElementById("notifRedirect").addEventListener("click", () => {
+ redirect("Template/myMission");
+});
+
// Timeout pour ne pas non plus agressé le client
setTimeout(() => {
toggle_notif()