From deba3bcec107b41a9879f6f5b63ac9bdf75ef580 Mon Sep 17 00:00:00 2001 From: Namonay Date: Mon, 13 May 2024 18:06:04 +0200 Subject: [PATCH] =?UTF-8?q?je=20c=C3=A8de=20au=20caprices=20de=20Etienne?= =?UTF-8?q?=20le=20GROS=20BEBE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/static/js/api/game/tictactoe/TicTacToeGame.js | 4 ++-- frontend/static/js/views/TicTacToeOnlineView.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/static/js/api/game/tictactoe/TicTacToeGame.js b/frontend/static/js/api/game/tictactoe/TicTacToeGame.js index 26a405c..b98416d 100644 --- a/frontend/static/js/api/game/tictactoe/TicTacToeGame.js +++ b/frontend/static/js/api/game/tictactoe/TicTacToeGame.js @@ -104,7 +104,7 @@ class TicTacToe { this.context.beginPath(); this.context.fillStyle = "white"; - this.context.font = `40px Verdana`; + this.context.font = `20px Verdana`; this.context.fillText(sec, this.width / 2, this.gap / 2); this.context.closePath(); sec--; @@ -126,7 +126,7 @@ class TicTacToe { this.context.beginPath(); this.context.fillStyle = "white"; - this.context.font = `40px Verdana`; + this.context.font = `20px Verdana`; this.context.fillText(sec, this.width / 2, this.gap / 2); this.context.closePath(); } diff --git a/frontend/static/js/views/TicTacToeOnlineView.js b/frontend/static/js/views/TicTacToeOnlineView.js index 2faf512..380aff7 100644 --- a/frontend/static/js/views/TicTacToeOnlineView.js +++ b/frontend/static/js/views/TicTacToeOnlineView.js @@ -10,13 +10,13 @@ export class TicTacToeOnlineView extends AbstractView this.params = params; this.titleKey = titleKey; this.game_id = params.id; - this.height = 660; - this.width = 660; + this.height = 560; + this.width = 560; } async postInit() { - this.Morpion = new TicTacToe(this.height, this.width, 60, 60, document.getElementById("Morpion"), this.game_id); + this.Morpion = new TicTacToe(this.height, this.width, 30, 55.5, document.getElementById("Morpion"), this.game_id); this.Morpion.DrawSuperMorpion(); await this.Morpion.init(); }