Add: app highest record

This commit is contained in:
2018-10-23 22:29:24 +09:00
parent e384627c54
commit d45e44c6b2
12 changed files with 295 additions and 20 deletions
+11 -2
View File
@@ -80,7 +80,7 @@ SessionStorageManager.prototype.setRecord = function(value) {
sessionStorage.setItem("record", value);
}
SessionStorageManager.prototype.getRecord = function() {
return sessionStorage.getItem("record");
return Number(sessionStorage.getItem("record"));
}
// best record
@@ -88,7 +88,15 @@ SessionStorageManager.prototype.setBestRecord = function(value) {
sessionStorage.setItem("bestRecord", value);
}
SessionStorageManager.prototype.getBestRecord = function() {
return sessionStorage.getItem("bestRecord");
return Number(sessionStorage.getItem("bestRecord"));
}
// best record
SessionStorageManager.prototype.setAppHighestRecord = function(value) {
sessionStorage.setItem("appHighestRecord", value);
}
SessionStorageManager.prototype.getAppHighestRecord = function() {
return Number(sessionStorage.getItem("appHighestRecord"));
}
// best record
@@ -105,6 +113,7 @@ SessionStorageManager.prototype.resetPlayingAppData = function() {
this.removeItem("playingAppKoreanName");
this.removeItem("record");
this.removeItem("bestRecord");
this.removeItem("appHighestRecord");
}