PageSourceSearch

https://f2.cri.cn/M00/91/B3/CqgNOl3XSlqAXLBlAAAAAAAAAAA4836556.js.js

js cri.cn collected 2026-09-24 07:49:47 UTC 8,029 bytes, 259 lines download raw bytes

1$(".secondIndex-banner").each(function(){
2	var num = 1;
3	var timer = null;
4	var _this = $(this);
5	var _thisW = $(this).width();
6	var _thisH = $(this).height();
7	var speed = 3000;
8	var runSpeed = 500;
9	var auto = $(this).attr("auto");
10	var thisType = $(this).attr("type");
11	var objLength = _this.find(".banner-img li").length;
12	
13	var typeDirectionCss = "";
14	var typeDirectionWH = "";
15	if(thisType=="vertical"){
16		typeDirectionCss = "margin-top";
17		typeDirectionWH = "height";
18	}else{
19		typeDirectionCss = "margin-left";
20		typeDirectionWH = "width";
21	}
22	
23	$(this).find(".banner-num span").text(num)
24	$(this).find(".banner-num strong").text(objLength)
25	
26	_this.find(".banner-img li").each(function(){
27		var _thisLi = $(this);
28		$(this).parents(".banner-img").siblings(".banner-nav").find("ul").append("<li></li>")
29		if($(this).index()==0){
30			$(this).parent().append($(this).clone());
31			$(this).parents(".banner-img").siblings(".banner-nav").find("li").eq(0).addClass("active")
32			$(this).parents(".banner-img").siblings(".banner-text").find("a").attr("href",$(this).find("a").attr("href"))
33			$(this).parents(".banner-img").siblings(".banner-text").find("a span").text($(this).find("img").attr("etitle"))
34		}
35		
36		if($(this).index()==($(this).parent().find("li").length-2)){
37			$(this).parent().prepend($(this).clone()).css(typeDirectionCss,-_this.css(typeDirectionWH));
38		}
39	})
40	
41	if(thisType=="vertical"){
42		$(this).find(".banner-img ul").height(_thisH*_this.find(".banner-img li").length)
43//		$(this).find(".banner-img li").css("float","none")
44	}else{
45		$(this).find(".banner-img ul").width(_thisW*_this.find(".banner-img li").length)
46	}
47	
48	if(objLength!=1){
49		if(thisType=="vertical"){
50			_this.find(".banner-img").find("ul").css({
51				"margin-top":-num*(parseInt(_this.css(typeDirectionWH)))
52			})	
53		}else{
54			_this.find(".banner-img").find("ul").css({
55				"margin-left":-num*(parseInt(_this.css(typeDirectionWH)))
56			})	
57		}
58		
59		timer = setInterval(function(){
60			if(auto=="true"){
61				runFn()
62			}
63		},speed);
64		
65		$(this).hover(function(){
66			clearInterval(timer);
67		},function(){
68			if(auto=="true"){
69				timer = setInterval(runFn,speed);
70			}
71		})
72		
73		$(this).find(".banner-nav").find("li").hover(function(){
74			num = $(this).index()+1;
75			runAniFn()
76			runEff();
77		})
78		
79		$(this).find(".banner-list").find("li").click(function(){
80			num = $(this).index()+1;
81			runAniFn()
82			runEff();
83		})
84		
85		$(this).find(".btnLeft").click(function(){
86			runLeft();
87			runEff();
88		})
89		
90		$(this).find(".btnRight").click(function(){
91			runRight();
92			runEff();
93		})
94	}
95	
96	function runFn(){
97		runRight();
98		runEff();
99	}
100	
101	function runEff(){
102		_this.find(".banner-nav").find("li").removeClass("active")
103		_this.find(".banner-nav").find("li").eq(num-1).addClass("active")
104		_this.find(".banner-text").find("a").attr("href",_this.find(".banner-img").find("li").eq(num).find("a").attr("href"))
105		_this.find(".banner-text").find("a span").text(_this.find(".banner-img").find("li").eq(num).find("img").attr("etitle"))
106		
107		_this.find(".banner-num span").text(num)
108		_this.find(".banner-num strong").text(objLength)
109		
110//		listCenter();
111	}
112	
113	
114	function runRight(){
115		num++;
116		if(num==_this.find(".banner-img").find("li").length-1){
117			_this.find(".banner-img").find("ul").css(typeDirectionCss,0)
118			num=1;
119		}
120		runAniFn()
121	}
122	
123	function runLeft(){
124		num--;
125		if(num==0){
126			console.log(num)
127			_this.find(".banner-img").find("ul").css(typeDirectionCss,-(_this.find(".banner-img").find("li").length-1)*(parseInt(_this.find(".banner-img").find("li").css(typeDirectionWH))))
128			num=_this.find(".banner-img").find("li").length-2;
129		}
130		runAniFn()
131	}
132	function runAniFn(){
133		if(thisType=="vertical"){
134			_this.find(".banner-img").find("ul").stop().animate({
135				"marginTop":-num*(parseInt(_this.css(typeDirectionWH)))
136			},runSpeed)	
137		}else{
138			_this.find(".banner-img").find("ul").stop().animate({
139				"marginLeft":-num*(parseInt(_this.css(typeDirectionWH)))
140			},runSpeed)	
141		}
142	}
143});
144//焦点图a 交互结束
145
146//Tab切换 交互开始
147$(".js-tabWrap").each(function(){
148	var _this = $(this);
149	var _thisNav = _this.find(".js-tabMenu");
150	var _thisNavBtn = _thisNav.find(".js-tabBtn");
151	var _thisBox = _this.find(".js-tabBox");
152	var _thisCard = _this.find(".js-tabCrad");
153	
154	_thisCard.first().show()
155	_thisNavBtn.first().addClass("active")
156	
157	_thisNavBtn.hover(function(){
158		_thisNavBtn.removeClass("active")
159		$(this).addClass("active")
160		_thisCard.hide();
161		_thisCard.eq($(this).index()).show()
162	})
163})
164//Tab切换 交互结束
165
166$("video").each(function(i,e){
167	$(this).attr("videoIndex",i)
168})
169$('.js-video-1 .js-video-time').each(function() {
170	var mmss = $(this).text();
171	var _mmss = mmss.replace(/^(00)\:/img, '');
172	// var _mmss = mmss.substring(3,8)
173	$(this).html(_mmss);
174});
175var videoTitleSetTime = null;
176$(".js-video-1").hover(function(){
177	$(this).find(".list-pic").hide();
178	$(this).find(".list-video").show();
179//	var video = $(this).siblings(".list-video").find("video");
180	var video = $(this).find(".list-video");
181	var videoIndex = Number(video.attr("videoIndex"));
182//	var videoBox = videoWrap.find("video");
183//	document.getElementsByTagName("video")[videoIndex].play()
184//	$("video").get(videoIndex).play()
185	var videoUrl = video.attr("videourl");
186	var videoTitle = video.attr("videotitle");
187	var videoSrc = video.attr("videosrc");
188	var videoImg = video.attr("videoimg");
189	var videoWidth = video.attr("videowidth");
190	var videoHeight = video.attr("videoheight");
191
192	video.html("")
193	var videoHtml=""
194		videoHtml+="<a href='"+videoUrl+"' target='_blank' class='aImg'>";
195		videoHtml+="<video width='"+videoWidth+"' height='"+videoHeight+"' src='"+videoSrc+"' title='"+videoTitle+"' autoplay='autoplay' muted controlslist='nodownload' poster='"+videoImg+"' videoindex='0'>";
196    	videoHtml+="<object style='' width='"+videoWidth+"' height='"+videoHeight+"' type='application/x-shockwave-flash' data='/media-player/flashme.swf'>";
197        videoHtml+="<param name='movie' value='/media-player/flashme.swf'>";
198        videoHtml+="<param name='flashvars' value='controls=true&amp;file="+videoSrc+"&amp;isvideo=true&amp;'>";
199        videoHtml+="<param name='allowScriptAccess' value='sameDomain'>";
200        videoHtml+="<param name='play' value='true'>";
201        videoHtml+="<param name='menu' value='true'>";
202        videoHtml+="<param name='allowFullScreen' value='true'>";
203        videoHtml+="</object>";
204    	videoHtml+="</video>";
205    	videoHtml+="</a>";
206    	
207    video.append(videoHtml)
208    clearTimeout(videoTitleSetTime)
209    videoTitleSetTime = setTimeout(function(){
210    	video.find("video").removeAttr("title")
211    },3000)
212    
213    videoPlayFn()
214},function(){
215	$(this).find(".list-video").hide().html("");
216	$(this).find(".list-pic").show();
217})
218videoPlayFn()
219function videoPlayFn(){
220	$('video').on('play', function() {
221		var current = this;
222		$('video').each(function() {
223			if(this != current) {
224				this.pause();
225			}
226		});
227	});
228}
229
230function copyText() {
231	$(".oInput").remove()
232	var Url2 = $("title").html()+window.location.href
233	var oInput = document.createElement('input');
234	oInput.value = Url2;
235	document.body.appendChild(oInput);
236	oInput.select();
237	document.execCommand("Copy"); 
238	oInput.className = 'oInput';
239	oInput.style.display = 'none';
240	alert('复制成功');
241}
242
243function copyText() {
244  var thisTitle = $("title").html() + " \n";
245  var thisUrl = window.location.href;
246  var content = thisTitle.concat(thisUrl);
247 
248    // 使用textarea支持换行,使用input不支持换行
249  	var textarea = document.createElement('textarea');
250    textarea.value = content;
251    document.body.appendChild(textarea);
252 
253    textarea.select();
254    if (document.execCommand('copy')) {
255    	document.execCommand('copy');
256    	alert(content);
257  	}
258	document.body.removeChild(textarea);
259}

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.