Skip to content

Commit

Permalink
Update waifu-tips.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hst1189 authored Oct 26, 2024
1 parent 920f88e commit 73f5b9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/waifu-tips.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ function loadTipsMessage(a) {
}

var t = (new Date).getHours();
b = b + " " + getRandText(23 < t || 5 >= t ? a.waifu.hour_tips.t23 - 5 : 5 < t && 7 >= t ? a.waifu.hour_tips.t5 - 7 : 7 < t && 11 >= t ? a.waifu.hour_tips.t7 - 11 : 11 < t && 14 >= t ? a.waifu.hour_tips.t11 - 14 : 14 < t && 17 >= t ? a.waifu.hour_tips.t14 - 17 : 17 < t && 19 >= t ? a.waifu.hour_tips.t17 - 19 : 19 < t && 21 >= t ? a.waifu.hour_tips.t19 - 21 : 21 < t && 23 >= t ? a.waifu.hour_tips.t21 - 23 : a.waifu.hour_tips.default)
y = getRandText(23 < t || 5 >= t ? a.waifu.hour_tips.t23 - 5 : 5 < t && 7 >= t ? a.waifu.hour_tips.t5 - 7 : 7 < t && 11 >= t ? a.waifu.hour_tips.t7 - 11 : 11 < t && 14 >= t ? a.waifu.hour_tips.t11 - 14 : 14 < t && 17 >= t ? a.waifu.hour_tips.t14 - 17 : 17 < t && 19 >= t ? a.waifu.hour_tips.t17 - 19 : 19 < t && 21 >= t ? a.waifu.hour_tips.t19 - 21 : 21 < t && 23 >= t ? a.waifu.hour_tips.t21 - 23 : a.waifu.hour_tips.default)
alert("现在是" t + "点," + y)
b = b + " " + y
showMessage(b, 6E3)
};

Expand Down

0 comments on commit 73f5b9b

Please sign in to comment.