Add: ranking hour, day, month record php

This commit is contained in:
2018-05-18 09:52:58 +09:00
parent 8fe5c72987
commit 60bd151c92
18 changed files with 404 additions and 158 deletions
+23
View File
@@ -0,0 +1,23 @@
class StringUtil {
static printMonthDay(date) {
let dateTime = new Date(date);
return (dateTime.getMonth() + 1) + "월 " + dateTime.getDate() + "일";
}
static getScoreTextWithoutUnit(value) {
let number = Math.floor(value);
return NumberUtil.numberWithCommas(number);
}
static getScoreTextWithUnit(value) {
let number = Math.floor(value);
let numberWithCommas = NumberUtil.numberWithCommas(number);
if(isTypingGame())
return numberWithCommas + " 타";
else
return numberWithCommas + " 점";
}
}