tijiao
This commit is contained in:
@@ -8524,6 +8524,7 @@ function shouldColor(rowIndex, cellIndex, row) {
|
||||
return false;
|
||||
}
|
||||
function addRowIdToData(data) {
|
||||
console.log('data at line 8526:', data)
|
||||
let idCounter = 0; // Initialize an ID counter
|
||||
|
||||
// Iterate through each row
|
||||
@@ -8537,11 +8538,13 @@ function addRowIdToData(data) {
|
||||
const cell = data[i][j];
|
||||
|
||||
// If the cell has a rowspan attribute, propagate the same ID across all affected rows
|
||||
if (cell.rowspan && cell.rowspan > 1) {
|
||||
if (cell&&cell.text&&cell.rowspan && cell.rowspan > 1) {
|
||||
for (let k = 0; k < cell.rowspan; k++) {
|
||||
if (data[i + k]) {
|
||||
|
||||
// Ensure that all cells in the same column and across the rows have the same rowId
|
||||
data[i + k][j].rowId = `row-${idCounter - 1}`;
|
||||
data[i + k][j] ={...data[i + k][j],rowId:`row-${idCounter - 1}`} ;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
37
js/footer.js
Normal file
37
js/footer.js
Normal file
@@ -0,0 +1,37 @@
|
||||
function initFooter() {
|
||||
// const $daohang = $('.footer .daohang');
|
||||
// $daohang.nextUntil('.daohang_bottom_line').remove(); // 删除中间所有元素,直到 .busuna 前的所有兄弟
|
||||
|
||||
console.log(11)
|
||||
$('.footer .daohang').css({
|
||||
'border-bottom':'none',
|
||||
})
|
||||
$('.daohang_bottom_line').css({
|
||||
'background': 'red',
|
||||
'height': '6px',
|
||||
'border-top': '0.5px solid #fff',
|
||||
'border-bottom': '0.5px solid #fff',
|
||||
'width': '1300px',
|
||||
'margin': '0 auto',
|
||||
})
|
||||
$('.footer-bottom-email').css({
|
||||
'display': 'flex',
|
||||
'align-items': 'center',
|
||||
'justify-content': 'center',
|
||||
})
|
||||
$('.footer-bottom-email-line').css({
|
||||
'font-weight': '700',
|
||||
/* width: 3px; */
|
||||
/* display: inline-block; */
|
||||
'border': '2px solid #fff',
|
||||
/* height: 16px; */
|
||||
'line-height': '14px',
|
||||
'margin': '0px 10px',
|
||||
'height': '12px',
|
||||
'display': 'inline-block',
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
initFooter()
|
||||
466
js/form.css
466
js/form.css
File diff suppressed because it is too large
Load Diff
@@ -7,12 +7,12 @@ $('.footer').load('footer_in.html')
|
||||
|
||||
// 首页内容
|
||||
function scien_list() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 首页中侧内容
|
||||
function sy_index() {
|
||||
function sy_index() {
|
||||
Jour_num = '1';
|
||||
localStorage.setItem("Journals_title", 'Traditional Medicine Research.');
|
||||
|
||||
@@ -736,14 +736,14 @@ function sy_index() {
|
||||
arr[i].jabbr + '</a> | ' + arr[i].stage_year + '</span>' +
|
||||
'<a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '"><p>'
|
||||
+ arr[i].title + '</p></a></div>'
|
||||
} else if (arr[i].stage_year && str2_num_2 < 1) {
|
||||
} else if (arr[i].stage_year && str2_num_2 < 1) {
|
||||
str2_num_2 = str2_num_2 + 1
|
||||
str2_2 += '<div><img src="' + imgarticleUrl + arr[i].icon + '" alt="">' +
|
||||
'<span>' + arr[i].abbr + '. | <a style="color: #006699" target="_blank" href="/' + arr[i].usx + '">' +
|
||||
arr[i].jabbr + '</a> | ' + arr[i].stage_year + '</span>' +
|
||||
'<a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '"><p>'
|
||||
+ arr[i].title + '</p></a></div>'
|
||||
} else if (arr[i].stage_year && str3_num < 3) {
|
||||
} else if (arr[i].stage_year && str3_num < 3) {
|
||||
str3_num = str3_num + 1
|
||||
str3 += '<div><span>' + arr[i].abbr + '. | <a style="color: #006699" target="_blank" href="/' + arr[i].usx + '">' +
|
||||
arr[i].jabbr + '</a> | ' + arr[i].stage_year + '</span>' +
|
||||
@@ -7840,7 +7840,7 @@ function art_wisdom() {
|
||||
if (arr[i].journal_id == 2 || arr[i].journal_id == 17 || arr[i].journal_id == 18) {
|
||||
arr[i].cycle_ = 'Continuities'
|
||||
}
|
||||
|
||||
|
||||
if (i < 4) {
|
||||
str_1 += '<li><a href="' + arr[i].usx + '" target="_blank"><img src="' + imgjourUrl + arr[i].icon + '" alt=""></a><div>' +
|
||||
// '<a target="_blank" href="/' + arr[i].usx + '">' + arr[i].title + '</a>' +
|
||||
@@ -8759,4 +8759,4 @@ function afooter_text() { // 获取地址栏信息
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user