From 2923e6fca634231533cca11e43a9091344ff4ba5 Mon Sep 17 00:00:00 2001 From: Debulois Date: Sun, 10 Apr 2022 21:25:00 +0200 Subject: Ajout d'un système de notification pour alerter les pro et finition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Static/Js/notification.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Static/Js/notification.js (limited to 'Static/Js/notification.js') diff --git a/Static/Js/notification.js b/Static/Js/notification.js new file mode 100644 index 0000000..c15760a --- /dev/null +++ b/Static/Js/notification.js @@ -0,0 +1,18 @@ + +// ############################################################################ +// # # +// # Description: JS utile sur la page des messages # +// # # +// ############################################################################ + + +// Ajout de la class show_notif pour faire disparaitre ou apparaitre la bulle de notification +function toggle_notif() { + document.getElementById("notif").classList.toggle("show_notif"); +} + +// Timeout pour ne pas non plus agressé le client +setTimeout(() => { + toggle_notif() + } +, 1500) -- cgit v1.2.3