Fix action resultatsJeux

php
Antoine JOURDAIN 1 year ago
parent 05545ffe4f
commit 66c5406279

@ -128,4 +128,9 @@ class AbsController
$mdl->deconnection();
$this->home();
}
public function resultatsJeux(): void{
global $twig;
echo $twig->render('resultatsJeux.html');
}
}

@ -74,7 +74,7 @@ document.addEventListener('DOMContentLoaded', function () {
function checkGameCompletion(){
if (document.querySelectorAll('.card.found').length === cards.length) {
window.location.href = '../../templates/resultatsJeux.html'; // A MODIFIER POUR UN TWIG RENDER
window.location.href = '../resultatsJeux'; // A MODIFIER POUR UN TWIG RENDER
}
}
});

@ -12,7 +12,7 @@
justify-content: center;
height: 100vh;
margin: 0;
background: url('{{base}}/assets/img/points.png') center/cover no-repeat;
background: url('../assets/img/points.png') center/cover no-repeat;
background-color: lightslategray;
}
@ -47,7 +47,7 @@
<div class="message">
Bravo ! Vous avez gagné 125 points !!
</div>
<img class="celebration-image" src="{{base}}/assets/img/celeb.png" alt="Célébration">
<img class="celebration-image" src="../assets/img/celeb.png" alt="Célébration">
</div>
</body>
</html>

Loading…
Cancel
Save