From fcbbbdaf49129b74ce823035673b6b7f53db4a19 Mon Sep 17 00:00:00 2001 From: luckysideburn Date: Tue, 13 Aug 2024 08:08:45 +0000 Subject: [PATCH] fix mode_controls --- html5/mode_controls.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/html5/mode_controls.js b/html5/mode_controls.js index b910138..cb45e76 100644 --- a/html5/mode_controls.js +++ b/html5/mode_controls.js @@ -5,6 +5,13 @@ function startGameMode() { game_mode_switch = false; $("#gameModeButton").text("Enable Game Mode"); } else { + /* TO DO: DO BETTER :D */ + let checkbox = { + checked: true, + }; + let close_button = document.getElementById("closeButtonReport"); + close_button.innerHTML = "Skip"; + showPrepareChaosReportModal(checkbox); game_mode_switch = true; document.getElementById("gameContainer").style.width = "100%"; document.getElementById("gameContainer").style.height = "100%"; @@ -26,14 +33,6 @@ function startGameMode() { chaos_program_screen.style.display = "none"; programming_mode_buttons.style.display = "none"; resizeCharts(); - - /* TO DO: DO BETTER :D */ - let checkbox = { - checked: true, - }; - let close_button = document.getElementById("closeButtonReport"); - close_button.innerHTML = "Skip"; - showPrepareChaosReportModal(checkbox); } function startProgrammingMode() {