PageSourceSearch

https://www.dongtai.gov.cn/images/446/script.js

js dongtai.gov.cn collected 2026-10-02 18:39:05 UTC 5,665 bytes, 233 lines download raw bytes

1$(function () {
2	document.oncontextmenu = function () {
3		return false
4	};
5
6	if (window.console) {
7		// console.info(">>Join us? Email:[email protected]");
8	}
9
10	$(".slider .inner").bind("swipeleft", function () {
11
12	});
13
14	$(".slider .inner").bind("swiperight", function () {
15
16	});
17
18	function loadSlide () {
19		if ($('.hslide').size() > 0) {
20			var glide = $('.hslide').glide({
21				autoplay: 4000,
22				animationDuration: 600,
23				hoverpause: true,
24				circular: true,
25				arrows: true,
26				arrowRightText: "",
27				arrowLeftText: "",
28				navigation: true,
29				navigationCenter: true,
30				navigationClass: "slider-nav",
31				navigationItemClass: "slider-nav__item",
32				navigationCurrentItemClass: "slider-nav__item--current"
33			});
34		}
35	}
36	function loadHover () {
37		$('.ui-hover').each(function () {
38			var obj = $(this);
39			var e = obj.find('li');
40
41			e.hover(function () {
42				if (e.eq($(this).index()).hasClass('selected')) {
43					return false;
44				} else {
45					e.eq($(this).index()).addClass('hover');
46				}
47
48			}, function () {
49				e.removeClass('hover');
50			})
51		})
52
53		$('.ui-taber1').each(function () {
54			var obj = $(this);
55			obj.find('li').click(function () {
56				obj.find('li').removeClass().eq($(this).index()).addClass('selected');
57				//			return false;
58			})
59		})
60	}
61
62	function loadTab () {
63		$('.ui-taber').each(function () {
64			var obj = $(this);
65			var con = '.' + obj.data('for');
66			var id = '#' + obj.data('id');
67			obj.find('li').click(function () {
68				obj.find('li').removeClass('selected').eq($(this).index()).addClass('selected');
69				$(id).find(con).hide().eq($(this).index()).show();
70				if ($(id).find('.t_more').size() > 0) {
71					$(id).find('.t_more').hide().eq($(this).index()).show();
72				} else {
73					$(id).find('.hmore').hide().eq($(this).index()).show();
74				}
75				return false;
76			})
77		})
78	}
79
80	function loadHoverToggle () {
81		$('.ui-hover1').each(function () {
82			var obj = $(this);
83			var e = obj.find('li');
84
85			e.hover(function () {
86				e.removeClass('selected').eq($(this).index()).addClass('selected');
87			}, function () {
88				e.removeClass('selected');
89			})
90		})
91	}
92
93	function loadHomeImgsMove () {
94		$('.h_imgs li').hover(function () {
95			$('.h_imgs li').removeClass('selected');
96			$(this).addClass('selected');
97		}, function () {
98			$('.h_imgs li').removeClass('selected');
99		})
100	}
101
102	function loadSideBar () {
103		$('.sidebar h4').click(function () {
104			var text1 = '收起';
105			var text2 = '展开';
106			if ($('.sidebar ul').is(':visible')) {
107				$('.sidebar h4').text(text2);
108				$('.sidebar ul').slideUp();
109			} else {
110				$('.sidebar h4').text(text1);
111				$('.sidebar ul').slideDown();
112			}
113		})
114	}
115
116	function loadHomeNav () {
117		$('.naver li').hover(function () {
118			var con = '.' + $('.naver').data('for');
119			var id = '#' + $('.naver').data('id');
120			var obj = $(this);
121			var len = obj.index();
122			if (obj.hasClass('selected')) {
123				return false;
124			} else {
125				$('.naver li').removeClass('selected');
126				obj.addClass('selected');
127				switch (len) {
128					case 0:
129						$('.naver').css({ 'borderColor': '#596beb' });
130						break;
131					case 1:
132						$('.naver').css({ 'borderColor': '#f30' });
133						break;
134					case 2:
135						$('.naver').css({ 'borderColor': '#ff8b36' });
136						break;
137					case 3:
138						$('.naver').css({ 'borderColor': '#3eca4d' });
139						break;
140					case 4:
141						$('.naver').css({ 'borderColor': '#fb0a8d' });
142						break;
143					case 5:
144						$('.naver').css({ 'borderColor': '#c675dc' });
145						break;
146					default:
147						break;
148				}
149				$(id).find(con).stop(true, true).css({ 'height': '0' }).eq(len).delay(200).animate({ height: '515px' }, 600);
150			}
151		}, function () {
152
153		})
154	}
155
156	function loadFlexslider () {
157		if ($('.flexslider').size() > 0) {
158			$(".flexslider").flexslider({
159				slideshowSpeed: 4000,
160				animationSpeed: 400,
161				touch: true
162			});
163		}
164	}
165
166	function loadLazyLoad () {
167		if ($("img.lazy").size() > 0) {
168			$("img.lazy").lazyload({
169				effect: "fadeIn",
170				threshold: 200
171			});
172		}
173	}
174
175	function loadResizeRem () {
176		if ($(window).width() < 1400) {
177
178			$('.sidebar').css('margin-left', '550');
179			$('.sidebar').show();
180		} else {
181			$('.sidebar').css('margin-left', '655');
182			$('.sidebar').show();
183		}
184	}
185	$(window).resize(function () {
186		loadResizeRem();
187	})
188	loadResizeRem();
189
190	function loadHoverTab () {
191		$('.ui-htab').each(function () {
192			var obj = $(this);
193			var con = '.' + obj.data('for');
194			var id = '#' + obj.data('id');
195			obj.find('li').hover(function () {
196				if ($(this).hasClass('selected')) {
197					return false;
198				}
199				obj.find('li').removeClass('selected').eq($(this).index()).addClass('selected');
200				$(id).find(con).stop(true, true).hide().eq($(this).index()).fadeIn(1000);
201				return false;
202			})
203		})
204	}
205
206	function loadFullPage () {
207		if ($('.fullpage').size() > 0) {
208			$('.fullpage').fullpage({
209				verticalCentered: true,
210				anchors: ['overview_page1', 'overview_page2', 'overview_page3', 'overview_page4', 'overview_page5', 'overview_page6', 'overview_page7', 'overview_page8'],
211				scrollingSpeed: 1000,
212				afterLoad: function (anchorLink, index) {
213					$('.overview_nav li').removeClass('active').eq(index - 1).addClass('active');
214				},
215				onLeave: function (index, nextIndex, direction) {
216
217				}
218			});
219		}
220	}
221
222	loadSlide();
223	loadHover();
224	loadTab();
225	loadHoverToggle();
226	loadHomeImgsMove();
227	loadSideBar();
228	loadHomeNav();
229	loadFlexslider();
230	loadLazyLoad();
231	loadHoverTab();
232	loadFullPage();
233})

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.