-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
86 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -546,31 +546,6 @@ const commonContext = { | |
$(".tags-cloud-list").remove(); | ||
$("#tags-3d .empty").remove(); | ||
}, | ||
/* 激活Live2d人物 */ | ||
initLive2d() { | ||
if (!ThemeConfig.enable_live2d) return; | ||
$.getScript( | ||
"https://cdn.jsdelivr.net/npm/[email protected]/lib/L2Dwidget.min.js", | ||
() => { | ||
L2Dwidget.init({ | ||
model: { | ||
jsonPath: Joe.LIVE2D, | ||
scale: 1, | ||
}, | ||
mobile: { | ||
show: false, | ||
}, | ||
display: { | ||
position: "right", | ||
width: 160, | ||
height: 200, | ||
hOffset: 70, | ||
vOffset: 0, | ||
}, | ||
}); | ||
} | ||
); | ||
}, | ||
/* 首页离屏提示 */ | ||
offscreenTip() { | ||
if (!ThemeConfig.enable_offscreen_tip) return; | ||
|
@@ -661,8 +636,8 @@ const commonContext = { | |
/* 初始化网站运行时间 */ | ||
initBirthday() { | ||
if (!ThemeConfig.enable_birthday) return; | ||
if(!/^\d+$/g.test(ThemeConfig.birthday)||!/^\d+$/g.test(ThemeConfig.birthday)){ | ||
console.error("“自定义博客起始时间” 格式错误,请检查!"); | ||
if(!/^\d+$/.test(ThemeConfig.birthday) && !/^(\d{4}\/\d{1,2}\/\d{1,2}\s\d{1,2}:\d{1,2}(:\d{0,2})?)$/.test(ThemeConfig.birthday)){ | ||
Qmsg.error("“自定义博客起始时间” 格式错误,请检查!"); | ||
return; | ||
} | ||
const birthDay = new Date( | ||
|
@@ -840,7 +815,6 @@ const commonContext = { | |
const omits = [ | ||
"loadingBar", | ||
"init3dTag", | ||
"initLive2d", | ||
"foldCode", | ||
"showLoadTime", | ||
"clean", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters