首页显示8本刊
This commit is contained in:
22
js/js.js
22
js/js.js
@@ -50,6 +50,27 @@ var Jour_num = localStorage.Journals_num;
|
||||
|
||||
// tab选项卡
|
||||
$(document).ready(function () {
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `
|
||||
#index_top .nav ul a:nth-child(1) li {
|
||||
width: 225px !important;
|
||||
}
|
||||
#index_top .nav ul a:nth-child(2) li {
|
||||
width: 110px !important;
|
||||
}
|
||||
|
||||
#index_top .nav ul a:nth-child(3) li {
|
||||
width: 195px !important;
|
||||
}
|
||||
|
||||
#index_top .nav ul a:nth-child(4) li {
|
||||
width: 110px !important;
|
||||
}
|
||||
|
||||
#index_top.nav ul a:nth-child(5) li {
|
||||
width: 90px !important;
|
||||
}`
|
||||
document.head.appendChild(style);
|
||||
// 检查 URL 是否包含参数 pre
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const isPre = urlParams.has('preview');
|
||||
@@ -198,7 +219,6 @@ $('#top_bar').load('header.html')
|
||||
$('#index_top').load('header_in.html')
|
||||
|
||||
|
||||
|
||||
// 高度一致
|
||||
function whit_color() {
|
||||
// if($(".art_side").height() > $(".art_main").height()){
|
||||
|
||||
Reference in New Issue
Block a user