Fix: typing test app bug, code revised

This commit is contained in:
2018-10-04 23:24:56 +09:00
parent b822762429
commit 88fb1552ba
9 changed files with 152 additions and 183 deletions
+2 -14
View File
@@ -19,9 +19,9 @@ var Result = {
// top ui
var screenTopUI = new ScreenTopUI();
screenTopUI.makeBackButton( function() {
if(isTypingPracticeStage())
if(isTypingPracticeApp())
location.href = '../../web/client/menu_typing_practice.html';
else if(isTypingTestStage())
else if(isTypingTestApp())
location.href = '../../web/client/menu_typing_test.html';
else
location.href = '../../web/client/menu_app.html';
@@ -153,18 +153,6 @@ var Result = {
restartStage: function() {
location.href = "../../web/client/" + getGameAppName() + ".html";
/*
if(isTypingPracticeApp())
location.href = "../../web/client/typing_practice.html";
else if(isTypingTestApp())
location.href = "../../web/client/typing_test.html";
else if(isTypingGameApp())
location.href = "../../web/client/" + this.getGameAppName() + ".html";
// else if(isMouseGameApp())
// location.href = "../../web/client/" + this.getGameAppName() + ".html";
else
location.href = "../../web/client/" + sessionStorageManager.getPlayingAppName() + ".html";
*/
}
}