This commit is contained in:
Guillaume Joffre 2022-06-13 13:36:49 +02:00
parent 5fca5a771b
commit 2185ca503b
5 changed files with 18 additions and 24 deletions

View file

@ -26,16 +26,14 @@ section ul li {
} }
.img_blouse { .img_blouse {
diplay: inline-block; display: inline-block;
width: 20vw; width: 20vw;
margin: 10px; margin: 10px;
} }
#photos_blouse { #photos_blouse {
display: block; display: block;
margin-right: auto; margin: 0 auto;
margin-left: auto;
width: 100%; width: 100%;
margin: 0;
text-align: center; text-align: center;
} }

View file

@ -53,8 +53,6 @@ section {
background-clip: border-box; background-clip: border-box;
background-size: 200% auto; background-size: 200% auto;
color: #fff; color: #fff;
background-clip: text;
text-fill-color: transparent;
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
animation: textclip 2s linear infinite; animation: textclip 2s linear infinite;

View file

@ -206,7 +206,7 @@ function handleClickOnBuilding(x,y) {
if (intersects.length > 0) { if (intersects.length > 0) {
var selector = intersects[0].object.name.toString().toLowerCase(); // Name of the building we clicked on var selector = intersects[0].object.name.toString().toLowerCase(); // Name of the building we clicked on
console.debug(selector) console.log(selector)
// Wait for getSelectors() to be done // Wait for getSelectors() to be done
// If we do not wait, everything will be executed before checking what is inside the database // If we do not wait, everything will be executed before checking what is inside the database
getSelectors().then((data) => { getSelectors().then((data) => {

24
map.php
View file

@ -48,20 +48,20 @@ ob_start(); // Start reading html
</section> </section>
<!-- needed for showing custom alert, JE FERAI UN TRUC MAISON PLUS TARD TKT -->
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!--- Switch between 2D and 3d maps --->
<script defer>
const Thatbutton = document.getElementById("change-map-button");
Thatbutton.addEventListener("click", (e) => {
document.body.classList.toggle("flat");
})
</script>
</main> </main>
<!-- needed for showing custom alert, JE FERAI UN TRUC MAISON PLUS TARD TKT -->
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!--- Switch between 2D and 3d maps --->
<script defer>
const Thatbutton = document.getElementById("change-map-button");
Thatbutton.addEventListener("click", (e) => {
document.body.classList.toggle("flat");
})
</script>
<?php <?php
$infopage = ["", "Plan", ob_get_clean(), "", "map"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6 $infopage = ["", "Plan", ob_get_clean(), "", "map"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
include("structure/template.php"); include("structure/template.php");

View file

@ -173,7 +173,6 @@ if(!isset($relativepath)) {
<?php <?php
$co_y_0 = [0, 48.85, 97.7, 146.55, 195.4, 244.25, 293.1, 341.95, 390.8, 439.65, 488.5];
$texte_y_0 = ["Accueil", "Planning", "Plan", "Blouse", "Parrainage", "Homework", "Chansons", "Les stats", "Boomario", "PKpeach", "Photos"]; $texte_y_0 = ["Accueil", "Planning", "Plan", "Blouse", "Parrainage", "Homework", "Chansons", "Les stats", "Boomario", "PKpeach", "Photos"];
$lien_y_0 = ["index.php", "planning.php", "map.php", "blouse.php", "parrainage.php", "vacances.php", "chansons.php", "stats.php", "team.php?team=boomario", "team.php?team=pkpeach", "photos.php"]; $lien_y_0 = ["index.php", "planning.php", "map.php", "blouse.php", "parrainage.php", "vacances.php", "chansons.php", "stats.php", "team.php?team=boomario", "team.php?team=pkpeach", "photos.php"];
for($i = 0; $i <= 10; $i++) { for($i = 0; $i <= 10; $i++) {
@ -188,10 +187,9 @@ if(!isset($relativepath)) {
</a>'; </a>';
} }
$co_y_1 = [-23.5, 25.35,74.2, 123.05, 171.9, 220.75, 269.6, 318.45, 367.3, 416.15, 465]; $texte_y_1 = ["Lydia/Izly", "Les clubs", "Prévention", "Com'ville", "Enigme", "Download", "Les com's", "", "Infos"];
$texte_y_1 = ["Lydia/Izly", "Les clubs", "Prévention", "Com'ville", "Enigme", "", "", "", "Download", "Les com's", "Infos"]; $lien_y_1 = ["lydia.php", "clubs.php", "prevs.php", "map_com_ville.php", "enigma.php", "downloads.php", "coms.php", "", "info.php"];
$lien_y_1 = ["lydia.php", "clubs.php", "prevs.php", "map_com_ville.php", "enigma.php", "", "", "", "downloads.php", "coms.php", "info.php"]; for($i = 0; $i <= 8; $i++) {
for($i = 0; $i <= 10; $i++) {
echo echo
'<a href="'.$lien_y_1[$i].'" class="mobile-menu-link"> '<a href="'.$lien_y_1[$i].'" class="mobile-menu-link">
<svg class="mobile-brick menu-link" viewBox="-2 -2 51 21"> <svg class="mobile-brick menu-link" viewBox="-2 -2 51 21">