forked from rebillar/site-accueil-insa
page de construction et tweaks du timer
This commit is contained in:
parent
ac865c7cf6
commit
e74fcfed27
5 changed files with 17 additions and 1 deletions
4
assets/css/page/construction.css
Normal file
4
assets/css/page/construction.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
#taupe{
|
||||
|
||||
top: 100%;
|
||||
}
|
BIN
assets/img/bonjoir.jpg
Normal file
BIN
assets/img/bonjoir.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 94 KiB |
BIN
assets/img/vice_prez_gros_plan.jpg
Normal file
BIN
assets/img/vice_prez_gros_plan.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
|
@ -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
|
||||
|
|
|
@ -92,7 +92,6 @@ include "assets/scripts/globals.php";
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</main>
|
||||
|
|
Loading…
Reference in a new issue