PageSourceSearch

http://dsjyj.com.cn/style/web/js/en/tpl5/main.js

js dsjyj.com.cn collected 2026-10-02 05:18:12 UTC 3,181 bytes, 103 lines download raw bytes

1$(function(){
2		var tempYear= new Date().getFullYear();
3		var tempDay = new Date().getDate();
4		
5//	datechange = dateTemp
6//var dateArr=datechange.split("-");
7	if($("#language").val() == "cn" || $("#language").val() == "zh"){
8		var tempMonth = new Date().getMonth()+1;
9		var datechange =tempYear+"年"+tempMonth+"月"+tempDay+"日\xa0"
10		
11		var wee = new Array("日", "一", "二", "三", "四", "五", "六");  
12		var weekto = new Date().getDay();  
13		var weekstr = wee[weekto];
14		$(".dateCon ").text(datechange+'星期'+weekstr);
15		//$(".weekcon").text(weekstr);
16	}	
17	if($("#language").val() == "en"){
18		var tempMonth = new Date().getMonth();
19		var tempMonEng =["Jan.","Feb.","Mar.","Apr.","May","June","July","Aug","Sept.","Oct.","Nov.","Dec."]
20         var datechange =tempMonEng[tempMonth]+" "+tempDay+", "+tempYear
21 		$(".dateCon ").text(datechange);
22	}
23
24	
25	if($('#searchSign').length>0){
26		$('.banner-bg .tgbtn,.banner-bg .j-searchBg').hide();
27	}
28	
29})
30
31
32function loadPluginsMetric(articles){
33	//if($('.cited-show').length > 0){
34		var idArray = [];
35		for(var i = 0;i<articles.length;i++){
36			idArray.push(articles[i].id);
37		}
38		
39    if (idArray.length > 0) {
40    var ids = idArray.toString();	
41		$.ajax({
42	        url: local_host + '/article/getArticleMetric',
43			async:false,
44	        data: { 'articleIds': ids },
45	        success: function (data) {
46	        	if(data.result == "success"){
47		        	$.each(data.data,function(i,e){
48			//htmlViewCount //pdfDownCount //viewCount
49		        		for(var j = 0;j<articles.length;j++){
50		        			if(e.articleId == articles[j].id){
51		        				var visitArticleCount = 0;
52			        			if(!isNull(e.visitArticleCount) && e.visitArticleCount != 0){
53			        				visitArticleCount = e.visitArticleCount;
54				        		}
55								articles[j].visitArticleCount = visitArticleCount;
56								var pdfDownloadCount = 0;
57			        			if(!isNull(e.pdfDownloadCount) && e.pdfDownloadCount != 0){
58			        				pdfDownloadCount = e.pdfDownloadCount;
59				        		}	
60								articles[j].pdfDownloadCount = 	pdfDownloadCount;					
61		        				
62		        			}
63	        			}
64		    		})
65	        	}else{
66	        		console.log(data.message);
67	        	}
68	        }
69		})
70	}
71}
72
73
74$(function(){
75	if($('#articleId').length){
76		if($('.visitArticleNum').length){
77			var id = $('#articleId').val();
78			setTimeout(function(){
79				$.ajax({
80			        url: local_host + '/article/getArticleMetric',
81			        data: { 'articleIds': id },
82			        success: function (data) {
83			        	if(data.result == "success"){
84				        	$.each(data.data,function(i,e){
85								if(e.articleId == id){
86									$('.visitArticleNum').html(e.visitArticleCount);
87									if(!e.visitArticleCount) $('.visitArticleNum').parent().hide();
88									if($('.pdfArticleNum').length){
89										$('.pdfArticleNum').html(e.pdfDownloadCount);
90										if(!e.pdfDownloadCount) $('.pdfArticleNum').parent().hide();
91									}
92								}
93				    		})
94			        	}else{
95			        		console.log(data.message);
96			        	}
97			        }
98				})				
99			},100)		
100		}
101	}
102
103})

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.