doc: update runtime.js

This commit is contained in:
Leon Xu committed 2021-07-21 22:42:48 -07:00
1 parent 8527d20b8a
commit c9b40e3429
1 file changed
+2 -2
+2 -2
View File
@@ -28,11 +28,11 @@ setInterval(() => {
}//秒
//早上7点到晚上10点营业
if ((Number(time[2])<22) && (Number(time[2])>7)){
currentTimeHtml ="<img class='boardsign' src='https://img.shields.io/badge/糖果屋-营业中-6adea8?style=social&logo=cakephp' title='距离百年老店也就差不到一百年~'><div id='runtime'>" + time[0] + ' YEAR ' + time[1] + ' DAYS ' + time[2] + ' : ' + time[3] + ' : ' + time[4] + '</div>';
currentTimeHtml ="<img class='boardsign' src='https://img.shields.io/badge/Leon的技术阁-营业中-6adea8?style=social&logo=cakephp' title='距离百年老店也就差不到一百年~'><div id='runtime'>" + time[0] + ' YEAR ' + time[1] + ' DAYS ' + time[2] + ' : ' + time[3] + ' : ' + time[4] + '</div>';
} //徽标内容参考站内教程
//其余时间打烊
else{
currentTimeHtml ="<img class='boardsign' src='https://img.shields.io/badge/糖果屋-打烊了-6adea8?style=social&logo=coffeescript' title='这个点了应该去睡觉啦,熬夜对身体不好哦'><div id='runtime'>" + time[0] + ' YEAR ' + time[1] + ' DAYS ' + time[2] + ' : ' + time[3] + ' : ' + time[4] + '</div>'; //徽标内容参考站内教程
currentTimeHtml ="<img class='boardsign' src='https://img.shields.io/badge/Leon的技术阁-打烊了-6adea8?style=social&logo=coffeescript' title='这个点了应该去睡觉啦,熬夜对身体不好哦'><div id='runtime'>" + time[0] + ' YEAR ' + time[1] + ' DAYS ' + time[2] + ' : ' + time[3] + ' : ' + time[4] + '</div>'; //徽标内容参考站内教程
}
//覆写挂载标签的内容
document.getElementById("workboard").innerHTML = currentTimeHtml;