PageSourceSearch

https://elmwoodparkzoo.org/wp-content/themes/boilerplate/js/theme.js?ver=1.0.0

js elmwoodparkzoo.org collected 2026-10-02 06:54:40 UTC 7,742 bytes, 318 lines download raw bytes

1jQuery(function($){
2
3
4// $(document).ready(function(){
5//   $('.slider').bxSlider({
6//     controls: false,
7//     touchEnabled: false,
8//     mode: 'fade',
9//     auto: true,
10//     autoHover: true,
11//     pause: 6000,
12//     adaptiveHeight: true
13//   });
14// });
15    
16//	/* NAV */
17//
18//	// setup mobile drop down span
19//	$('#menu-main-navigation .menu-item-has-children > a, #menu-main-navigation .has-children > a').after('<span class="btn-dd"></span>');
20//
21//	// toggle main menu on mobile
22//	$('#nav-toggle').on('click', function () {
23//		$(this).toggleClass('active');
24//		$('#menu-main-navigation').toggleClass('active');
25//	});
26//
27//	// setup mobile drop downs
28//	$('span.btn-dd').on('click', function() {
29//		$this = $(this);
30//		$this.toggleClass('active');
31//		$this.next('ul').toggleClass('active');
32//	});
33//
34//	// setup desktop drop downs
35//	$('#menu-main-navigation > li').hover(function() {
36//		if ($('#nav-toggle').css('display') == 'none') {
37//			var hovered_menu = $('#' + $(this).attr('id') + '-menu');
38//			if (!hovered_menu.is(':visible')) {
39//				$('div.sub-nav').hide();
40//				if (hovered_menu.length > 0) {
41//					hovered_menu.show();
42//				}
43//			}
44//		}
45//	}, function () {
46//		hide_sub_nav();
47//	});
48//	$('.sub-nav, .nav').mouseout(function() {
49//		setTimeout(function() {
50//			hide_sub_nav();
51//		}, 200);
52//	});
53//
54//	$('#menu-main-navigation > li').click(function() {
55//		if ($('#nav-toggle').css('display') == 'none') {
56//			var hovered_menu = $('#' + $(this).attr('id') + '-menu');
57//			if (!hovered_menu.is(':visible')) {
58//				$('div.sub-nav').hide();
59//				if (hovered_menu.length > 0) {
60//					hovered_menu.show();
61//				}
62//			}
63//		} else {
64//			if (hovered_menu.length > 0) {
65//				hide_sub_nav();
66//			}
67//		}
68//	});
69//
70//	function hide_sub_nav() {
71//		if ($('#nav-toggle').css('display') != 'none') {
72//			$('div.sub-nav').hide();
73//		} else if ($('div.nav span.twine').is(":hover") == false && $('div.sub-nav-wrapper').is(":hover") == false && $('div.nav').is(":hover") == false) {
74//			$('div.sub-nav').hide();
75//		}
76//	}
77    
78
79//	/* EQUALHEIGHTS */
80//
81//	function runMatchHeight() {
82//		$('.two-col .col p label').matchHeight({
83//			property: 'min-height'
84//		});
85//		$('.home-content .row.two-col .col').matchHeight({
86//			property: 'min-height'
87//		});
88//	} runMatchHeight();
89    
90
91
92    
93
94var $eventPopout  = $('.event-popout'),
95    $eventToggleButton = $('.popout-toggle');
96
97$eventToggleButton.on('click', function(){
98    $eventPopout.toggleClass('toggle-width');
99});
100
101    
102    
103// Hide Header on on scroll down
104var didScroll;
105var lastScrollTop = 0;
106var delta = 2;
107var navbarHeight = $('nav.main-top').outerHeight();
108
109$(window).scroll(function(event){
110    didScroll = true;
111});
112
113setInterval(function() {
114    if (didScroll) {
115        hasScrolled();
116        didScroll = false;
117    }
118}, 50);
119
120function hasScrolled() {
121    var st = $(this).scrollTop();
122    
123    // Make sure they scroll more than delta
124    if(Math.abs(lastScrollTop - st) <= delta)
125        return;
126    
127    // If they scrolled down and are past the navbar, add class .nav-up.
128    // This is necessary so you never see what is "behind" the navbar.
129    if (st > lastScrollTop && st > navbarHeight){
130        // Scroll Down
131        $('nav.main-top').removeClass('nav-down').addClass('nav-up');
132    } else {
133        // Scroll Up
134        if(st + $(window).height() < $(document).height()) {
135            $('nav.main-top').removeClass('nav-up').addClass('nav-down');
136        }
137    }
138    
139    lastScrollTop = st;
140}   
141
142var navToggle  = $('ul.mobile-option li:last-child a'),
143    mobileNav = $('nav.mobile-nav');
144    
145navToggle.on('click', function(){
146   mobileNav.toggleClass('mobile-nav-show');
147});
148    
149$(window).scroll(function(){
150    mobileNav.removeClass('mobile-nav-show');
151});
152    
153
154    
155for (i = 0; i < 30; i++) {
156
157    var mp = $('span.mp-'+i),
158        md = $('.map-descriptions ul li:nth-child(' + i + ')');
159
160    mp.hover(function(){
161        
162        md.toggleClass('asd');
163        
164    });
165    
166    
167    $('span.mp-'+i).hover(function(){
168            
169             $('.map-descriptions ul li:nth-child(' + i + ')').toggleClass('asd');
170
171        
172    });
173    
174}
175
176    
177//    $('span.mp-'+i).addClass('test'+i);   
178    
179//$('span.mp-'+1).hover(function(){
180//
181//    $('.map-descriptions ul li:nth-child(' + 1 + ')').addClass('asd');
182//
183//});
184    
185$(".map-descriptions ul li").addClass('md-toggle');
186    
187$('span.mp-1').hover(function() {
188    $('.map-descriptions ul li:nth-child(1)').toggleClass('md-toggle');
189});
190
191$('span.mp-2').hover(function() {
192    $('.map-descriptions ul li:nth-child(2)').toggleClass('md-toggle');
193});
194
195    
196$('span.mp-3').hover(function() {
197    $('.map-descriptions ul li:nth-child(3)').toggleClass('md-toggle');
198});
199
200$('span.mp-4').hover(function() {
201    $('.map-descriptions ul li:nth-child(4)').toggleClass('md-toggle');
202});
203
204    
205$('span.mp-5').hover(function() {
206    $('.map-descriptions ul li:nth-child(5)').toggleClass('md-toggle');
207});
208
209$('span.mp-6').hover(function() {
210    $('.map-descriptions ul li:nth-child(6)').toggleClass('md-toggle');
211});
212
213    
214$('span.mp-7').hover(function() {
215    $('.map-descriptions ul li:nth-child(7)').toggleClass('md-toggle');
216});
217
218$('span.mp-8').hover(function() {
219    $('.map-descriptions ul li:nth-child(8)').toggleClass('md-toggle');
220});
221
222    
223$('span.mp-9').hover(function() {
224    $('.map-descriptions ul li:nth-child(9)').toggleClass('md-toggle');
225});
226
227$('span.mp-10').hover(function() {
228    $('.map-descriptions ul li:nth-child(10)').toggleClass('md-toggle');
229});
230
231    
232$('span.mp-11').hover(function() {
233    $('.map-descriptions ul li:nth-child(11)').toggleClass('md-toggle');
234});
235
236$('span.mp-12').hover(function() {
237    $('.map-descriptions ul li:nth-child(12)').toggleClass('md-toggle');
238});
239
240    
241$('span.mp-13').hover(function() {
242    $('.map-descriptions ul li:nth-child(13)').toggleClass('md-toggle');
243});
244
245$('span.mp-14').hover(function() {
246    $('.map-descriptions ul li:nth-child(14)').toggleClass('md-toggle');
247});
248
249    
250$('span.mp-15').hover(function() {
251    $('.map-descriptions ul li:nth-child(15)').toggleClass('md-toggle');
252});
253
254$('span.mp-16').hover(function() {
255    $('.map-descriptions ul li:nth-child(16)').toggleClass('md-toggle');
256});
257
258    
259$('span.mp-17').hover(function() {
260    $('.map-descriptions ul li:nth-child(17)').toggleClass('md-toggle');
261});
262
263$('span.mp-18').hover(function() {
264    $('.map-descriptions ul li:nth-child(18)').toggleClass('md-toggle');
265});
266
267    
268$('span.mp-19').hover(function() {
269    $('.map-descriptions ul li:nth-child(19)').toggleClass('md-toggle');
270});
271
272$('span.mp-20').hover(function() {
273    $('.map-descriptions ul li:nth-child(20)').toggleClass('md-toggle');
274});
275
276    
277$('span.mp-21').hover(function() {
278    $('.map-descriptions ul li:nth-child(21)').toggleClass('md-toggle');
279});
280
281$('span.mp-22').hover(function() {
282    $('.map-descriptions ul li:nth-child(22)').toggleClass('md-toggle');
283});
284
285    
286$('span.mp-23').hover(function() {
287    $('.map-descriptions ul li:nth-child(23)').toggleClass('md-toggle');
288});
289
290$('span.mp-24').hover(function() {
291    $('.map-descriptions ul li:nth-child(24)').toggleClass('md-toggle');
292});
293
294    
295$('span.mp-25').hover(function() {
296    $('.map-descriptions ul li:nth-child(25)').toggleClass('md-toggle');
297});
298
299$('span.mp-26').hover(function() {
300    $('.map-descriptions ul li:nth-child(26)').toggleClass('md-toggle');
301});
302
303    
304$('span.mp-27').hover(function() {
305    $('.map-descriptions ul li:nth-child(27)').toggleClass('md-toggle');
306});
307
308$('span.mp-28').hover(function() {
309    $('.map-descriptions ul li:nth-child(28)').toggleClass('md-toggle');
310});
311
312    
313$('span.mp-29').hover(function() {
314    $('.map-descriptions ul li:nth-child(29)').toggleClass('md-toggle');
315});
316
317
318});

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.