Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
html5syt committed Apr 27, 2024
1 parent 9060890 commit ea277d4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 625 deletions.
53 changes: 28 additions & 25 deletions docs/custom/partials/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,9 @@
</div>
{% endif %}
{% if not config.extra.generator == false %}
文档版本:2.5│正式修订日期:2024年4月27日\n当前时间: <p class="p1"></p>\n<p style="text-align: center; ">
<span>本站已经运行</span>
<span id='box1'></span>
</p>
<div id="box1"></div>
<script>
function timingTime(){
let start = '2024-05-01 00:00:00'
let startTime = new Date(start).getTime()
let currentTime = new Date().getTime()
let difference = currentTime - startTime
let m = Math.floor(difference / (1000))
let mm = m % 60 // 秒
let f = Math.floor(m / 60)
let ff = f % 60 // 分钟
let s = Math.floor(f/ 60) // 小时
let ss = s % 24
let day = Math.floor(s / 24 ) // 天数
return day + "天" + ss + "时" + ff + "分" + mm +'秒'
}
setInterval(()=>{
document.getElementById('box1').innerHTML = timingTime()
},1000)
</script>
<script defer>
文档版本:2.5│正式修订日期:2024年4月27日<p>\n当前时间:</p> <p class="p1"></p>

<script defer>
//格式:2020年04月12日 10:20:00 星期二
function format(newDate) {
var day = newDate.getDay();
Expand Down Expand Up @@ -109,5 +87,30 @@
}, 1000);
</script>

<p>
<span>\n本站已经运行</span>
<span id='box1'></span>
</p>
<div id="box1"></div>
<script>
function timingTime(){
let start = '2024-05-01 00:00:00'
let startTime = new Date(start).getTime()
let currentTime = new Date().getTime()
let difference = currentTime - startTime
let m = Math.floor(difference / (1000))
let mm = m % 60 // 秒
let f = Math.floor(m / 60)
let ff = f % 60 // 分钟
let s = Math.floor(f/ 60) // 小时
let ss = s % 24
let day = Math.floor(s / 24 ) // 天数
return day + "天" + ss + "时" + ff + "分" + mm +'秒'
}
setInterval(()=>{
document.getElementById('box1').innerHTML = timingTime()
},1000)
</script>

{% endif %}
</div>
Loading

0 comments on commit ea277d4

Please sign in to comment.