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/message.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Static/Js/message.js') diff --git a/Static/Js/message.js b/Static/Js/message.js index 06ba511..8043a67 100644 --- a/Static/Js/message.js +++ b/Static/Js/message.js @@ -6,13 +6,6 @@ // ############################################################################ -// **************************************************************************** -// REDIRECTION -// **************************************************************************** -function redirect(page) { - window.location.href = `/${page}.php`; -} - // **************************************************************************** // DECLENCHEMENT DU TIMER POUR UNE REDIRECTION // **************************************************************************** @@ -21,10 +14,10 @@ function start_timer(page) { let text = document.getElementById("redirect").innerHTML; setInterval(() => { if (seconds > 0) { - document.getElementById("redirect").innerHTML = `${text} ${seconds} .`; + document.getElementById("redirect").innerHTML = text + seconds + " ."; seconds --; } else { - document.getElementById("redirect").innerHTML = `${text} ${seconds} .`; + document.getElementById("redirect").innerHTML = text + seconds + " ."; redirect(page); } }, -- cgit v1.2.3