定义主题为plus版,发行1.0.0版本

This commit is contained in:
j m 2024-03-24 11:28:42 +08:00
parent 8bdfb33a03
commit 162318f8d4
2 changed files with 2 additions and 9 deletions

View File

@ -391,10 +391,7 @@ const commonContext = {
} }
const now = new Date() const now = new Date()
const grt = new Date(DreamConfig.website_time) const grt = new Date(DreamConfig.website_time)
if(!websiteTimeTime) { setInterval(function () {
clearInterval(websiteTimeTime)
}
websiteTimeTime = setInterval(function () {
now.setTime(now.getTime() + 1000) now.setTime(now.getTime() + 1000)
let difference = parseInt((now - grt) / 1000) let difference = parseInt((now - grt) / 1000)
let seconds = difference % 60 let seconds = difference % 60
@ -575,7 +572,7 @@ const commonContext = {
} }
window.commonContext = commonContext window.commonContext = commonContext
let websiteTimeTime, timeLifeHour = -1 let timeLifeHour = -1
!(function () { !(function () {
const loads = ['initCarousel', 'sparkInput', 'websiteTime'] const loads = ['initCarousel', 'sparkInput', 'websiteTime']

View File

@ -173,8 +173,6 @@ $(document).on('pjax:success', async function (event, data, status, xhr, options
window.postPjax && window.postPjax(serialNumber) window.postPjax && window.postPjax(serialNumber)
/* 刷新人生倒计时 */ /* 刷新人生倒计时 */
commonContext.initTimeCount() commonContext.initTimeCount()
/* 刷新建站时间及计时器 */
commonContext.websiteTime()
/* 初始化轮播 */ /* 初始化轮播 */
commonContext.initCarousel() commonContext.initCarousel()
window.DProgress && DProgress.done() window.DProgress && DProgress.done()
@ -209,8 +207,6 @@ $(document).on('pjax:end', function (event, xhr, options) {
commonContext.initCarousel() commonContext.initCarousel()
/* 刷新人生倒计时 */ /* 刷新人生倒计时 */
commonContext.initTimeCount() commonContext.initTimeCount()
/* 刷新建站时间及计时器 */
commonContext.websiteTime()
window.DProgress && DProgress.done() window.DProgress && DProgress.done()
// 应该是由于浏览器缓存失效有时候浏览器前后退还是会执行pjax:beforeSend // 应该是由于浏览器缓存失效有时候浏览器前后退还是会执行pjax:beforeSend
$('html').removeClass('pjax-loading') $('html').removeClass('pjax-loading')