PageSourceSearch

https://maxapress.com/style/web/js/common/base.js?t=116

js maxapress.com collected 2026-09-24 09:18:17 UTC 26,242 bytes, 685 lines download raw bytes

1/**
2 * 定义全局变量
3 * local:当前地址栏URL
4 * contextPath:项目名称,在服务器上可能没有项目名称,注意发布前修正
5 * basePath:项目内容根路径,用于引入图片或者css样式,同contextPath
6 * local_host:域名内容,例如: http://localhost:8080/scxb,用于action
7 * web_basePath:项目内容路径(服务器发布)
8 * web_host:域名内容,例如:http://www.rhhz.net
9 * */
10var local = window.location;
11var contextPath = local.pathname.split("/")[1];
12var messageTimer=null;//显示动态消息
13
14//本地使用
15var basePath = local.protocol+"//"+local.host+"/"+contextPath;
16var local_host = "";
17if(window.location.href.indexOf("/en/") < 0 ){
18	local_host="//"+local.host+"/";
19}else{
20	local_host="//"+local.host+"/en/";
21}
22
23
24
25
26//ajax 参数
27var ajaxArg={
28    url : "",   //url 路径
29    data : {},  //data 传送数据
30    extraDate : null, //主要用于回调函数使用
31    returnFun:"" //回调函数
32};
33/**
34 * ajax 公共方法
35 */
36function ajaxPost(ajaxArg){
37    $.ajax({
38        type:'post',
39        url:ajaxArg.url,
40        data:ajaxArg.data,
41        dataType:'json',
42        success:function(data){
43            ajaxArg.returnFun(data,ajaxArg.extraDate);
44        },
45        error: function(XMLHttpRequest, textStatus, errorThrown) {
46            console.info("----- submit search error ---");
47            console.info("----- XMLHttpRequest.responseText ---"+XMLHttpRequest.responseText);
48            console.info("----- XMLHttpRequest.status ---"+XMLHttpRequest.status);
49            console.info("----- XMLHttpRequest.readyState ---"+XMLHttpRequest.readyState);
50            console.info("----- textStatus ---"+textStatus);
51        }
52    })
53};
54$(function(){
55    $("body").on('click','.group2',function(){
56    	$(this).colorbox({rel:'group2',width:'90%',height:"75%",opacity:'0.8'});
57    })
58})
59
60/**
61 * 批量查询文章计量信息
62 * @return
63 */
64function loadArticleMetricByIds(){
65    var idArray = [] ;
66    $(".article-list").each(function(i,e){
67        var articleId = $(e).attr("id");
68        if(!isNull(articleId)){
69            idArray.push(articleId);
70        }
71    })
72    if(idArray.length > 0){
73        var ids = idArray.toString();
74        var ajaxArg={
75            url: local_host +"data/article/articel-metrics-data",
76            data: {'articleIds':ids},
77            returnFun:outArticleMetric
78        };
79        ajaxPost(ajaxArg);
80    }
81}
82
83/**
84 * 输出列表中的文章计量信息
85 * @param data
86 * @param indexArray
87 * @return
88 */
89function outArticleMetric(data){
90    if(typeof(data) != "undefined"){
91    	if(data.result == "success"){
92	        $.each(data.data,function(i,e){
93	        	$("#"+e.articleId).find(".abs-num").html(e.visitArticleCount);
94	            $("#"+e.articleId).find(".html-num").html(e.fulltextViewCount);
95	            $("#"+e.articleId).find(".pdf-num").html(e.pdfDownloadCount);
96	        })
97    	}else{
98    		console.log(data.message);
99    	}
100    }
101}
102
103/*优先发表和当期srcl图片切换*/
104$(function(){
105    // 优发表图片第一张图片懒加载
106    function scrollImg() {
107        var aImg=$("#onlineFirst .article-list .curtu .picList");
108        var len = aImg.length;
109        var n = 0;//存储图片加载到的位置,避免每次都从第一张图片开始遍历
110        var seeHeight = document.documentElement.clientHeight;//可见区域高度
111        var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
112        for (var i = n; i < len; i++) {
113            var prioTop=$("#onlineFirst .article-list").find(".curtu").eq(i).offset().top;
114            //console.log(prioTop)
115            if (prioTop < seeHeight + scrollTop) {
116                $("#onlineFirst .article-list").find(".curtu").eq(i).find(".picList li:first img").attr({"src":$("#onlineFirst .article-list").find(".curtu").eq(i).find(".picList li:first a").attr("href")});
117                n = i + 1;
118            }
119        }
120    }
121    scrollImg();
122    $(window).scroll(function () {
123        scrollImg();
124    });
125    /*当期图片先不加载,点击后再加载第一张*/
126    $(".tab-ul li.current_").click(function(){
127        $("#current .article-list").each(function(){
128            if($(this).find(".picList li:first a img").attr("src")==undefined){
129                $(this).find(".picList li:first a img").attr({"src":$(this).find(".picList li:first a img").attr("srcl")});
130            }
131        })
132    });
133    // 如果只有一张图片就不显示左右箭头
134    $(".article-list").each(function(){
135        if($(this).find(".picList li").length<=1){
136            $(this).find(".picPrev,.picNext").hide();
137        }
138    })
139    function pic(){
140        if($(window).width()>=1200){
141            $(".picList").each(function () {
142                var _li=$(this).find("li");
143                $(this).css({"width":_li.length*_li.width()});
144                $(this).find("li").eq(0).addClass("active");
145            });
146            $(".picNext").click(function(){
147                var index=$(this).siblings(".picList").find("li.active").index();
148                var length=$(this).siblings(".picList").find("li").length;
149                if(index >= 0 && index < length-1) {
150                    ++index;
151                    $(this).siblings(".picList").find("li").eq(index).addClass("active").siblings("li").removeClass("active");
152                    if(typeof($(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl"))!="undefined"){
153                        var aNhref=$(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl");
154                        $(this).siblings(".picList").find("li").eq(index).find("a img").attr({"src":aNhref});
155                    }else{
156                        var aNhref=$(this).siblings(".picList").find("li").eq(index).find("a").attr("href");
157                        $(this).siblings(".picList").find("li").eq(index).find("a img").attr({"src":aNhref});
158                    }
159                }else if(index==length-1){
160                    var index=0;
161                    $(this).siblings(".picList").find("li").eq(index).stop(true,true).addClass("active").siblings("li").removeClass("active");
162                }
163            });
164            $(".picPrev").click(function(){
165                var index=$(this).siblings(".picList").find("li.active").index();
166                var length=$(this).siblings(".picList").find("li").length;
167                if(index >= 0 && index <= length-1) {
168                    --index;
169                    $(this).siblings(".picList").find("li").eq(index).addClass("active").siblings("li").removeClass("active");
170                    if(typeof($(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl"))!="undefined"){
171                        var aNhref=$(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl");
172                        $(this).siblings(".picList").find("li").eq(index).find("a img").attr({"src":aNhref});
173                    }else{
174                        var aNhref=$(this).siblings(".picList").find("li").eq(index).find("a").attr("href");
175                        $(this).siblings(".picList").find("li").eq(index).find("a img").attr({"src":aNhref});
176                    }
177                }else if(index==0){
178                    $(this).siblings(".picList").find("li").eq(length-1).addClass("active").siblings("li").removeClass("active");
179                }
180            });
181        }else{
182            $(".picList").css({"width":"100%"});
183            $(".article-list").each(function(){
184                $(this).find(".curtu-show .picList li").each(function(){
185                    console.log($(this).find("a").attr("href"));
186                    $(this).find("a img").attr({"src":$(this).find("a").attr("href")});
187                })
188            })
189            if($(".picList").length>0){
190                $('.picList').owlCarousel({
191                    items:1,
192                    itemsDesktop:[1170,1],
193                    itemsDesktopSmall : [992,1],
194                    itemsTablet: [768,1],
195                    itemsTabletSmall:[450,1],
196                    itemsMobile : [360,1],
197                    navigation: true,
198                    navigationText: ["",""],
199                    autoPlay:false,
200                    rewindSpeed:300
201                });
202            }
203        }
204    }
205    $(window).load(function(){
206        pic();
207    });
208    $(window).resize(function(){
209        pic();
210    });
211})
212/*显示大图后点击关闭按钮和阴影部分srcl问题*/
213function src(){
214    var allSrc=[];
215    var tanSrc=$("#cboxLoadedContent img");
216    var allSlide=$(".picList li");
217    var allSlideA=allSlide.find("a");
218    for (var i = 0; i < allSlide.length; i++) {
219        allSrc.push((allSlideA[i].href));
220    }
221    if($(".picBox").length>0){
222        for (var i = 0; i < allSlide.length; i++){
223            for(var j=0;j<tanSrc.length;j++){
224                if(tanSrc[j].src==allSlideA[i].href){
225                    $(".picList li").eq(i).find("a img").attr({"src":$("#myTabContent .picList li").eq(i).find("a").attr("href")});
226                    $(".picList li").eq(i).addClass("active").siblings().removeClass("active");
227                }
228            }
229        }
230    }
231}
232
233$(function(){
234    $(".article-list").each(function(){
235        var h=$(this).find(".article-list-right .article-list-title a").css("line-height");
236        $(this).find(".article-list-left").css({"height":h});
237        $(this).find(".article-list-left").children().addClass("allCenter");
238    });
239    
240    $(".group3").colorbox({rel:'group3',width:'90%',height:"75%",opacity:'0.8',
241        onComplete:function(){
242            $("#cboxTitle").niceScroll({
243                cursorcolor:"transparent",
244                cursoropacitymax:1,
245                touchbehavior:false,
246                cursorwidth:"5px",
247                cursorborder:"0",
248                cursorborderradius:"5px"
249            });
250            //渲染数学公式
251            //MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
252        }
253    });
254    $(".group4").colorbox({rel:'group4',width:'90%',height:"75%",opacity:'0.8',inline:true});
255    // 解决文章详情页图片公式路径问题,以前的只针对全文公式
256    var allPath=$("#allSrc").val();
257    if($(".article-abstract img,.article-info-en img").length>0){
258        $(".article-abstract img,.article-info-en img").each(function(){
259            var src=$(this).attr("src");
260           //2022年5月21日 更新 $(this).attr({"src":allPath+src});
261            var  imgUrl  = allPath+src;
262            imgUrl = imgUrl.replace('/PIC/PIC','/PIC')
263            $(this).attr({"src":imgUrl});
264        })
265    }
266})
267
268/**
269 * 文章导出引用信息到文件
270 * e:object,当前对象
271 * */
272function toExportCitation(e,pageType){
273    var ids = $(e).attr("article_id");
274    if(typeof(ids) == "undefined" || ids == null || ids == ""){
275        ids =  $("#articleId").val();
276    }
277    if(ids != ""){
278        //alert(ids);
279        var type = $("input[name='format']:checked").val();
280        //1 包含摘要   0不包含摘要
281        var content = $("input[name='content']:checked").val();
282        filePath=local_host+"data/article/export-citation?ids="+ids+"&fileType="+type+"&isAbs="+content+"&publisherId="+$('#publisherId').val();
283        //window.location.href=filePath;
284        window.open(filePath,'_parent');
285        $(".li_excel_box").hide();
286        $(".modal-bg").hide();
287    }else{
288        if($("#language").val()=="cn"){
289            alert("文章信息有误,请核对!");
290        }else{
291            alert("Article information is wrong, please check!");
292        }
293    }
294}
295
296//table缩略图svg不显示,识别不了&nbsp和<hr>,替换掉它们
297function nbsp(el) {
298    var tableSon=$(el);
299    for(var i=0;i<tableSon.length;i++){
300        var test=tableSon[i].innerHTML;
301        test=test.replace(/&nbsp;/ig, "");
302        test=test.replace(/<hr>/ig, "");
303        tableSon[i].innerHTML=test;
304    }
305}
306//2022年5月21日
307function createTableSub(){
308	   // $('.table-body').find('br').remove();
309	    //$('td').find('br').remove();
310		var reg = new RegExp( '<br>' , "g" )
311	    $(".table_content table").each(function(i,e){
312	    	$(e).html($(e).html().replace(reg,'<br />'));
313	        var subImg = $(e).parents(".figure").find(".article_table_fullText img");
314	        html2Img($(e),subImg);
315	    })
316	}
317
318function html2Img(Obj,imgObj){
319    var htmlContent = $(Obj).prop("outerHTML");
320    var data = "data:image/svg+xml," +
321        "<svg xmlns='http://www.w3.org/2000/svg' width='350' height='600'>" +
322        "<foreignObject width='2000' height='100%'>" +
323        "<div xmlns='http://www.w3.org/1999/xhtml' style='font-size:16px;font-family:Helvetica'>" +
324        htmlContent +
325        "</div>" +
326        "</foreignObject>" +
327        "</svg>";
328    $(imgObj).attr("src",data);
329}
330
331//下载xml
332function toExportXML(articleId){
333	var publisherId = $("#publisherId").val();
334   // window.location.href=local_host+"data/article/export-xml?ids="+articleId+"&publisherId="+publisherId;
335    window.open(local_host+"data/article/export-xml?ids="+articleId+"&publisherId="+publisherId,'_parent')
336}
337
338/**
339 * 将表格导出csv文件
340 * @param articleId
341 * @param tagId 文章详情页中的图表示
342 * @return
343 */
344function downloadCsv(articleId,tagId){
345   // window.location.href=local_host+"data/article/export-csv?articleId="+articleId+"&tableId="+tagId;
346    window.open(local_host+"data/article/export-csv?articleId="+articleId+"&tableId="+tagId,'_parent');
347}
348
349/**
350 * 下载大图
351 * @param id figureId : paragraphElementId
352 * @param type para : figure 文章详情页中的图表示
353 * @return
354 */
355function downloadImg(figureId,articleId){
356    //window.location.href=local_host+"data/article/export-img?figureId="+figureId+"&articleId="+articleId;
357    window.open(local_host+"data/article/export-img?figureId="+figureId+"&articleId="+articleId,'_parent');
358}
359
360/**
361 * 导出ppt
362 * @param figName
363 * @param articleId
364 * @param title
365 * @param titleEn
366 * @return
367 */
368function downloadPPT(figureId,articleId){
369    //window.location.href=local_host+"data/article/export-ppt?tagId="+figureId+"&articleId="+articleId;
370    window.open(local_host+"data/article/export-ppt?tagId="+figureId+"&articleId="+articleId,'_parent');
371}
372
373/**
374 * 判断设备
375 */
376function browserRedirect() {
377    var sUserAgent = navigator.userAgent.toLowerCase();
378    var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
379    var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
380    var bIsMidp = sUserAgent.match(/midp/i) == "midp";
381    var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
382    var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
383    var bIsAndroid = sUserAgent.match(/android/i) == "android";
384    var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
385    var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
386    //document.writeln("您的浏览设备为:");
387    if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
388        //console.log('定位');
389        //alert($('#articleId').val());
390        //ajaxCountHtmlView($('.article-nav li:contains(全文)').attr('articleId'))
391    } else {
392        //alert($('#articleId').val());
393        var val = $('.article-nav li:contains(Full Text(HTML))').attr('articleId'); //获取
394        // alert(val);
395    }
396}
397browserRedirect();
398
399var cacheObj = {
400    cache: {},
401    set: function (content, id, val) {
402        this.cache[content + id] = val
403    },
404    get: function (content, id, ajaxF) {
405        return this.cache[content + id]
406    },
407    clearCache: function () {
408        this.cache = {}
409    }
410};
411
412//判断com-author-wrap内容如果为空,下拉三角不显示
413function hideComDrop(){
414    var comAuthorWrap=$(".com-author-wrap").text().trim();
415    //alert(comAuthorWrap);
416    if(comAuthorWrap == ""){
417        $(".com-drop").hide();
418    }
419}
420var currentTab = "abs";     // abs(摘要) || html(全文) || fig(图表) || ref (参考文献)|| sup(附件) || rel(相关文章)
421//去除表格是图片的border
422removeTableBorder();
423//调整全文中公式是图片的路径
424//resetFormulaSrc();
425//隐藏通讯作者下拉箭头
426if($(".com-author-wrap").length>0){
427    hideComDrop();
428}
429currentTab = $('.article-nav ul li.current').attr("rel");
430//处理作者标签,如果以,结尾 去除最后一个,
431$("sup.authorTag,.article-author,.article-keyword").each(function(i,e){
432    var tagText = $(e).text().trim();
433    if(tagText.endWith(",")){
434        var tagHtml = $(e).html().trim();
435        $(e).html(tagHtml.substring(0,tagHtml.length - 1));
436    }
437})
438
439//重置图表中的href链接
440function resetHref(){
441    $(".article-box3 a[ref-type='fig']").each(function(i,e){
442        var resetFigHref=$(e).attr("href");
443        var resetFigureNum = Number(resetFigHref.substring(7)); //提取图的数字
444        //alert(resetfigureNum);
445        resetFigHref=$(e).attr({"href":"#Fig-Figure"+resetFigureNum+""});
446    })
447    $(".article-box3 a[ref-type='table']").each(function(i,e){
448        var resetTableHref=$(e).attr("href");
449        var resetTableNum = Number(resetTableHref.substring(6)); //提取表的数字
450        //alert(resetfigureNum);
451        resetTableHref=$(e).attr({"href":"#Fig-Table"+resetTableNum+""});
452    })
453}
454
455//调整全文中公式是图片的路径
456function resetFormulaSrc(){
457    var path = $("#allSrc").val();
458    $(".formula,styled-content").each(function(i,e){
459        var obj = $(e).find("img");
460        if(obj.length==0)return true;
461        var src = obj.attr("src");
462        if(src.indexOf(path)==-1 && src.indexOf('http')==-1 && src.indexOf(path.replace(/https\:\/\/map-data\.maxapress\.com\//,''))==-1){
463            src = path+src.replace(/PIC\//,'');
464        }
465        var onerror = src.replace(/.jpg/,".png");
466        obj.attr("onerror","this.onerror=null;this.src='"+onerror+"'").attr("src",src);
467    })
468    $("inline-formula").each(function(i,e){
469        var obj = $(e).find("img");
470        if(obj.length==0)return true;
471        var src = obj.attr("src");
472        if(src.indexOf(path)==-1){
473            src = path+src.replace(/PIC\//,'');
474        }
475        var onerror = src.replace(/.jpg/,".png");
476        obj.attr("onerror","this.onerror=null;this.src='"+onerror+"'").attr("src",src);
477    });
478    $("inline-formula").each(function(){
479        var num=$(this).find("alternatives .graphic");
480        if(num.length>1){
481            $(this).find("alternatives .graphic:first").show().siblings().hide();
482        }
483    });
484}
485
486//判断图表中是否含有图片
487function removeTableBorder(){
488    var tableImg=$(".table_content table").find("img");
489    tableImg.parents(".table_content table").css({"border-bottom":"0"});
490}
491
492
493//滚动显示目录导航
494function createContents(){
495    //alert(currentTab);
496    $(window).scroll(function(){
497        var articlescrolltop=$(document).scrollTop();
498        if(articlescrolltop>=600){
499            $(".article_ceil_wrap").show();
500            //$(".article-bomb-box-wrap").show();
501            //$(".article-box-wrap").hide();
502        }else{
503            $(".article_ceil_wrap").hide();
504            //$(".article-bomb-box-wrap").hide();
505            //$(".article-box-wrap").show();
506        }
507        $('.article_ceil_list').stop().hide();
508    })
509}
510
511/**
512 * 创建文档结构树
513 * @return
514 */
515function catalogTree(){
516    $(".ceilfirst").empty();
517    $(".figureCeilUl").empty();
518    $(".tableCeilUl").empty();
519    if(currentTab == "html"){
520        var html = "";
521        $(".article-box span.sec-title").each(function(i,e){
522            var level = $(e).attr("level");
523            var href = $(e).attr("id");
524            var title = $(e).text();
525            html += '<li class="sec_'+level+'"><a ref="#'+href+'" href="#'+href+'">'+title+'</a></li>';
526        })
527        $(".ceilfirst").empty().append(html);
528        var figureHtml="";
529        var tableHtml="";
530        $(".ceilfirst").css({"border-bottom":"1px solid #ccc"});
531        $(".article-box2 .figure .figure_title a img").each(function(i,e){
532            var figureHref=$(e).attr("id");
533            //alert(figureHref);
534            var figureNum = Number(figureHref.substring(6)); //提取图的数字
535            //alert(figureNum);
536            //var figureTitle=$(e).find(".figure_caption p").eq(0).text();
537            figureHtml += '<li class="figureShow"><i></i><a href="#Figure'+figureNum+'" ref="#Figure'+figureNum+'">图'+figureNum+'&nbsp;(Figure'+figureNum+')</a></li>';
538        })
539        $(".figureCeilUl").empty().append(figureHtml);
540
541        $(".article-box2 .figure .article_table_fullText>a").each(function(i,e){
542            var tableHref=$(e).attr("id");
543            //alert(tableHref);
544            var tableNum = Number(tableHref.substring(5)); //提取表的数字
545            //var tableTitle=$(e).find(".table_caption p").eq(0).text();
546            tableHtml += '<li class="tableShow"><i></i><a href="#Table'+tableNum+'" ref="#Table'+tableNum+'">表'+tableNum+'&nbsp;(Table'+tableNum+')</a></li>';
547        })
548        $(".tableCeilUl").empty().append(tableHtml);
549
550    }else{
551        var figureHtml="";
552        var tableHtml="";
553        $(".ceilfirst").css({"border-bottom":"none"});
554        $(".article-box3 .figure .figureTextBox a img").each(function(i,e){
555            var figureHref=$(e).attr("id");
556            var figureNum = Number(figureHref.substring(10)); //提取图的数字
557            //alert(figureNum);
558            //var figureTitle=$(e).find(".figure_caption p").eq(0).text();
559            figureHtml += '<li class="figureShow"><i></i><a href="#Fig-Figure'+figureNum+'" ref="#Fig-Figure'+figureNum+'">Figure'+figureNum+'</a></li>';
560        })
561        $(".figureCeilUl").empty().append(figureHtml);
562
563        $(".article-box3 .figure .article_table_fullText").each(function(i,e){
564            var tableHref=$(e).attr("id");
565            var tableNum = Number(tableHref.substring(9)); //提取表的数字
566            //var tableTitle=$(e).find(".table_caption p").eq(0).text();
567            tableHtml += '<li class="tableShow"><i></i><a href="#Fig-Table'+tableNum+'" ref="#Fig-Table'+tableNum+'">Table'+tableNum+'</a></li>';
568        })
569        $(".tableCeilUl").empty().append(tableHtml);
570
571    }
572    if(figureHtml==""&&tableHtml==""){
573        $(".figureCeil h4").css({"display":"none"});
574    }
575}
576
577/**
578 * 复制引用信息到剪切板
579 * @return
580 */
581function copyArticle(obj) {
582    var info = '';
583    $('#copyReference .citation').each(function (i, e) {
584        var copytext = $(e).text().trim();
585        // 仅当内容非空时添加
586        if (copytext.length > 0) {
587            info += copytext + '\r\n\r\n';
588        }
589    })
590    // 移除末尾多余换行
591    info = info.replace(/(\r\n)+$/, '');
592    if (!info){
593        info = $(obj).parent(".modal-footer").siblings(".copyCitationInfo").text().trim();
594    }
595    copyToClipboard(info, obj);
596}
597function copyArticle2(obj) {
598    var info = $(obj).parents("table").siblings(".copyCitationInfo").text().trim();
599    copyToClipboard(info,obj);
600}
601/**
602 * 将信息复制到剪切板
603 * @param info
604 * @return
605 */
606function copyToClipboard(info, obj) {
607    if (!navigator.clipboard) {
608        //改用textarea元素
609        var oInput = document.createElement('textarea');
610        oInput.value = info;
611        //禁用换行样式干扰
612        oInput.style.whiteSpace = 'pre';
613        document.body.appendChild(oInput);
614    }
615    setTimeout(function () {
616        if (!navigator.clipboard) {
617            // 移除jQuery依赖
618            oInput.select();
619            document.execCommand("Copy");
620            oInput.className = 'oInput';
621            oInput.style.display = 'none';
622        } else {
623            navigator.clipboard.writeText(info)
624        }
625        if ($(obj).parents("table").siblings(".copyCitationInfo").hasClass("copyCitationInfo-en") || $("#language").val() == "en") {
626            alert("copy citation success");
627        } else {
628            alert("复制成功");
629        }
630    }, 500);
631}
632
633
634function formatDateEn(datetime){
635	if(isNull(datetime)){
636		return "";
637	}
638	var date = new Date(datetime);
639	//var monthArr = new Array("Jan.","Feb.","Mar.","Apr.","May","June","July","Aug.","Spt.","Oct.","Nov.","Dec.");
640	var monthArr = new Array("Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec.");
641	//var suffix = new Array("st","nd","rd","th");
642	
643	var year = date.getFullYear(); //å¹´
644	var month = monthArr[date.getMonth()]; //月
645	var ddate = date.getDate(); //日
646	return month + " "+ Number(ddate) + ", " + year;
647}
648//保证bottom永远在底部
649function bottoms(){
650	var _hei = $(window).height()-$(".header").height()-$(".header-nav").height()-$(".footer").height();
651	if($(".main").height() < _hei){
652		$(".main").css('min-height',_hei);
653	}
654	if($('.left-content').length > 0){
655		var left = $('.left-content').height();
656		var right = $('.right-content').height();
657		if(right > left){
658			$('.left-content').css('min-height',right);
659		}
660	}
661}
662
663angular.element(window).bind('load', function() { 
664	bottoms();
665	
666		$('.leftjump a').click(function(){
667			var c = $(this).attr('class');
668			if($('#'+c).length > 0){
669				if($('#publisherId').val() == 'index' || $('#publisherId').val() == 'map' ){
670					var top = $('#'+c).offset().top -  100;
671				}else{
672					if($('.topjump').length > 0){
673						var tempP = $('.c-menu').height();
674						$('.topjump').css({'position':'sticky','top':tempP});
675						var top = $('#'+c).offset().top -  140 - $('.topjump').height();
676					}else{
677						var top = $('#'+c).offset().top -  140;
678					}
679					
680				}
681				$("html,body").animate({scrollTop:top},500);
682			}
683		})	
684});
685

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.