This commit is contained in:
2025-07-25 09:43:13 +08:00
parent a951d6c94d
commit c40787927c
3 changed files with 15 additions and 9 deletions

View File

@@ -7279,7 +7279,10 @@ function article_con() {
var a_ID = getQueryString('a_id'); //文章
var htm_ID = getQueryString('s_htm'); //目前显示html
const isPre = getQueryString('preview');
initArticleNavList(a_ID)
if(!isPre){
initArticleNavList(a_ID)
}
// 增加访问次数
if (Jour_num == 1 || Jour_num == 11 || Jour_num == 25) {
@@ -9414,7 +9417,10 @@ function initArticleNavList(a_ID) {
</div>
</div>`
// 使用 insertAdjacentHTML 在 top_bar 后插入新元素
topBar.insertAdjacentHTML('afterend', str);
if(topBar){
topBar.insertAdjacentHTML('afterend', str);
}
// JavaScript to handle dropdown toggle on button click