From b6536ce19912f2400a928c3548e16b171e1394ff Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Fri, 28 Apr 2023 18:27:56 +0200 Subject: [PATCH] fix le bug de date sur firefox --- assets/css/page/construction.css | 2 +- assets/css/page/index.css | 2 +- construction.php | 2 +- index.php | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/css/page/construction.css b/assets/css/page/construction.css index 8291638..c77a0a5 100644 --- a/assets/css/page/construction.css +++ b/assets/css/page/construction.css @@ -9,7 +9,7 @@ width: 100%; height: 200%; font-size: 10vh; - color: rgb(170, 28, 28); + color: rgb(196, 23, 23); } diff --git a/assets/css/page/index.css b/assets/css/page/index.css index a450155..afa84ba 100644 --- a/assets/css/page/index.css +++ b/assets/css/page/index.css @@ -4,7 +4,7 @@ width: 100%; height: 200%; font-size: 10vh; - color: rgb(170, 28, 28); + color: rgb(196, 23, 23); } diff --git a/construction.php b/construction.php index bca4c36..28e6bb2 100644 --- a/construction.php +++ b/construction.php @@ -13,7 +13,7 @@ ob_start(); // Start reading html */ // avis aux futurs devs, changez la date ici :) - var target_date = Math.floor(Date.parse("15-Sep-2023 00:00:00") /1000) + var target_date = Math.floor(Date.parse("2023-09-15 00:00:00") /1000) // le coef d'aggrandissement de l'image de la taupe var coef = 1 diff --git a/index.php b/index.php index 0df90ff..efb55dc 100755 --- a/index.php +++ b/index.php @@ -17,7 +17,7 @@ include "assets/scripts/globals.php"; */ // avis aux futurs devs, changez la date ici :) - var target_date = Math.floor(Date.parse("15-Sep-2023 00:00:00") /1000) + var target_date = Math.floor(Date.parse("2023-09-15 00:00:00") /1000) function set_timer(){ @@ -32,6 +32,8 @@ include "assets/scripts/globals.php"; var delta_minutes = Math.floor((delta_seconds % (60*60))/60); delta_seconds = delta_seconds % 60; + + // on met tout dans le div du decompte document.getElementById("decompte").innerText = "J - " +delta_days+"j " @@ -39,6 +41,8 @@ include "assets/scripts/globals.php"; +delta_minutes+"min " +delta_seconds+"s"; + + // récursion chaque seconde setTimeout(set_timer, 1000); }