forked from rebillar/site-accueil-insa
fix le bug de date sur firefox
This commit is contained in:
parent
4c0d50b414
commit
b6536ce199
4 changed files with 8 additions and 4 deletions
|
@ -9,7 +9,7 @@
|
|||
width: 100%;
|
||||
height: 200%;
|
||||
font-size: 10vh;
|
||||
color: rgb(170, 28, 28);
|
||||
color: rgb(196, 23, 23);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
width: 100%;
|
||||
height: 200%;
|
||||
font-size: 10vh;
|
||||
color: rgb(170, 28, 28);
|
||||
color: rgb(196, 23, 23);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue