page de construction et tweaks du timer

This commit is contained in:
thaaoblues 2023-04-22 14:22:56 +02:00
parent ac865c7cf6
commit e74fcfed27
5 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,4 @@
#taupe{
top: 100%;
}

BIN
assets/img/bonjoir.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View file

@ -15,6 +15,9 @@ 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)
// le coef d'aggrandissement de l'image de la taupe
var coef = 1
function set_timer(){
// recupere la date actuelle
@ -35,6 +38,15 @@ ob_start(); // Start reading html
+delta_minutes+"min "
+delta_seconds+"s";
var taupe_img = document.getElementById("taupe");
taupe_img.width = 12*coef;
taupe_img.height = 8*coef;
taupe_img.style = "top :"+1000-100*coef+";";
coef = coef+1;
// récursion chaque seconde
setTimeout(set_timer, 1000);
}
@ -56,6 +68,7 @@ ob_start(); // Start reading html
</div>
<img id="taupe" src="assets/img/bonjoir.jpg">
</main>
<?php

View file

@ -92,7 +92,6 @@ include "assets/scripts/globals.php";
</main>