Add: test and practice
This commit is contained in:
@@ -51,4 +51,44 @@ function isTypingGame() {
|
||||
return true;
|
||||
}
|
||||
|
||||
function isTypingPracticeStage() {
|
||||
let appName = sessionStorageManager.playingAppName;
|
||||
|
||||
console.log(appName);
|
||||
console.log(appName.indexOf("practice_"));
|
||||
if(appName.indexOf("practice_") > -1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function isTypingTestStage() {
|
||||
let appName = sessionStorageManager.playingAppName;
|
||||
|
||||
console.log(appName.indexOf("test_"));
|
||||
if(appName.indexOf("test_") > -1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function isTypingWordStage() {
|
||||
let appName = sessionStorageManager.playingAppName;
|
||||
|
||||
if((isTypingPracticeStage() || isTypingTestStage()) && appName.indexOf("_word") > -1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function isTypingSentenceStage() {
|
||||
let appName = sessionStorageManager.playingAppName;
|
||||
|
||||
if((isTypingPracticeStage() || isTypingTestStage()) && appName.indexOf("_sentence") > -1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
let textStyleBasic = { font: "bold 32px Arial", fill: "#fff", align: "center", boundsAlignH: "center", boundsAlignV: "middle" };
|
||||
|
||||
Reference in New Issue
Block a user