This commit is contained in:
2025-05-07 09:11:50 +08:00
parent 1be6e649e1
commit 4ab2d4f177
12 changed files with 831 additions and 12 deletions

View File

@@ -7760,7 +7760,7 @@ function article_con() {
var textContent = $('<div>').html(item.content).text(); // 提取纯文本
contentHtml = `<p class="${item.is_h1 ? 'Ptitle pMain' : 'pMain'} " style="font-family: 'Charis SIL';min-height:12px;" main-state="${item.state}" contenteditable="false" data-id="${item.am_id}" main-id="${item.am_id}" id="${sectionId}">${item.content}</p>`;
if (item.is_h1 || textContent === "Abstract" || textContent === "Keywords") {
if (item.is_h1 ) {
navLinks.content.push({ sectionId: sectionId, type: 'content', text: textContent, href: '#' + sectionId, is_h1: item.is_h1, });
}
@@ -7771,7 +7771,7 @@ function article_con() {
return contentHtml;
}).join('');
htmlContent = `<div class="newHtml2">${htmlContent}</div>`
htmlContent = `<div class="newHtml2" style="margin-left:300px;">${htmlContent}</div>`
$('.wen_rong .content-box .conthtmn').html(htmlContent);
console.log('navLinks.forEach at line 7752:', navLinks)
// 引用
@@ -7875,14 +7875,14 @@ function article_con() {
}
}
// 将生成的所有引用内容插入到页面中
$('.wen_rong .content-box .conthtmn').append('<div id="ArticleRef" class="ArticleRef"><p id="References"><b>References</b></p>' + refs + '</div>');
$('.wen_rong .content-box .conthtmn').append('<div id="ArticleRef" style="margin-left:300px;" class="ArticleRef"><p id="References"><b>References</b></p>' + refs + '</div>');
}
$('.wen_rong .content-box .conthtmn').prepend(navHtml);
// 给导航栏添加固定定位样式
// 给导航栏添加固定定位样式
$('.anchor-nav').css({
'position': 'fixed',
'display': 'none',
// 'display': 'none',
'top': '0', // 固定在顶部
'left': '0', // 固定在左侧
'width': '285px', // 设置固定宽度