diff options
| author | Debulois <quentin@debulois.fr> | 2022-04-10 21:25:00 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-04-10 21:25:00 +0200 |
| commit | 2923e6fca634231533cca11e43a9091344ff4ba5 (patch) | |
| tree | 7181e1b0e26ddb072530adec7d55f77e9e389783 /Static/Js/notification.js | |
| parent | 9939f74c0b274ee916f742a45a32d3c843e0960b (diff) | |
Ajout d'un système de notification pour alerter les pro et finition
Diffstat (limited to 'Static/Js/notification.js')
| -rw-r--r-- | Static/Js/notification.js | 18 |
1 files changed, 18 insertions, 0 deletions
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) |
