PageSourceSearch

https://ynwd.gov.cn/js/index_main.js

js ynwd.gov.cn collected 2026-10-03 00:25:56 UTC 6,542 bytes, 239 lines download raw bytes

1// JavaScript Document
2		
3
4//搜索框
5$(document).ready(function(){
6	var inputEl = $('.text'), 
7        defVal = inputEl.val(); 
8		inputEl.bind({ 
9			focus: function () { 
10				   var _this = $( this ); 
11			       if (_this.val() == defVal) { 
12			           _this.val(''); 
13			       } 
14			}, 
15			blur: function () { 
16			      var _this = $( this ); 
17			      if (_this.val() == '') { 
18			          _this.val(defVal); 
19			      } 
20			} 
21	});
22	//menu
23	$('.web').click(function(){
24	$(this).find('ul').slideDown();
25	});
26	$('.web').mouseleave(function(){
27	$(this).find('ul').slideUp("fast");
28	});
29	$('#opin').click(function(){
30	('#box').show();
31	});
32	$('#x').click(function(){
33	('#box').hide();
34	});
35});
36
37
38
39
40//新闻选项卡
41$(function(){
42	$(".news_t h1").css("color","#2a2a2a").css("background-image","url(images/n_bg2.png)").css("font-weight","normal")
43					 .eq(0).css("color","#0069df").css("background-image","url(images/n_bg1.png)").css("font-weight","bold")
44	$(".news_list").hide().eq(0).show()
45	$(".news_t h1").mouseenter(function(){
46			$(".news_t h1").css("color","#2a2a2a").css("background-image","url(images/n_bg2.png)").css("font-weight","normal")
47			$(this).css("color","#0069df").css("background-image","url(images/n_bg1.png)").css("font-weight","bold")
48			var x=$(this).index()
49			$(".news_list").hide().eq(x).show()
50		})
51		
52})
53
54
55//政府文件选项卡
56$(function(){
57	$(".zfwj_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
58					 .eq(0).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
59	$(".zfwj_list").hide().eq(0).show()
60	$(".zfwj_t h1").mouseenter(function(){
61			$(".zfwj_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
62			$(this).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
63			var x=$(this).index()
64			$(".zfwj_list").hide().eq(x).show()
65		})
66		
67})
68
69
70//政府会议选项卡
71$(function(){
72	$(".kzfhy_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
73					 .eq(0).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
74	$(".kzfhy_list").hide().eq(0).show()
75	$(".kzfhy_t h1").mouseenter(function(){
76			$(".kzfhy_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
77			$(this).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
78			var x=$(this).index()
79			$(".kzfhy_list").hide().eq(x).show()
80		})
81		
82})
83
84
85//统计信息选项卡
86$(function(){
87	$(".ktjxx_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
88					 .eq(0).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
89	$(".ktjxx_list").hide().eq(0).show()
90	$(".ktjxx_t h1").mouseenter(function(){
91			$(".ktjxx_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
92			$(this).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
93			var x=$(this).index()
94			$(".ktjxx_list").hide().eq(x).show()
95		})
96		
97})
98
99
100//政府采购选项卡
101$(function(){
102	$(".kzfcg_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
103					 .eq(0).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
104	$(".kzfcg_list").hide().eq(0).show()
105	$(".kzfcg_t h1").mouseenter(function(){
106			$(".kzfcg_t h1").css("background-image","url(images/n_bg4.png)").css("font-weight","normal")
107			$(this).css("background-image","url(images/n_bg3.png)").css("font-weight","bold")
108			var x=$(this).index()
109			$(".kzfcg_list").hide().eq(x).show()
110		})
111		
112})
113
114
115
116 $(function(){
117
118				/*======next======*/
119				$(".next a").click(function(){ nextscroll() });
120
121				function nextscroll(){
122
123						var vcon = $(".v_cont ");
124						var offset = ($(".v_cont li").width())*-1;
125						
126						vcon.stop().animate({left:offset},"slow",function(){
127
128							 var firstItem = $(".v_cont ul li").first();
129							 vcon.find("ul").append(firstItem);
130							 $(this).css("left","0px");
131
132							 circle()
133							
134						});  
135					
136				};
137
138
139				function circle(){
140					  
141						var currentItem = $(".v_cont ul li").first();
142						var currentIndex = currentItem.attr("index");
143
144						$(".circle li").removeClass("circle-cur");
145						$(".circle li").eq(currentIndex).addClass("circle-cur");
146						
147				}
148
149				//setInterval(nextscroll,2000)
150				 
151				/*======prev======*/
152				$(".prev a").click(function(){
153
154						var vcon = $(".v_cont ");
155						var offset = ($(".v_cont li").width()*-1);
156						var lastItem = $(".v_cont ul li").last();
157						vcon.find("ul").prepend(lastItem);
158						vcon.css("left",offset);
159						vcon.animate({left:"0px"},"slow",function(){
160							 circle()
161						})
162
163				 });
164
165			   /*======btn====circle======*/
166				 var animateEnd = 1;
167
168				$(".circle li").click(function(){
169
170					   if(animateEnd==0){return;}
171
172					   $(this).addClass("circle-cur").siblings().removeClass("circle-cur");
173					
174						var nextindex = $(this).index();
175						var currentindex = $(".v_cont li").first().attr("index");
176						var curr = $(".v_cont li").first().clone();
177						
178						if(nextindex > currentindex){
179
180								for (var i = 0; i < nextindex - currentindex; i++) {
181									 
182									 var firstItem = $(".v_cont li").first();
183									 $(".v_cont ul").append(firstItem); 
184										
185								}
186
187								$(".v_cont ul").prepend(curr);
188
189								var offset = ($(".v_cont li").width())*-1;
190
191								if(animateEnd==1){
192
193									animateEnd=0;	
194									$(".v_cont").stop().animate({left:offset},"slow",function(){
195
196											$(".v_cont ul li").first().remove();
197											$(".v_cont").css("left","0px");
198											animateEnd=1;
199
200									}); 
201
202								} 
203
204						}else{
205
206								var curt = $(".v_cont li").last().clone();
207
208								for (var i = 0; i < currentindex - nextindex; i++) {
209									 var lastItem = $(".v_cont li").last();
210									 $(".v_cont ul").prepend(lastItem);
211								}
212
213								$(".v_cont ul").append(curt);
214
215								var offset = ($(".v_cont li").width())*-1;
216
217								$(".v_cont").css("left",offset);
218										
219
220								  if(animateEnd==1){
221
222										animateEnd=0;	
223										$(".v_cont").stop().animate({left:"0px"},"slow",function(){
224											
225											$(".v_cont ul li").last().remove();
226											animateEnd=1;
227										  
228										}); 
229
230									} 
231							
232							}
233
234				});
235
236		 })
237  
238
239

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.