mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 20:09:41 +08:00
定义主题为plus版,发行1.0.0版本
This commit is contained in:
parent
8bdfb33a03
commit
162318f8d4
@ -391,10 +391,7 @@ const commonContext = {
|
||||
}
|
||||
const now = new Date()
|
||||
const grt = new Date(DreamConfig.website_time)
|
||||
if(!websiteTimeTime) {
|
||||
clearInterval(websiteTimeTime)
|
||||
}
|
||||
websiteTimeTime = setInterval(function () {
|
||||
setInterval(function () {
|
||||
now.setTime(now.getTime() + 1000)
|
||||
let difference = parseInt((now - grt) / 1000)
|
||||
let seconds = difference % 60
|
||||
@ -575,7 +572,7 @@ const commonContext = {
|
||||
}
|
||||
|
||||
window.commonContext = commonContext
|
||||
let websiteTimeTime, timeLifeHour = -1
|
||||
let timeLifeHour = -1
|
||||
|
||||
!(function () {
|
||||
const loads = ['initCarousel', 'sparkInput', 'websiteTime']
|
||||
|
@ -173,8 +173,6 @@ $(document).on('pjax:success', async function (event, data, status, xhr, options
|
||||
window.postPjax && window.postPjax(serialNumber)
|
||||
/* 刷新人生倒计时 */
|
||||
commonContext.initTimeCount()
|
||||
/* 刷新建站时间及计时器 */
|
||||
commonContext.websiteTime()
|
||||
/* 初始化轮播 */
|
||||
commonContext.initCarousel()
|
||||
window.DProgress && DProgress.done()
|
||||
@ -209,8 +207,6 @@ $(document).on('pjax:end', function (event, xhr, options) {
|
||||
commonContext.initCarousel()
|
||||
/* 刷新人生倒计时 */
|
||||
commonContext.initTimeCount()
|
||||
/* 刷新建站时间及计时器 */
|
||||
commonContext.websiteTime()
|
||||
window.DProgress && DProgress.done()
|
||||
// 应该是由于浏览器缓存失效,有时候浏览器前后退还是会执行pjax:beforeSend
|
||||
$('html').removeClass('pjax-loading')
|
||||
|
Loading…
x
Reference in New Issue
Block a user