PageSourceSearch

https://www.htu.edu.cn/_upload/tpl/11/5c/4444/template4444/js/list.js

js htu.edu.cn collected 2026-10-02 07:00:53 UTC 3,818 bytes, 81 lines download raw bytes

1$(function(){
2	/*栏目图片高度*/
3	var $lbannerImg = $(".l-banner").find("img");
4	var imgsrc = $lbannerImg.attr("src");
5	if(imgsrc == "" || imgsrc == undefined){
6		var imgsrc = $lbannerImg.data("imgsrc");
7	}
8	//$lbannerImg.attr("src",imgsrc);
9	$(".l-banner").css("backgroundImage","url("+imgsrc+")");
10
11$(".possplit").text(" / ")
12
13
14	//图片随机展示
15	var default_list=['/_upload/tpl/11/5c/4444/template4444/images/default_img1.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img2.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img3.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img4.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img5.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img6.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img7.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img8.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img9.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img10.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img11.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img12.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img13.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img14.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img15.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img16.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img17.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img18.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img19.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img20.jpg','/_upload/tpl/11/5c/4444/template4444/images/default_img21.jpg']
16	$(".default .col_news_list li.news .imgs").each(function(){
17		var lg=default_list.length-1
18		if($(this).find("img").length==0){
19			var _src=default_list[parseInt(Math.random()*(lg+1),10)]
20			console.log(_src)
21			$(this).css("backgroundImage","url("+_src+")") 
22		}
23	})
24
25	
26	var os = function(){  
27		var ua = navigator.userAgent,  
28		isWindowsPhone = /(?:Windows Phone)/.test(ua),  
29		isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,   
30		isAndroid = /(?:Android)/.test(ua),   
31		isFireFox = /(?:Firefox)/.test(ua),   
32		isChrome = /(?:Chrome|CriOS)/.test(ua),  
33		isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)),  
34		isPhone = /(?:iPhone)/.test(ua) && !isTablet,  
35		isPc = !isPhone && !isAndroid && !isSymbian;  
36		return {  
37			isTablet: isTablet,  
38			isPhone: isPhone,  
39			isAndroid : isAndroid,  
40			isPc : isPc  
41		};  
42	}();
43	
44	if(os.isAndroid || os.isPhone || os.isTablet){
45	    scrollTable()
46	}
47	if(os.isPhone || os.isTablet){
48		var idIframe = 'wrapperinner-iframe-t';
49		$(".wp_articlecontent iframe").each(function(i, iframe){
50			var idsIframe = idIframe+'-'+i;
51			$wrapper = $('<div class="wrapperiframe" id="'+idsIframe+'" />');
52			$(iframe).wrap($wrapper);
53			var resultContentH = $(iframe).height();
54			$("#"+ids).height(resultContentH+20);
55		});
56	}
57	function scrollTable(){
58		setTimeout(function(){
59			var id = 'wrapperinner-tab-t';
60			$(".wp_articlecontent table").each(function(i, table){
61				var ids = id+'-'+i;
62				$wrapper = $('<div class="wrapperinner" id="'+ids+'" />');
63				$scroller = $('<div class="scroller" />');
64				$(table).wrap($wrapper);
65				$(table).wrap($scroller);
66				
67				var resultContentH = $(table).height();
68				$("#"+ids).height(resultContentH+20);
69				var scroller = new IScroll("#"+ids, { eventPassthrough: true, scrollX: true, scrollY: false, preventDefault: false });
70				setTimeout(function(){
71					scroller.refresh();
72				},60);
73				$(table).data("scroller", scroller);
74			});
75		},30);
76	}
77}); 
78
79
80
81

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.