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

@ -94,7 +94,6 @@ include "assets/scripts/globals.php";
</main>
<?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