kezuoBLine除了tmr+bemc其他都隐藏

This commit is contained in:
2024-05-10 13:24:21 +08:00
parent a93ea79e0a
commit cc382bbdd8
7 changed files with 73 additions and 43 deletions

View File

@@ -235,6 +235,12 @@ function side_list() {
localStorage.setItem("Journals_color", arr_jour.system_color); localStorage.setItem("Journals_color", arr_jour.system_color);
localStorage.setItem("Journals_usx", arr_jour.usx); localStorage.setItem("Journals_usx", arr_jour.usx);
//几个按钮的链接 //几个按钮的链接
if (Jour_num == 1 || Jour_num == 25) {
$('#kezuoBLine').css('display', 'block');
$('#kezuoB').css('display', 'block');
}
$('.Subm_System').attr('href', arr_jour.submission_url); $('.Subm_System').attr('href', arr_jour.submission_url);
$('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num); $('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num);
$('.Ins_authors').attr('href', 'for_author.html?J_num=' + Jour_num); $('.Ins_authors').attr('href', 'for_author.html?J_num=' + Jour_num);

View File

@@ -471,6 +471,12 @@ $.ajax({
$('.exp_journal .mes_ema').html(arr_jour.email); $('.exp_journal .mes_ema').html(arr_jour.email);
//几个按钮的链接 //几个按钮的链接
if (Jour_num == 1 || Jour_num == 25) {
$('#kezuoBLine').css('display', 'block');
$('#kezuoB').css('display', 'block');
}
$('.Subm_System').attr('href', arr_jour.submission_url); $('.Subm_System').attr('href', arr_jour.submission_url);
$('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num); $('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num);
$('.Ins_authors').attr('href', 'Ins_authors.html?J_num=' + Jour_num); $('.Ins_authors').attr('href', 'Ins_authors.html?J_num=' + Jour_num);

View File

@@ -540,6 +540,12 @@ $.ajax({
$('.she_SCom .rgb_color_background').css('background-color', arr_jour.system_color) $('.she_SCom .rgb_color_background').css('background-color', arr_jour.system_color)
//几个按钮的链接 //几个按钮的链接
if (Jour_num == 1 || Jour_num == 25) {
$('#kezuoBLine').css('display', 'block');
$('#kezuoB').css('display', 'block');
}
$('.Subm_System').attr('href', arr_jour.submission_url); $('.Subm_System').attr('href', arr_jour.submission_url);
$('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num); $('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num);
$('.Ins_authors').attr('href', 'Ins_authors.html?J_num=' + Jour_num); $('.Ins_authors').attr('href', 'Ins_authors.html?J_num=' + Jour_num);

View File

@@ -114,7 +114,13 @@ function side_list() {
$('.nav_ban h2').css('display', 'inline-block') $('.nav_ban h2').css('display', 'inline-block')
$('.Gue_special').css('display', 'none') $('.Gue_special').css('display', 'none')
$('#kezuoB').css('display', 'block'); // $('#kezuoB').css('display', 'block');
if (Jour_num == 1 || Jour_num == 25) {
$('#kezuoBLine').css('display', 'block');
$('#kezuoB').css('display', 'block');
}
$('.Gue_special').css('display', 'block') $('.Gue_special').css('display', 'block')
console.log($('.Gue_special').length) console.log($('.Gue_special').length)

View File

@@ -1,7 +1,7 @@
// 增加访问次数 // 增加访问次数
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum', type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
data: {'type': Jour_num}, data: { 'type': Jour_num },
success: function (result) { success: function (result) {
if (result.code == 0) { if (result.code == 0) {
@@ -22,25 +22,25 @@ $('.nav_ban .top_sea .b_Sub').click(function () {
$("#mask").show(); $("#mask").show();
$(".dingyue").fadeIn(); $(".dingyue").fadeIn();
document.body.addEventListener('touchmove', bodyScroll, false); document.body.addEventListener('touchmove', bodyScroll, false);
$('body').css({'position': 'fixed', "width": "100%"}); $('body').css({ 'position': 'fixed', "width": "100%" });
}) })
$(".top .dingyue .mb_close").click(function () { $(".top .dingyue .mb_close").click(function () {
$("#mask").hide(); $("#mask").hide();
$(".dingyue").fadeOut(); $(".dingyue").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false); document.body.removeEventListener('touchmove', bodyScroll, false);
$("body").css({"position": "initial", "height": "auto"}); $("body").css({ "position": "initial", "height": "auto" });
}); });
$(".top .dingyue input.yue_close").click(function () { $(".top .dingyue input.yue_close").click(function () {
$("#mask").hide(); $("#mask").hide();
$(".dingyue").fadeOut(); $(".dingyue").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false); document.body.removeEventListener('touchmove', bodyScroll, false);
$("body").css({"position": "initial", "height": "auto"}); $("body").css({ "position": "initial", "height": "auto" });
}); });
$(".top .jour_ts input.tishi_author").click(function () { $(".top .jour_ts input.tishi_author").click(function () {
$("#mask").hide(); $("#mask").hide();
$(".jour_ts").fadeOut(); $(".jour_ts").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false); document.body.removeEventListener('touchmove', bodyScroll, false);
$("body").css({"position": "initial", "height": "auto"}); $("body").css({ "position": "initial", "height": "auto" });
}); });
function bodyScroll(event) { function bodyScroll(event) {
@@ -292,12 +292,12 @@ $.ajax({
var new_arry = result.data.topic; var new_arry = result.data.topic;
new_arry = old_arry.map(o => { new_arry = old_arry.map(o => {
return {id: o.base_topic_id, text: o.title} return { id: o.base_topic_id, text: o.title }
}) })
for (var i = 0; i < old_arry.length; i++) { for (var i = 0; i < old_arry.length; i++) {
new_arry[i].children = old_arry[i].children.map(o => { new_arry[i].children = old_arry[i].children.map(o => {
return {id: o.base_topic_id, text: o.title} return { id: o.base_topic_id, text: o.title }
}) })
} }
@@ -318,7 +318,7 @@ $.ajax({
}) })
// 期刊订阅提交 // 期刊订阅提交
$(".uity_Sub").click(function(){ $(".uity_Sub").click(function () {
$(".spa_su").text(''); $(".spa_su").text('');
var add_mess = {}; var add_mess = {};
add_mess.journal_id = localStorage.Journals_num; add_mess.journal_id = localStorage.Journals_num;
@@ -329,7 +329,7 @@ $.ajax({
if ($(".uity_inp").val() == "") { if ($(".uity_inp").val() == "") {
$(".spa_su").text('Please fill in E-mail'); $(".spa_su").text('Please fill in E-mail');
S_Dan = '1'; S_Dan = '1';
}else if(!(reg.test($(".uity_inp").val()))){ } else if (!(reg.test($(".uity_inp").val()))) {
$(".spa_su").text('Please fill in properly formatted E-mail'); $(".spa_su").text('Please fill in properly formatted E-mail');
S_Dan = '1'; S_Dan = '1';
} }
@@ -498,12 +498,18 @@ $.ajax({
//几个按钮的链接 //几个按钮的链接
if (Jour_num == 1 || Jour_num == 25) {
$('#kezuoBLine').css('display', 'block');
$('#kezuoB').css('display', 'block');
}
$('.Subm_System').attr('href', arr_jour.submission_url); $('.Subm_System').attr('href', arr_jour.submission_url);
$('.About_Journal').attr('href', '../about_journal.html?J_num=' + Jour_num); $('.About_Journal').attr('href', '../about_journal.html?J_num=' + Jour_num);
$('.Ins_authors').attr('href', '../for_author.html?J_num=' + Jour_num); $('.Ins_authors').attr('href', '../for_author.html?J_num=' + Jour_num);
$('.Join_Bord').attr('href', '../z_f6-1.html?J_num=' + Jour_num); $('.Join_Bord').attr('href', '../z_f6-1.html?J_num=' + Jour_num);
$('.Join_Bord2').attr('href', '../z_f11-1.html?J_num=' + Jour_num); $('.Join_Bord2').attr('href', '../z_f11-1.html?J_num=' + Jour_num);
// $('.rgb_color').css('color',arr_jour.system_color);//颜色 // $('.rgb_color').css('color',arr_jour.system_color);//颜色
// $('.rgb_ground').css('background-color',arr_jour.system_color);//背景 // $('.rgb_ground').css('background-color',arr_jour.system_color);//背景
@@ -563,7 +569,7 @@ $.ajax({
} else { } else {
var pdf_ = '<img src="img/link_3.jpg" width="14" height="16"><a href="' + imgFileUrl + 'articlePDF/' + arr[i].file_pdf + '" target="_blank" class="txt_pdf" alt="' + arr[i].article_id + '">PDF</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].pdf_num + '</span>&nbsp;)' var pdf_ = '<img src="img/link_3.jpg" width="14" height="16"><a href="' + imgFileUrl + 'articlePDF/' + arr[i].file_pdf + '" target="_blank" class="txt_pdf" alt="' + arr[i].article_id + '">PDF</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].pdf_num + '</span>&nbsp;)'
} }
if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime)/86400 >= 21) { if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) {
var tong_geogle = '<a href = "https://scholar.google.com/scholar?&q=' + arr[i].title.replace('<i>', '').replace('</i>', '').replace(new RegExp('"', "g"), '') + '"' + var tong_geogle = '<a href = "https://scholar.google.com/scholar?&q=' + arr[i].title.replace('<i>', '').replace('</i>', '').replace(new RegExp('"', "g"), '') + '"' +
'target = "_blank" style="color: ' + localStorage.Journals_color + ';margin-left: 10px;font-weight: 600;"> ' + 'target = "_blank" style="color: ' + localStorage.Journals_color + ';margin-left: 10px;font-weight: 600;"> ' +
'Google Scholar</a>' //搜索引用次数 'Google Scholar</a>' //搜索引用次数
@@ -611,7 +617,7 @@ $.ajax({
var num = $(this).next().html(); var num = $(this).next().html();
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false, type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
data: {"article_id": $(this).attr('alt'), "type": 'pdf'}, data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
success: function (result) { success: function (result) {
if (result.code == 0) { if (result.code == 0) {
num = num * 1 + 1 * 1 num = num * 1 + 1 * 1
@@ -620,7 +626,7 @@ $.ajax({
}) })
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum', type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
data: {'type': Jour_num, 'is_detail': '1'}, data: { 'type': Jour_num, 'is_detail': '1' },
success: function (result) { success: function (result) {
} }
}); });
@@ -669,8 +675,8 @@ $.ajax({
loop: true, //循环 loop: true, //循环
slidesPerGroup: 1, // 多少列为一组 slidesPerGroup: 1, // 多少列为一组
slidesPerView: "1", //默认1, 同时显示的slides数量,auto 代表根据轮播图的宽度排列 slidesPerView: "1", //默认1, 同时显示的slides数量,auto 代表根据轮播图的宽度排列
observer:true,//修改swiper自己或子元素时自动初始化swiper observer: true,//修改swiper自己或子元素时自动初始化swiper
observeParents:true,//修改swiper的父元素时自动初始化swiper observeParents: true,//修改swiper的父元素时自动初始化swiper
spaceBetween: 1, //轮播图之间的间距 spaceBetween: 1, //轮播图之间的间距
// pagination: { // pagination: {
// el: '.swiper-pagination', // el: '.swiper-pagination',
@@ -716,32 +722,32 @@ $.ajax({
// 获取地址判断国家跳转 // 获取地址判断国家跳转
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Main/getIpLocation', type: 'post', url: apiUrl + 'api/Main/getIpLocation',
data: { data: {
"ip": returnCitySN["cip"] "ip": returnCitySN["cip"]
}, },
success: function (result) { success: function (result) {
if (result.code == 0) { if (result.code == 0) {
var loca_ip = window.location.href.split('/')[2].match(/www.tmrjournals.(.*)/)[1] var loca_ip = window.location.href.split('/')[2].match(/www.tmrjournals.(.*)/)[1]
if (result.data.country == 'gn') { if (result.data.country == 'gn') {
if (loca_ip != 'cn') { if (loca_ip != 'cn') {
window.parent.location.href = "https://www.tmrjournals.cn/lr" window.parent.location.href = "https://www.tmrjournals.cn/lr"
} }
} }
if (result.data.country == 'gw') { if (result.data.country == 'gw') {
if (loca_ip != 'com') { if (loca_ip != 'com') {
window.parent.location.href = "https://www.tmrjournals.com/lr" window.parent.location.href = "https://www.tmrjournals.com/lr"
} }
} }
} else { } else {
// ShowDanger("请求失败!"); // ShowDanger("请求失败!");
} }
}, },
error: function () { error: function () {
ShowDanger("error"); ShowDanger("error");
} }
}) })
} else { } else {
@@ -762,6 +768,6 @@ $('.sfor_btn').click(function () {
// 社区下面期刊搜索 // 社区下面期刊搜索
$('.hunt_for .hunt_btn').click(function () { $('.hunt_for .hunt_btn').click(function () {
window.open("../jour_search.html?J_num="+Jour_num+"&se_ch=" + $(".hunt_for .hunt_inp").val()); window.open("../jour_search.html?J_num=" + Jour_num + "&se_ch=" + $(".hunt_for .hunt_inp").val());
}) })

View File

@@ -2,7 +2,7 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TMR Modern Herbal Medicine</title> <title>TMR Natural Therapy Advances</title>
<link rel="shortcut icon" href="../img/tmr3.png" type="image/x-icon"/> <link rel="shortcut icon" href="../img/tmr3.png" type="image/x-icon"/>
<frameset framespacing="0" border="0" rows="0" frameborder="0"> <frameset framespacing="0" border="0" rows="0" frameborder="0">
<frame name="main" src="../journals.html?J_num=19" scrolling="auto" noresize> <frame name="main" src="../journals.html?J_num=19" scrolling="auto" noresize>

View File

@@ -111,7 +111,7 @@
<!-- <li>»&nbsp;<a href="">AMA Citation Examples</a></li>--> <!-- <li>»&nbsp;<a href="">AMA Citation Examples</a></li>-->
<!-- </ul>--> <!-- </ul>-->
<div class="jour_guest"> <div class="jour_guest" id="kezuoBLine" style=" display: none;">
<div style="height: 1px;background-color: #ddd;width: 235px;margin: 0 auto 18px auto"></div> <div style="height: 1px;background-color: #ddd;width: 235px;margin: 0 auto 18px auto"></div>
<!--<h4 style="padding-left: 0" class="h_four">Special Issues</h4>--> <!--<h4 style="padding-left: 0" class="h_four">Special Issues</h4>-->
<a href="" class="btn_system rgb_color Gue_special normal-button" id="kezuoB" target="_blank" <a href="" class="btn_system rgb_color Gue_special normal-button" id="kezuoB" target="_blank"