summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-07-15 00:18:04 +0800
committerBigCoke233 <hi@guhub.cn>2020-07-15 00:18:04 +0800
commit08e6e289626620abd5dea49c0485fa80dc011e79 (patch)
tree1bfb0f7746ca207bded81616f18782d5eb9871c9 /assets/js
parent0615f62964b26f5d2f54da3c9262a1ea17df41ce (diff)
:poop: Add: 初步实现多语言功能,并使用 hint.css 添加 tooltip
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/cmt.miracles.js4
-rw-r--r--assets/js/miracles.min.js16
2 files changed, 10 insertions, 10 deletions
diff --git a/assets/js/cmt.miracles.js b/assets/js/cmt.miracles.js
index f0b2bf6..e3c313a 100644
--- a/assets/js/cmt.miracles.js
+++ b/assets/js/cmt.miracles.js
@@ -109,7 +109,7 @@ var MiraclesComment = {
//禁用按钮
$('#comment-form .comment-submit').attr('disabled', true);
$('#comment-form').addClass('comment-sending');
- $('#comment-form .comment-submit').text('提交中...');
+ $('#comment-form .comment-submit').text(commentSubmit);
};
beforeComment();
@@ -118,7 +118,7 @@ var MiraclesComment = {
//取消禁用评论按钮
$('#comment-form .comment-submit').removeAttr('disabled');
$('#comment-form').removeClass('comment-sending');
- $('#comment-form .comment-submit').text('评论');
+ $('#comment-form .comment-submit').text(commentSubmitLoading);
//判断是否评论成功
if(status) {
diff --git a/assets/js/miracles.min.js b/assets/js/miracles.min.js
index fa6a6a8..e31feb5 100644
--- a/assets/js/miracles.min.js
+++ b/assets/js/miracles.min.js
@@ -179,7 +179,7 @@ function highlight() {
function owoLoad() {
if($(".OwO").length>0){
var OwO_demo = new OwO({
- logo: 'OωO表情',
+ logo: 'OωO',
container: document.getElementsByClassName('OwO')[0],
target: document.getElementsByClassName('OwO-textarea')[0],
api: owoJson,
@@ -411,25 +411,25 @@ function startTime(a) {
var time = a;
startTimeV = time;
var b = new Date().getTime() - new Date(startTimeV);
- if (b < 0) return '0 秒';
+ if (b < 0) return '0'+footerTimeSec;
let result = '';
if (b >= 365 * 86400000) {
- result += parseInt(b / (365 * 86400000)) + ' 年 ';
+ result += parseInt(b / (365 * 86400000)) + footerTimeYear;
b = (b % (365 * 86400000))
}
if (b >= 86400000) {
- result += parseInt(b / 86400000) + ' 天 ';
+ result += parseInt(b / 86400000) + footerTimeDay;
b = (b % 86400000)
}
if (b >= 3600000) {
- result += parseInt(b / 3600000) + ' 小时 ';
+ result += parseInt(b / 3600000) + footerTimeHour;
b = (b % 3600000)
}
if (b >= 60000) {
- result += parseInt(b / 60000) + ' 分 ';
+ result += parseInt(b / 60000) + footerTimeMin;
b = (b % 60000)
}
- result += parseInt(b / 1000) + ' 秒 ';
+ result += parseInt(b / 1000) + footerTimeSec;
$('#build-time').html(result);
buildTimeout = setTimeout('startTime(startTimeV)', 1000)
}
@@ -530,7 +530,7 @@ if (loadPjax = true) {
getWordsNum();
if(navBar.length>0){
navColor();
- }
+ }
})();