代码拉取完成,页面将自动刷新
同步操作将从 花果山大圣/clock 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
background: #0d1320;
overflow: hidden;
}
#timer{
text-align: center;
font-size:56vh;
line-height:56vh;
font-weight: bold;
color:#e2ecfd;
}
#date{
margin-top:0px;
text-align: center;
font-size:28vh;
line-height:28vh;
font-weight: bold;
color:#e2ecfd;
}
.about{
width:800px;
margin:0 auto;
padding-top:20px;
display: flex;
align-items : center;
}
.about .item{
color:white;
flex:1;
text-align: center;
}
#hug-sun img{
position: relative;
width:300px;
height:auto;;
}
</style>
</head>
<body>
<div class="about">
<div class="item">
<a target="_blank" href="https://juejin.im/user/1556564194370270">
<img style="height:40px;" src="./img/juejin.svg" alt="">
</a>
</div>
<div class="item">
<a target="_blank" href="https://space.bilibili.com/26995758">
<img style="height:35px;" src="./img/bili.svg" alt="">
</a>
</div>
<div class="item">
<a target="_blank" href="https://www.zhihu.com/people/woniuppp">
<img src="./img/zhihu.svg" alt="">
</a>
</div>
<div class="item">
<a target="_blank" href="https://github.com/shengxinjing">
<img style="height:20px;" src="./img/github.svg" alt="">
</a>
</div>
<div class="item" id="hug-sun">
<a target="_blank" href="https://space.bilibili.com/26995758">
<img src="./img/hugsun.bmp" alt="">
</a>
</div>
</div>
<div id="date">03月18日</div>
<div id="timer">05:47</div>
<script>
let showSymbl = true
function clock(){
let now = new Date()
let hour = now.getHours()+''
let minute = now.getMinutes() + ''
let month = (now.getMonth()+1)+''
let day = now.getDate()+''
console.log(now.getDate(),now.getDay())
let weeks = '日一二三四五六'.split('')
let week = weeks[now.getDay()]
if(showSymbl){
document.getElementById('timer').innerHTML = `${hour.padStart(2,'0')}<span>:</span>${minute.padStart(2,'0')}`
}else{
document.getElementById('timer').innerHTML = `${hour.padStart(2,'0')}<span style="color:#0d1320">:</span>${minute.padStart(2,'0')}`
}
document.getElementById('date').innerHTML = `${month.padStart(2,'0')}-${day.padStart(2,'0')} 周${week}`
showSymbl = !showSymbl
}
clock()
setInterval(()=>{
clock()
},1000)
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a8baaf55cb517a031547310e64e9ff39";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。