PageSourceSearch

https://www.shcmusic.edu.cn/_upload/tpl/00/45/69/template69/js/js1.js

js shcmusic.edu.cn collected 2026-10-02 07:44:15 UTC 6,654 bytes, 373 lines download raw bytes

1$(function(){
2
3	/*主大图切换*/
4
5	$(".slick .news_list").slick({
6
7		dots: true,  //指示点
8
9		infinite: true,  //循环播放
10
11		autoplay: true,  //自动播放
12
13		autoplaySpeed:3000, //自动播放间隔
14
15		arrows: true,  //左右箭头
16
17		useCSS: true,  //使用 CSS3 过度
18
19		speed: 600,  //滑动时间
20
21		fade:true,
22
23		slide: 'div',  //滑动元素查询
24
25		slidesToShow: 1,  //幻灯片每屏显示个数
26
27		slidesToScroll: 1,  //幻灯片每次滑动个数
28
29		responsive: [   //断点触发设置
30
31			{
32
33				breakpoint: 767,   //分辨率之下(不包含设置分辨率本身)
34
35				settings: {			//参数设置
36
37					slide: 'div',    //滑动元素查询
38
39					slidesToShow: 1,  //幻灯片每屏显示个数
40
41					slidesToScroll: 1, //幻灯片每次滑动个数
42
43					arrows: false, 
44
45					dots:true,
46
47					infinite: true  //循环播放
48
49				}
50
51			}
52
53		]
54
55	});
56
57
58
59	if (window.addEventListener){
60
61		window.addEventListener('DOMMouseScroll', wheel, false);
62
63		window.onmousewheel = document.onmousewheel = wheel;//W3C
64
65	}
66
67	function wheel(event){
68
69		var delta = 0;
70
71		if (!event) event = window.event;
72
73		if (event.wheelDelta) {//IE、chrome浏览器使用的是wheelDelta,并且值为“正负120”
74
75			delta = event.wheelDelta/120; 
76
77			if (window.opera) delta = -delta;//因为IE、chrome等向下滚动是负值,FF是正值,为了处理一致性,在此取反处理
78
79		} else if (event.detail) {//FF浏览器使用的是detail,其值为“正负3”
80
81				delta = -event.detail/3;
82
83		}
84
85		if (delta){
86
87			handle(delta);
88
89		}
90
91	}
92
93	//上下滚动时的具体处理函数
94
95		function handle(delta) {
96
97			if (delta <0){//向下滚动
98
99				if($(".body_b").scrollTop()==0){
100
101					$("#header").addClass("inf");
102
103					$(".body_b").addClass("inf");
104
105					$(".cn_fl").addClass("tno");
106
107					$(".cn_fr").addClass("tno");
108
109				}
110
111			}else{
112
113				if($(".body_b").scrollTop()==0){
114
115					$("#header").removeClass("inf");
116
117					$(".body_b").removeClass("inf");
118
119					$(".cn_fl").removeClass("tno");
120
121					$(".cn_fr").removeClass("tno");
122
123				}
124
125			}
126
127		}
128
129if($(window).width()>1000){
130
131	$("#banner .lp").click(function(){
132
133		$("#header").addClass("inf");
134
135		$(".body_b").addClass("inf");
136
137		$(".cn_fl").addClass("tno");
138
139		$(".cn_fr").addClass("tno");
140
141	});
142
143	$(".body_b").scroll(function(){
144
145		if($(".body_b").scrollTop()>2900){
146
147			setTimeout(function () { 
148
149				$("#footer .inner .foot-left").removeClass("tno");
150
151			}, 100);
152
153			setTimeout(function () { 
154
155				$("#footer .inner .foot-right").removeClass("tno");
156
157			}, 300);
158
159			$(".contain_links .e .news_list").addClass("tno");
160
161		}else if($(".body_b").scrollTop()>2300){
162
163			$(".contain_links .e .news_list").removeClass("tno");
164
165			$(".contain_links .d .box").addClass("tno");
166
167		}else if($(".body_b").scrollTop()>1800){
168
169			$(".contain_links .d .box").removeClass("tno");
170
171		}else if($(".body_b").scrollTop()>500){
172
173			$(".info .mox").addClass("tno");
174
175		}else if($(".body_b").scrollTop()>150){
176
177			$(".info .mox").removeClass("tno");
178
179			setTimeout(function () { 
180
181				$(".tech .tt").addClass("tno");
182
183			}, 100);
184
185			setTimeout(function () { 
186
187				$(".tech .mox .news:nth-child(1)").addClass("tno");
188
189			}, 200);
190
191			setTimeout(function () { 
192
193				$(".tech .mox .news:nth-child(2)").addClass("tno");
194
195			}, 300);
196
197			setTimeout(function () { 
198
199				$(".tech .mox .news:nth-child(3)").addClass("tno");
200
201			}, 400);
202
203		}else{
204
205			setTimeout(function () { 
206
207				$(".tech .tt").removeClass("tno");
208
209			}, 100);
210
211			setTimeout(function () { 
212
213				$(".tech .mox .news:nth-child(1)").removeClass("tno");
214
215			}, 200);
216
217			setTimeout(function () { 
218
219				$(".tech .mox .news:nth-child(2)").removeClass("tno");
220
221			}, 300);
222
223			setTimeout(function () { 
224
225				$(".tech .mox .news:nth-child(3)").removeClass("tno");
226
227			}, 400);
228
229		}
230
231	});
232
233}else{
234
235	
236
237}
238
239
240
241	$(".search_i").click(function(){
242
243		$(".search_list").slideToggle(250);
244
245	})
246
247	$(".list_items").click(function(){
248
249		var vf = $(this).text();
250
251		$(".search_i").text(vf);
252
253		$(".search_list").slideUp(250);
254
255	});
256
257
258
259        $('.search_btn').click(function() {
260
261           if($('.search_i').text() != '查看类别'){
262
263            var student= "";
264
265            var project = escape($('.search_i').text());
266
267            var subject = '';
268
269            window.location.href = '/_s3/xyxw/list.psp?student=' + student + '&project=' + project + '&subject=' + subject;
270
271           }else{alert("请选择类别!")}
272
273        });
274
275 
276
277						$(function  ()  {
278
279							var  month  =  ["Jan",  "Feb",  "Mar",  "Apr",  "May",  "Jun",  "July",  "Aug",  "Sep",  "Oct",  "Nov",  "Dec"];
280
281							$(".cn_fl .news_month").each(function  ()  {
282
283								for  (var  i  =  0;  i  <=  month.length;i++)  {
284
285									if  ($(this).text()  ==  i.toString())  {
286
287										$(this).text(month[i-1]);
288
289									}
290
291								}
292
293							});
294
295						});
296
297						$(function  ()  {
298
299							var  month  =  ["Jan",  "Feb",  "Mar",  "Apr",  "May",  "Jun",  "July",  "Aug",  "Sep",  "Oct",  "Nov",  "Dec"];
300
301							$(".cn_fr .news_month").each(function  ()  {
302
303								for  (var  i  =  0;  i  <=  month.length;i++)  {
304
305									if  ($(this).text()  ==  i.toString())  {
306
307										$(this).text(month[i-1]);
308
309									}
310
311								}
312
313							});
314
315						}); 
316
317
318
319	$(".tab_title").click(function(){
320
321		$(this).siblings().removeClass("active");
322
323		$(this).addClass("active");
324
325		var $index = $(this).index();
326
327		$(".tab_in").eq($index).siblings().removeClass("active");
328
329		$(".tab_in").eq($index).addClass("active");
330
331	});
332
333	$(".e .news_info a").attr("href","javascript:void(0);")
334
335	$(".e .news_info a").attr("target","_self")
336
337
338
339	$(".tech .mox .news").mouseenter(function(){
340
341		$(this).addClass("hover");
342
343	});
344
345	$(".tech .mox .news").mouseleave(function(){
346
347		$(this).removeClass("hover");
348
349	});
350
351
352
353        function heiver (){
354
355        $(".sez.tech .news_title a").each(function(){
356
357           if($(this).height()<56){
358
359               $(this).css("line-height","60px");
360
361           }
362
363        })
364
365        }
366
367        heiver();
368
369        //$(".tech.sez:first-child .news_timed").each(function(){var $aaa = $(this).text().split("-")[2].split(" ")[0];$(this).text($aaa);})
370
371        //$(".tech.sez:first-child .news_timem").each(function(){var $bbb= $(this).text().split("-")[1].split("0")[1];$(this).text($bbb+'月');})
372
373});

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.