diff --git a/src/game/lib/button/typing_exam_button.js b/src/game/lib/button/typing_exam_button.js
index 14c2896..23a635e 100644
--- a/src/game/lib/button/typing_exam_button.js
+++ b/src/game/lib/button/typing_exam_button.js
@@ -37,7 +37,7 @@ function TypingExamButton(x, y, iconName, buttonText, writingID) {
TypingExamButton.prototype.onClick = function() {
sessionStorageManager.setWritingID(this.writingID);
- location.href = '../../web/client/typing_examination.html';
+ location.href = '../../web/client/typing_exam.html';
// printSessionStorage();
}
diff --git a/src/game/lib/global/global_variables.js b/src/game/lib/global/global_variables.js
index 84e1c61..0bc7b93 100644
--- a/src/game/lib/global/global_variables.js
+++ b/src/game/lib/global/global_variables.js
@@ -100,18 +100,21 @@ function isMouseGameApp() {
function isTypingPracticeApp() {
- var appName = sessionStorageManager.getPlayingAppName();
-
- if(appName.indexOf("practice_") > -1)
+ if(sessionStorageManager.getPlayingAppName().indexOf("practice_") > -1)
return true;
return false;
}
function isTypingTestApp() {
- var appName = sessionStorageManager.getPlayingAppName();
+ if(sessionStorageManager.getPlayingAppName().indexOf("test_") > -1)
+ return true;
- if(appName.indexOf("test_") > -1)
+ return false;
+}
+
+function isTypingExamApp() {
+ if(sessionStorageManager.getPlayingAppName() == "typing_exam")
return true;
return false;
diff --git a/src/game/result/result.js b/src/game/result/result.js
index e939962..dbd91a6 100644
--- a/src/game/result/result.js
+++ b/src/game/result/result.js
@@ -3,7 +3,7 @@ var Result = {
preload: function() {
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
- if(isTypingPracticeApp() || isTypingTestApp())
+ if(isTypingPracticeApp() || isTypingTestApp() || isTypingExamApp())
Animal.loadResources();
RankingBoard.loadResources();
@@ -84,7 +84,7 @@ var Result = {
if(sessionStorageManager.getRecord() === null)
sessionStorageManager.setRecord(0);
- if(isTypingPracticeApp() || isTypingTestApp()) {
+ if(isTypingPracticeApp() || isTypingTestApp() || isTypingExamApp()) {
var animalLevelID = 0;
if(isTypingPracticeApp())
animalLevelID = Animal.animalLevelIDByRecord(sessionStorageManager.getRecord(), Animal.TYPE_PRACTICE);
diff --git a/src/game/typing/examination/game.js b/src/game/typing/examination/game.js
index 6bd6708..fe24c93 100644
--- a/src/game/typing/examination/game.js
+++ b/src/game/typing/examination/game.js
@@ -14,7 +14,7 @@ var TypingExamination = {
// sessionStorageManager.setPlayingAppKoreanName("타자 검정");
// sessionStorageManager.setRecord(0);
// sessionStorageManager.setAppHighestRecord(100.123);
- sessionStorageManager.setPlayingAppName("typing_examination");
+ sessionStorageManager.setPlayingAppName("typing_exam");
sessionStorageManager.setPlayingAppKoreanName("타자 검정");
diff --git a/src/web/client/result.html b/src/web/client/result.html
index 3850d60..0347f2b 100644
--- a/src/web/client/result.html
+++ b/src/web/client/result.html
@@ -16,7 +16,7 @@
-
+
diff --git a/src/web/client/typing_examination.html b/src/web/client/typing_exam.html
similarity index 100%
rename from src/web/client/typing_examination.html
rename to src/web/client/typing_exam.html