From 034476a695a1ebcc5879d0b062575742d82e82e9 Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Mon, 24 Jul 2023 09:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A2=E5=BC=95=E5=B1=95=E7=A4=BA=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- article.html | 6 +++++- js/article.js | 36 ++++++++++++++++++++++++++++++------ style/style.css | 24 +++++++++++++++++++++++- 3 files changed, 58 insertions(+), 8 deletions(-) diff --git a/article.html b/article.html index 5b76371..4717d92 100644 --- a/article.html +++ b/article.html @@ -76,6 +76,7 @@ +
@@ -317,12 +318,15 @@
- +
+ +
+ diff --git a/js/article.js b/js/article.js index 9644862..f47a367 100644 --- a/js/article.js +++ b/js/article.js @@ -6878,10 +6878,25 @@ function article_con() { var str = ''; for (var i = 0; i < arr.length; i++) { if (arr[i].width == 0) { - str += '

' + arr[i].content + '

' + if(arr[i].is_title == 1){ + if(arr[i].content.indexOf("

") >= 0){ + str += "

"+arr[i].content+"
" + }else{ + str += '

' + arr[i].content + '

' + } + }else{ + if(arr[i].content.indexOf("

") >= 0){ + str += arr[i].content + }else{ + str += '

' + arr[i].content + '

' + } + } } else { - str += '

' + arr[i].note + '

' + var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + arr[i].content; + var fun = "picPreview('"+ picsrc +"');" + // console.log(fun) + str += "

" + arr[i].note + "

" } } $('.wen_rong .content-box .conthtmn').html(str); @@ -6894,18 +6909,18 @@ function article_con() { if(result.data.refers[rr].refer_type=='journal' && result.data.refers[rr].doilink != '' ){ // journal xuhao ++ - item = "

"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + "" + result.data.refers[rr].joura +"" + result.data.refers[rr].dateno + ".
Available at:"+ result.data.refers[rr].doilink +"

" + item = "

"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + "." + result.data.refers[rr].joura +"" + result.data.refers[rr].dateno + ".
Available at:"+ result.data.refers[rr].doilink +"

" refs += item }else if(result.data.refers[rr].refer_type=='book' && result.data.refers[rr].isbn != ''){ // book xuhao ++ - item = "

"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + result.data.refers[rr].dateno + ".
Available at:

" + item = "

"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title+"." + result.data.refers[rr].dateno + ".
Available at:

" refs += item }else if(result.data.refers[rr].refer_type=='other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15){ // other xuhao ++ - item = "

"+ xuhao + '.' + result.data.refers[rr].refer_frag +"

" + item = "

"+ xuhao + '.' + result.data.refers[rr].refer_frag +".

" refs += item }else{ continue; @@ -7369,3 +7384,12 @@ function article_con() { }) } +// 图片预览 +function picPreview(src){ + console.log(src) + $('.PicPreview img').attr('src', src) + $('.PicPreview').show() +} +$('.PicPreview').on('click', function () { + $('.PicPreview').hide() + }) diff --git a/style/style.css b/style/style.css index 956f112..5f357bc 100644 --- a/style/style.css +++ b/style/style.css @@ -4927,4 +4927,26 @@ ul li .ab_tad { .reviewerBox .box{display: inline-block; padding: 10px;} .reviewerBox .box span{display: block; margin-bottom: 5px;} .reviewerBox:after{position: absolute; left: 145px; top:0; content: ''; width:2px; height: 100%; border-right: 2px dashed #2894ef; z-index: 0;} -.trackItem .reviewerBox:first-child{padding-top: 15px;} \ No newline at end of file +.trackItem .reviewerBox:first-child{padding-top: 15px;} + +/* 图片预览 */ +.PicPreview{display: none; + position: absolute; z-index: 100; + top: 0; + left:0; + width: 100%; + height: 100vh; overflow-y: scroll; + background: rgba(0, 0, 0, 0.5);} +.PicPreview img { + background-color: #fff; + max-width:900px; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); + left: 50%; +} +.newBox{height: 100vh; overflow-y: scroll;} +.Ptitle{background: rgb(23, 138, 184); + padding: 4px; margin: 15px 0;} +.Ptitle p{margin-bottom: 0 !important; font-weight: bold; color: #fff !important; font-style: italic;} +#html88 strong{font-weight: bold !important;} \ No newline at end of file