From 365fb1769443625e402dce8b2eac377d2d700f87 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 5 Dec 2023 08:51:08 +0100 Subject: [PATCH] small changes --- index.html | 6 +++--- js/game_logic.js | 6 ++++-- js/interface.js | 3 --- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 659d432..32d8b11 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,8 @@
Interface - + +
-
- +
Partie diff --git a/js/game_logic.js b/js/game_logic.js index c291b2a..6d1dc7e 100644 --- a/js/game_logic.js +++ b/js/game_logic.js @@ -111,15 +111,17 @@ class Scheduler { } clearInterval(func) { - if (this.intervalTasks.has(func)) + if (this.intervalTasks.has(func)) { window.clearInterval(this.intervalTasks.get(func)) this.intervalTasks.delete(func) + } } clearTimeout(func) { - if (this.timeoutTasks.has(func)) + if (this.timeoutTasks.has(func)) { window.clearTimeout(this.timeoutTasks.get(func)) this.timeoutTasks.delete(func) + } } } diff --git a/js/interface.js b/js/interface.js index d4b7176..a6bb56b 100644 --- a/js/interface.js +++ b/js/interface.js @@ -1,6 +1,3 @@ - - - class Settings { constructor() { this.form = settingsForm