summaryrefslogtreecommitdiff
path: root/Static/Js/notification.js
diff options
context:
space:
mode:
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()