From b16d9e7f540fba7197c8a68a8ddeeaeefcf4528d Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Thu, 20 Apr 2023 20:33:46 +0200 Subject: [PATCH] =?UTF-8?q?premier=20jet=20d'un=20d=C3=A9compte=20auto-maj?= =?UTF-8?q?=20en=20js.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scripts/decompte.php | 19 -------------- construction.php | 51 ++++++++++++++++++++++++++++++++++++- index.php | 51 ++++++++++++++++++++++++++++++------- structure/footer.php | 2 -- 4 files changed, 92 insertions(+), 31 deletions(-) delete mode 100644 assets/scripts/decompte.php diff --git a/assets/scripts/decompte.php b/assets/scripts/decompte.php deleted file mode 100644 index 0c16102..0000000 --- a/assets/scripts/decompte.php +++ /dev/null @@ -1,19 +0,0 @@ -diff($date2); - -$delta_seconds = $date2-$date1; - -// on utilise intdiv à la place de l'operateur / pour ne pas obtenir un float -$delta_days = intdiv($delta_seconds,(60*60*24)); -$delta_hours = intdiv($delta_seconds % (60*60*24),60*60); -$delta_minutes = intdiv($delta_seconds % (60*60),60); -$delta_seconds = ($delta_seconds % (60)); - -?> \ No newline at end of file diff --git a/construction.php b/construction.php index f582c3a..c234a20 100644 --- a/construction.php +++ b/construction.php @@ -1,13 +1,62 @@
+ + + +

- Page en construction, revenez plus tard (c'est pas la faute des devs) + /!\ Page en construction, revenez plus tard /!\
+ (Taper un dev ne le fera pas aller plus vite...sauf s'il est soudoyé)

+
+ +
+ + +
+ + + +
-
"; - } - echo "J - ".$delta_days."j ".$delta_hours."h ".$delta_minutes."min ".$delta_seconds."s"; - - ?> -
diff --git a/structure/footer.php b/structure/footer.php index 0852aed..7722128 100644 --- a/structure/footer.php +++ b/structure/footer.php @@ -32,7 +32,5 @@ Copyright © 2023 - Tous droits réservés setTimeout(sup_gif,3900); } - window.onload = main; - \ No newline at end of file