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 :)
|
// 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("15-Sep-2023 00:00:00") /1000)
|
||||||
|
|
||||||
|
// le coef d'aggrandissement de l'image de la taupe
|
||||||
|
var coef = 1
|
||||||
|
|
||||||
function set_timer(){
|
function set_timer(){
|
||||||
|
|
||||||
// recupere la date actuelle
|
// recupere la date actuelle
|
||||||
|
@ -35,6 +38,15 @@ ob_start(); // Start reading html
|
||||||
+delta_minutes+"min "
|
+delta_minutes+"min "
|
||||||
+delta_seconds+"s";
|
+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
|
// récursion chaque seconde
|
||||||
setTimeout(set_timer, 1000);
|
setTimeout(set_timer, 1000);
|
||||||
}
|
}
|
||||||
|
@ -56,6 +68,7 @@ ob_start(); // Start reading html
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<img id="taupe" src="assets/img/bonjoir.jpg">
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -94,7 +94,6 @@ include "assets/scripts/globals.php";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<?php
|
<?php
|
||||||
$infopage = ["", "Accueil", ob_get_clean(), "", "index","Semaine d'Accueil INSA Toulouse 2023"]; //relativepath, pagetitle, pagecontent, pagescript, pagename, txt_pancarte | cf structure/template.php ligne 2 à 6
|
$infopage = ["", "Accueil", ob_get_clean(), "", "index","Semaine d'Accueil INSA Toulouse 2023"]; //relativepath, pagetitle, pagecontent, pagescript, pagename, txt_pancarte | cf structure/template.php ligne 2 à 6
|
||||||
|
|
Loading…
Reference in a new issue