Fix: typing_examination -> typing_exam
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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("타자 검정");
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<!-- global source files -->
|
||||
<script src="../../game/lib/session_storage_manager.js"></script>
|
||||
<script src="../../game/lib/global/global_variables.js?update_date=191224"></script>
|
||||
<script src="../../game/lib/global/global_variables.js?update_date=190719"></script>
|
||||
|
||||
<!-- library source files -->
|
||||
<script src="../../game/lib/util/number_util.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user