This commit is contained in:
myw committed 2026-07-16 16:53:38 +08:00
1 parent 6b44647d4e
commit d8942c236a
22 files changed
+263 -240

No files matched your search

+5 -5
View File
@@ -659,7 +659,7 @@ artalk:
# --------------------------------------
chat:
# Choose: chatra/tidio/crisp/knocket
# Choose: chatra/tidio/crisp/knocket
# Leave it empty if you don't need chat
use:
# Chat Button [recommend]
@@ -680,10 +680,10 @@ tidio:
crisp:
website_id:
# https://trtc.io/solutions/knocket
knocket:
identifier:
# https://trtc.io/solutions/knocket
knocket:
identifier:
# --------------------------------------
# Analysis
# --------------------------------------
+5 -2
View File
@@ -2,8 +2,11 @@ script.
(() => {
const abcjsInit = () => {
const abcjsFn = () => {
const $article = document.getElementById("article-container")
if (!$article || $article.querySelector(".hbe-container")) return
setTimeout(() => {
const sheets = document.querySelectorAll(".abc-music-sheet")
const sheets = $article.querySelectorAll(".abc-music-sheet")
for (let i = 0; i < sheets.length; i++) {
const ele = sheets[i]
if (ele.children.length > 0) continue
@@ -29,7 +32,7 @@ script.
}, 100)
}
if (typeof ABCJS === "object") {
if (typeof ABCJS === "object" && ABCJS !== null) {
abcjsFn()
} else {
btf.getScript("!{url_for(theme.asset.abcjs_basic_js)}").then(abcjsFn)
+4 -4
View File
@@ -3,7 +3,7 @@ case theme.chat.use
include ./chatra.pug
when 'tidio'
include ./tidio.pug
when 'crisp'
include ./crisp.pug
when 'knocket'
include ./knocket.pug
when 'crisp'
include ./crisp.pug
when 'knocket'
include ./knocket.pug
Loaded 3 of 22 files, more files were not shown because too many files have changed in this diff. Show more