From aea6adfee6e88069471e0595dca4064cae303cf5 Mon Sep 17 00:00:00 2001 From: bigJIU <1572204178@qq.com> Date: Tue, 7 Mar 2023 19:26:21 +0800 Subject: [PATCH] Update Debug --- .idea/workspace.xml | 31 +++---------------------------- main.py | 2 +- templates/GameTutorial.html | 11 +++++++---- 3 files changed, 11 insertions(+), 33 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4701955..3446659 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,33 +3,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -275,6 +250,6 @@ - + \ No newline at end of file diff --git a/main.py b/main.py index 3d27fc0..7c26834 100644 --- a/main.py +++ b/main.py @@ -46,7 +46,7 @@ def gamepreplay(): ""]) idm.setControl(cid, result.get("control")) print(result.get("gamestyle")) - return redirect(url_for('gameplay', id=cid)) + return redirect(url_for('gametutorial', id=cid)) # debug use: # return redirect(url_for('gameanno2', id=cid)) diff --git a/templates/GameTutorial.html b/templates/GameTutorial.html index b021cf5..c17622e 100644 --- a/templates/GameTutorial.html +++ b/templates/GameTutorial.html @@ -243,9 +243,8 @@ console.log("Cheerpj Initialize Succeed!"); document.getElementById("loading").style.visibility = "hidden"; - }) - - var control = ("{{control}}" == "1"); + }).then(function (){ + var control = ("{{control}}" == "1"); PlayLevel(level,control) .then(function (){ @@ -255,7 +254,11 @@ } document.getElementById("game").style.visibility = "visible"; - });' class="cirButton"> + }); + + }) + + ' class="cirButton">

Repeat Tutorial