diff options
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) |
