PageSourceSearch

https://bt33.net/js25/index.js

js bt33.net collected 2026-10-02 02:01:40 UTC 10,647 bytes, 345 lines download raw bytes

1new WOW().init();
2$(function(){
3
4
5	$(".nav2_btn").click(function(){
6		$(this).toggleClass("on");
7		$(".nav2_box").toggleClass("on");
8		$("html").toggleClass("on");
9	})
10	if ($('html').scrollTop() >= 400) {
11		$(".fhdb").addClass("on");
12		$('.toubu_div').addClass("on");
13	}
14	(function(){
15		// 鼠标向下滚动
16		$('html').mousewheel(function (event) {
17			if (event.deltaY < 0) {
18				$(".fhdb").addClass("on");
19				$('.toubu_div').addClass("on");
20				return true;
21			}
22		});					
23		// 鼠标向上滚动
24		$('html').mousewheel(function (event) {
25	
26			if ($('html').scrollTop() < 400 && event.deltaY > 0) {
27			   $(".fhdb").removeClass("on");
28			   $('.toubu_div').removeClass("on");
29			   return true;
30			}
31		});
32	})();		
33	$(".fhdb").click(function(){
34		//点击按钮时,返回顶部,过渡时间为1,秒
35		$("html").animate({scrollTop: '0' },1000);
36		$('.fhdb').removeClass("on");
37		$('.toubu_div').removeClass("on");
38	
39		return false;
40	})
41	// $(".img img").after("<div class='img_box'></div>")
42	// for(var img_i=0;img_i<$(".img img").length;img_i++){
43		
44	// 	$(".img img")[img_i].style.opacity="0";
45	// 	$(".img .img_box")[img_i].style.background="url("+$(".img img")[img_i].src+") no-repeat";
46	// 	$(".img")[img_i].style.backgroundSize="cover"		
47	// }
48	if($(".ej_main_left .sider_nav ul li").length==0){
49		$(".ej_main_left .sider_nav").addClass("on");
50	}	
51	
52		// 党建工作
53		//****必须排在其他切换之前****
54		var djgzList = new Swiper(".djgz_list",{
55			slidesPerView: "auto",
56			spaceBetween: 40,
57			pagination: {
58				el: ".swiper-pagination",
59				clickable: true,
60			},
61			breakpoints: {
62				650: {
63				slidesPerView: 1,
64				spaceBetween: 20,
65				},
66				1024: {
67				slidesPerView: 2,
68				spaceBetween: 30,
69				},
70			},
71		});
72	
73		// banner
74		var swiper = new Swiper('.banner', {
75		  autoplay: {
76			delay: 5000,
77			disableOnInteraction: false,
78		  },
79		  speed:500,
80		  spaceBetween: 30,
81		  effect: 'fade',
82		  loop:true,//必须
83		  pagination: {
84			el: '.swiper-pagination',
85			clickable: true,
86		  },
87		  navigation: {
88			nextEl: '.swiper-button-next',
89			prevEl: '.swiper-button-prev',
90		  },
91		});
92	
93	
94		// 最新资讯
95		var xwzxLeft = new Swiper(".xwzx_left", {
96			autoplay: {
97				delay: 5000,
98				disableOnInteraction: false,
99			},
100			pagination: {
101				el: ".xwzx_left .swiper-pagination",
102				clickable: true,
103				renderBullet: function (index, className) {
104				  return '<span class="' + className + '">' + (index + 1) + "</span>";
105				},
106			},
107			navigation: {
108				nextEl: ".xwzx_left .swiper-button-next",
109				prevEl: ".xwzx_left .swiper-button-prev",
110			},
111			loop:true,
112		});	
113		
114		
115		// 机电风采 选项卡		
116		var jdfc = new Swiper('#jdfcMain', {
117			speed: 500,
118			on: {
119				slideChangeTransitionStart: function() {
120					$(".jdfc_title .default").removeClass('default');
121					$(".jdfc_title li").eq(this.activeIndex).addClass('default');
122				}
123			}
124		})
125		$(".jdfc_title li").on('mouseover', function(e) {
126			e.preventDefault()
127			$(".jdfc_title .default").removeClass('default')
128			$(this).addClass('default')
129			jdfc.slideTo($(this).index())
130		})
131		
132		
133		
134		// 新闻动态
135		var sgdtLeft = new Swiper(".sgdt_left", {
136			autoplay: {
137				delay: 5000,
138				disableOnInteraction: false,
139			},
140			pagination: {
141				el: ".sgdt_left .swiper-pagination",
142				clickable: true,
143				renderBullet: function (index, className) {
144				  return '<span class="' + className + '">' + (index + 1) + "</span>";
145				},
146			},
147			// navigation: {
148			// 	nextEl: ".sgdt_left .swiper-button-next",
149			// 	prevEl: ".sgdt_left .swiper-button-prev",
150			// },
151			loop:true
152		});	
153		 	
154    	// 生工动态右
155    	$(".sgdt_right li").mouseenter(function(){
156    	    $(".sgdt_right li").removeClass("on");
157    	    $(this).addClass("on");
158    	})
159    	
160    	// 教育教学
161    	$(".jyjx_list li").mouseenter(function(){
162    	    $(".jyjx_list li").removeClass("on");
163    	    $(this).addClass("on");
164    	})
165    	
166    	// 学生工作
167    	$(".xsgz_list li").mouseenter(function(){
168    	    $(".xsgz_list li").removeClass("on");
169    	    $(this).addClass("on");
170    	})
171    	
172    	// 底部链接
173    	$(".footer .foot_r").mouseover(function(){
174    	    $(".footer .foot_r").removeClass("on");
175    	    $(this).addClass("on");
176    	})
177    	$(".footer .foot_r").mouseleave(function(){
178    	    $(".footer .foot_r").removeClass("on");
179    	})
180
181
182	// 二级页左侧导航
183	$(".ej_main_left ul li .btn").click(function(){
184		$(this).next().slideToggle();
185	})
186	$(".ej_main_left ul li .btn").click(function(){
187		$(this).toggleClass("on");
188	})
189	$(".ej_left_nav h2 span").click(function(){
190		$(".ej_left_nav>ul").slideToggle();
191	})
192
193	$(".list_box0 .li").click(function(){
194		$(this).find(".ewm_box").slideToggle();
195	});
196	
197	$('.search-dialog-box .pub-close').on('click',function(){
198		$('.search-dialog-box').removeClass("on");
199	});
200	
201	$('.btn[name]').click(function() {
202		var tf_name_id = $(this).attr('name');
203		$('.tc[name=' + tf_name_id + ']').addClass('act');
204	});
205	$('.close').click(function() {
206		$(this).parents('.tc').removeClass('act')
207	});
208	$('.tc-bg').click(function() {
209		$(this).parents('.tc').removeClass('act')
210	});
211	
212	$(".miso-wailian .box .box_rr .con").hover(function(){
213		$(this).find(".dl").stop().slideDown(300);
214		}, function() {
215		$(this).find(".dl").stop().slideUp(300);
216	});	
217	//移动端导航
218
219    $(".ej_main .left .wej_lmmc .wap_ej_btn").click(function(){
220		if($(".ej_main .left .ej_zc_dh").hasClass("on")){
221			$(".ej_main .left .ej_zc_dh").slideUp();
222			$(".ej_main .left .ej_zc_dh").removeClass("on");
223		}else{
224			$(".ej_main .left .ej_zc_dh").slideDown();
225			$(".ej_main .left .ej_zc_dh").addClass("on");
226		}		
227	})
228
229	   $("#m_nav .title .list").css({"opacity":"1","visibility":"visible"});
230	  /* $("#m_nav .title .a").attr("href","javascript:void(0)");
231	   $("#m_nav .title .void>a").attr("href","javascript:void(0)");*/
232	   $("#m_nav .title i").click(function(){
233		   var tt = $(this).parents(".title");
234		  if ($(tt).hasClass('on')) {
235			  $(tt).children(".list").slideUp(600); //展开
236			  $(tt).removeClass("on"); 
237			}else{
238			  $("#m_nav .title ").removeClass("on");
239			  $("#m_nav .title .list").slideUp();
240			  $(tt).children(".list").slideDown();
241			  $(tt).toggleClass("on"); 
242			}
243	   });
244	   /*$("#m_nav .sub").hide();
245	   $("#m_nav .void").click(function(){
246			$(this).children(".sub").slideToggle(); //展开
247	   });*/
248	   $("#nav_btn_box").click(function(){
249		  $("#nav_btn_box .point").toggleClass("on"); 
250		  $("#nav_btn_box").toggleClass("on"); 
251		  $("#m_nav").toggleClass("act");
252		  $(".nav_mask").fadeToggle();
253	   });
254
255	  $(".nav_mask").click(function(){
256		  $("#nav_btn_box .point").removeClass("on"); 
257		  $("#nav_btn_box").removeClass("on"); 
258		  $(this).fadeToggle();
259		  $(".nav_btn_box").removeClass("act");
260		  $("#m_nav").removeClass("act");
261	  })
262	  
263	  $("#m_nav .close").click(function(){
264		  $("#nav_btn_box .point").removeClass("on"); 
265		  $("#nav_btn_box").removeClass("on"); 
266		  $(".nav_btn_box").removeClass("act");
267		  $("#m_nav").removeClass("act");
268		  $(".nav_mask").fadeOut();
269	  })
270	  
271	$(".n_container .n_left .con ul li i").click(function(){
272		$(this).next().slideToggle();
273		$(this).toggleClass("up");
274	});
275	  //移动端内页导航
276	$("#bnt_sub_nav").click(function(){
277  	$(this).toggleClass("on");
278		$("#sub_nav_content").slideToggle();
279	  });
280
281	$("#sub_nav_content dt.title a").attr("href","javascript:void(0)");
282	$("#sub_nav_content dt.title_on").next("dd").show();
283	$("#sub_nav_content dt.title").click(function() {
284		if ($(this).hasClass("title_on")) {
285			$(this).next("dd").slideToggle();
286			$(this).removeClass("title_on");
287		} else {
288			$("#sub_nav_content dd").slideUp();
289			$("#sub_nav_content dt.title").removeClass("title_on").removeClass("on");
290			$(this).toggleClass("title_on");
291			$(this).next("dd").slideDown();
292		}
293	});  
294	$("#sub_nav_content ul li i").click(function(){
295		$(this).next("ul").slideToggle();
296		$(this).parents("#sub_nav_content ul li").siblings().find("ul").slideUp();
297	});
298	
299	if ($(".list_box00").length) {
300	    $(".list_box00 li").each(function (i) {
301	        $(this).css({ 'transition-delay': i * 200 + 200 + 'ms' });
302	    });
303	}
304	
305	//IE9 兼容placdholder属性
306    function placeholderSupport() {
307        return 'placeholder' in document.createElement('input');
308    }
309    if(!placeholderSupport()){   // 判断浏览器是否支持 placeholder
310        $("[placeholder]").each(function(){
311            var _this = $(this);
312           // console.log($(this).height());
313            var inputHeight = parseInt(parseInt($(this).height()-2)-14)/2;
314            var inputHeight = parseInt(parseInt(parseInt($(this).height()-2)/2)-7)+'px';
315            _this.parent().css({"position": "relative"});
316            var left = _this.position().left+parseInt(_this.css("padding-left"))+parseInt(_this.css("margin-left"))+"px";
317            var top = parseInt(_this.css("padding-top"));//+parseInt(_this.css("margin-top"))+"px";
318            var top = parseInt(_this.css("padding-top"));//+parseInt(_this.css("margin-top"))+"px";
319            _this.after('<span class="placeholder" data-type="placeholder" style="position: absolute;font-size:14px; top: '+ inputHeight +'; left: ' + left + '">' + _this.attr("placeholder") + '</span>');
320            //_this.after('<span class="placeholder" data-type="placeholder" style="position: absolute; top: 0px; left: ' + left + '">' + _this.attr("placeholder") + '</span>');
321            if(_this.val() != ""){
322                _this.parent().find("span.placeholder").hide();
323            }
324            else{
325                _this.parent().find("span.placeholder").show();
326            }
327        }).on("focus", function(){
328            $(this).parent().find("span.placeholder").hide();
329        }).on("blur", function(){
330            var _this = $(this);
331            if(_this.val() != ""){
332                _this.parent().find("span.placeholder").hide();
333            }
334            else{
335                _this.parent().find("span.placeholder").show();
336            }
337        });
338        // 点击表示placeholder的标签相当于触发input
339        $("span.placeholder").on("click", function(){
340            $(this).hide();
341            $(this).siblings("[placeholder]").trigger("click");
342            $(this).siblings("[placeholder]").trigger("focus");
343        });
344    }
345});

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.