瀏覽代碼

fix css js website

student 2 周之前
父節點
當前提交
b4f2b68424

+ 2 - 0
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/js/all.min.js

@@ -328,6 +328,8 @@ const initKittyFall = () => {
 
         const closeEmbeddedGame = () => {
             gameStarted = false;
+            startingGame = false;
+            if (startGameButton) startGameButton.disabled = false;
             playGameRoot.classList.remove("is-game-running");
             gameShell?.setAttribute("aria-hidden", "true");
             if (gameFrame) gameFrame.removeAttribute("src");

+ 2 - 0
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/js/input.js

@@ -328,6 +328,8 @@ const initKittyFall = () => {
 
         const closeEmbeddedGame = () => {
             gameStarted = false;
+            startingGame = false;
+            if (startGameButton) startGameButton.disabled = false;
             playGameRoot.classList.remove("is-game-running");
             gameShell?.setAttribute("aria-hidden", "true");
             if (gameFrame) gameFrame.removeAttribute("src");