PageSourceSearch

https://www.iknowlogy.com/_upload/tpl/03/f7/1015/template1015/js/list.js

js iknowlogy.com collected 2026-10-06 05:04:41 UTC 2,125 bytes, 66 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	var os = function(){  
12		var ua = navigator.userAgent,  
13		isWindowsPhone = /(?:Windows Phone)/.test(ua),  
14		isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,   
15		isAndroid = /(?:Android)/.test(ua),   
16		isFireFox = /(?:Firefox)/.test(ua),   
17		isChrome = /(?:Chrome|CriOS)/.test(ua),  
18		isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)),  
19		isPhone = /(?:iPhone)/.test(ua) && !isTablet,  
20		isPc = !isPhone && !isAndroid && !isSymbian;  
21		return {  
22			isTablet: isTablet,  
23			isPhone: isPhone,  
24			isAndroid : isAndroid,  
25			isPc : isPc  
26		};  
27	}();
28
29	if(os.isAndroid || os.isPhone || os.isTablet){
30	    scrollTable()
31	}
32	if(os.isPhone || os.isTablet){
33		var idIframe = 'wrapperinner-iframe-t';
34		$(".wp_articlecontent iframe").each(function(i, iframe){
35			var idsIframe = idIframe+'-'+i;
36			$wrapper = $('<div class="wrapperiframe" id="'+idsIframe+'" />');
37			$(iframe).wrap($wrapper);
38			var resultContentH = $(iframe).height();
39			$("#"+ids).height(resultContentH+20);
40		});
41	}
42	function scrollTable(){
43		setTimeout(function(){
44			var id = 'wrapperinner-tab-t';
45			$(".wp_articlecontent table").each(function(i, table){
46				var ids = id+'-'+i;
47				$wrapper = $('<div class="wrapperinner" id="'+ids+'" />');
48				$scroller = $('<div class="scroller" />');
49				$(table).wrap($wrapper);
50				$(table).wrap($scroller);
51				
52				var resultContentH = $(table).height();
53				$("#"+ids).height(resultContentH+20);
54				var scroller = new IScroll("#"+ids, { eventPassthrough: true, scrollX: true, scrollY: false, preventDefault: false });
55				setTimeout(function(){
56					scroller.refresh();
57				},60);
58				$(table).data("scroller", scroller);
59			});
60		},30);
61	}
62}); 
63
64
65
66

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.