From cc382bbdd8171ef2e821df45944c64b39a5e4474 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com>
Date: Fri, 10 May 2024 13:24:21 +0800
Subject: [PATCH] =?UTF-8?q?kezuoBLine=E9=99=A4=E4=BA=86tmr+bemc=E5=85=B6?=
=?UTF-8?q?=E4=BB=96=E9=83=BD=E9=9A=90=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
js/side.js | 6 ++++
jsb/jsp.js | 6 ++++
jss/jsp.js | 6 ++++
jstmr/side.js | 8 ++++-
lr/js/jsp.js | 86 +++++++++++++++++++++++++++-----------------------
nta/index.html | 2 +-
side.html | 2 +-
7 files changed, 73 insertions(+), 43 deletions(-)
diff --git a/js/side.js b/js/side.js
index f2fd0f5..3107a7d 100644
--- a/js/side.js
+++ b/js/side.js
@@ -235,6 +235,12 @@ function side_list() {
localStorage.setItem("Journals_color", arr_jour.system_color);
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);
$('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num);
$('.Ins_authors').attr('href', 'for_author.html?J_num=' + Jour_num);
diff --git a/jsb/jsp.js b/jsb/jsp.js
index 7717794..02bf980 100644
--- a/jsb/jsp.js
+++ b/jsb/jsp.js
@@ -471,6 +471,12 @@ $.ajax({
$('.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);
$('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num);
$('.Ins_authors').attr('href', 'Ins_authors.html?J_num=' + Jour_num);
diff --git a/jss/jsp.js b/jss/jsp.js
index b60e638..7b39b85 100644
--- a/jss/jsp.js
+++ b/jss/jsp.js
@@ -540,6 +540,12 @@ $.ajax({
$('.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);
$('.About_Journal').attr('href', 'about_journal.html?J_num=' + Jour_num);
$('.Ins_authors').attr('href', 'Ins_authors.html?J_num=' + Jour_num);
diff --git a/jstmr/side.js b/jstmr/side.js
index a2177ca..33e8d3c 100644
--- a/jstmr/side.js
+++ b/jstmr/side.js
@@ -114,7 +114,13 @@ function side_list() {
$('.nav_ban h2').css('display', 'inline-block')
$('.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')
console.log($('.Gue_special').length)
diff --git a/lr/js/jsp.js b/lr/js/jsp.js
index 160fe52..dc04df7 100644
--- a/lr/js/jsp.js
+++ b/lr/js/jsp.js
@@ -1,7 +1,7 @@
// 增加访问次数
$.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
- data: {'type': Jour_num},
+ data: { 'type': Jour_num },
success: function (result) {
if (result.code == 0) {
@@ -22,25 +22,25 @@ $('.nav_ban .top_sea .b_Sub').click(function () {
$("#mask").show();
$(".dingyue").fadeIn();
document.body.addEventListener('touchmove', bodyScroll, false);
- $('body').css({'position': 'fixed', "width": "100%"});
+ $('body').css({ 'position': 'fixed', "width": "100%" });
})
$(".top .dingyue .mb_close").click(function () {
$("#mask").hide();
$(".dingyue").fadeOut();
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 () {
$("#mask").hide();
$(".dingyue").fadeOut();
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 () {
$("#mask").hide();
$(".jour_ts").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false);
- $("body").css({"position": "initial", "height": "auto"});
+ $("body").css({ "position": "initial", "height": "auto" });
});
function bodyScroll(event) {
@@ -292,12 +292,12 @@ $.ajax({
var new_arry = result.data.topic;
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++) {
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('');
var add_mess = {};
add_mess.journal_id = localStorage.Journals_num;
@@ -329,7 +329,7 @@ $.ajax({
if ($(".uity_inp").val() == "") {
$(".spa_su").text('Please fill in E-mail');
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');
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);
$('.About_Journal').attr('href', '../about_journal.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_Bord2').attr('href', '../z_f11-1.html?J_num=' + Jour_num);
-
+
// $('.rgb_color').css('color',arr_jour.system_color);//颜色
// $('.rgb_ground').css('background-color',arr_jour.system_color);//背景
@@ -563,7 +569,7 @@ $.ajax({
} else {
var pdf_ = '
PDF ( ' + arr[i].pdf_num + ' )'
}
- 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 = ' ' +
'Google Scholar' //搜索引用次数
@@ -611,7 +617,7 @@ $.ajax({
var num = $(this).next().html();
$.ajax({
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) {
if (result.code == 0) {
num = num * 1 + 1 * 1
@@ -620,7 +626,7 @@ $.ajax({
})
$.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
- data: {'type': Jour_num, 'is_detail': '1'},
+ data: { 'type': Jour_num, 'is_detail': '1' },
success: function (result) {
}
});
@@ -669,8 +675,8 @@ $.ajax({
loop: true, //循环
slidesPerGroup: 1, // 多少列为一组
slidesPerView: "1", //默认1, 同时显示的slides数量,auto 代表根据轮播图的宽度排列
- observer:true,//修改swiper自己或子元素时,自动初始化swiper
- observeParents:true,//修改swiper的父元素时,自动初始化swiper
+ observer: true,//修改swiper自己或子元素时,自动初始化swiper
+ observeParents: true,//修改swiper的父元素时,自动初始化swiper
spaceBetween: 1, //轮播图之间的间距
// pagination: {
// el: '.swiper-pagination',
@@ -716,32 +722,32 @@ $.ajax({
// 获取地址判断国家跳转
$.ajax({
- type: 'post', url: apiUrl + 'api/Main/getIpLocation',
- data: {
- "ip": returnCitySN["cip"]
- },
- success: function (result) {
- if (result.code == 0) {
+ type: 'post', url: apiUrl + 'api/Main/getIpLocation',
+ data: {
+ "ip": returnCitySN["cip"]
+ },
+ success: function (result) {
+ 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 (loca_ip != 'cn') {
- window.parent.location.href = "https://www.tmrjournals.cn/lr"
- }
- }
- if (result.data.country == 'gw') {
- if (loca_ip != 'com') {
- window.parent.location.href = "https://www.tmrjournals.com/lr"
- }
- }
- } else {
- // ShowDanger("请求失败!");
- }
- },
- error: function () {
- ShowDanger("error!");
- }
+ if (result.data.country == 'gn') {
+ if (loca_ip != 'cn') {
+ window.parent.location.href = "https://www.tmrjournals.cn/lr"
+ }
+ }
+ if (result.data.country == 'gw') {
+ if (loca_ip != 'com') {
+ window.parent.location.href = "https://www.tmrjournals.com/lr"
+ }
+ }
+ } else {
+ // ShowDanger("请求失败!");
+ }
+ },
+ error: function () {
+ ShowDanger("error!");
+ }
})
} else {
@@ -762,6 +768,6 @@ $('.sfor_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());
})
diff --git a/nta/index.html b/nta/index.html
index c6bd6d9..30c92bb 100644
--- a/nta/index.html
+++ b/nta/index.html
@@ -2,7 +2,7 @@