Skip to content
Extraits de code Groupes Projets
Valider 3bad8aff rédigé par Etienne BRATEAU's avatar Etienne BRATEAU
Parcourir les fichiers

Fix de cette merde de camarade.

parent a12d5822
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<title>Erreur 404</title> <title>Erreur 404</title>
</head> </head>
<body> <body>
<div class="h-100 container"> <div class="h-100">
<div id="canvas-container" style="display: none;"> <div id="canvas-container" style="display: none;">
<canvas id="canvas"></canvas> <div style="color: #FF69B4; font-size: 30px;">
<div style="color: #9EFD38; font-size: 20px;">
Score&nbsp;: <span id="score">0</span>&nbsp;Combo&nbsp;: <span id="combo">1</span> Score&nbsp;: <span id="score">0</span>&nbsp;Combo&nbsp;: <span id="combo">1</span>
</div> </div>
<canvas id="canvas"></canvas>
</div> </div>
<div class="row text-center" id="main"> <div class="row text-center" id="main">
<h1 class="h1-404 text-center">Erreur 404</h1> <h1 class="h1-404 text-center">Erreur 404</h1>
......
Fichier déplacé
...@@ -73,12 +73,13 @@ canvas.addEventListener('click', function(event) { ...@@ -73,12 +73,13 @@ canvas.addEventListener('click', function(event) {
function resizeCanvas() { function resizeCanvas() {
canvas.width = window.innerWidth; canvas.width = window.innerWidth;
canvas.height = window.innerHeight; canvas.height = window.innerHeight - 70;
/* /*
* Your drawings need to be inside this function otherwise they will be reset when * Your drawings need to be inside this function otherwise they will be reset when
* you resize the browser window and the canvas goes will be cleared. * you resize the browser window and the canvas goes will be cleared.
*/ */
if (running)
animate(); animate();
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter