Fix action resultatsJeux

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

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

@ -74,7 +74,7 @@ document.addEventListener('DOMContentLoaded', function () {
function checkGameCompletion(){ function checkGameCompletion(){
if (document.querySelectorAll('.card.found').length === cards.length) { 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; justify-content: center;
height: 100vh; height: 100vh;
margin: 0; 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; background-color: lightslategray;
} }
@ -47,7 +47,7 @@
<div class="message"> <div class="message">
Bravo ! Vous avez gagné 125 points !! Bravo ! Vous avez gagné 125 points !!
</div> </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> </div>
</body> </body>
</html> </html>

Loading…
Cancel
Save