PageSourceSearch

https://www.alexianbrothers.org/graphics/scripts/responsive/scripts.js

js alexianbrothers.org collected 2026-10-02 10:59:04 UTC 9,690 bytes, 307 lines download raw bytes

1$(document).ready(function() {
2	// Jon Montenegro v1.0 3/20/2013
3	/*$(".subNavMobile").click(function () {
4   		$('.subMenuMobile').slideToggle("slow");
5	});*/
6        
7	
8	
9	(function() {
10
11		var settings = {
12				button      : '#backUp',
13				text        : 'Back to Top',
14				min         : 200,
15				fadeIn      : 400,
16				fadeOut     : 400,
17				scrollSpeed : 800,
18				easingType  : 'easeInOutExpo'
19			},
20			oldiOS     = false,
21			oldAndroid = false;
22
23		// Detect if older iOS device, which doesn't support fixed position
24		if( /(iPhone|iPod|iPad)\sOS\s[0-4][_\d]+/i.test(navigator.userAgent) )
25			oldiOS = true;
26
27		// Detect if older Android device, which doesn't support fixed position
28		if( /Android\s+([0-2][\.\d]+)/i.test(navigator.userAgent) )
29			oldAndroid = true;
30	
31		$('body').append('<a href="#" id="' + settings.button.substring(1) + '" title="' + settings.text + '">' + settings.text + '</a>');
32
33		$( settings.button ).click(function( e ){
34				$('html, body').animate({ scrollTop : 0 }, settings.scrollSpeed, settings.easingType );
35
36				e.preventDefault();
37			});
38
39		$(window).scroll(function() {
40			var position = $(window).scrollTop();
41
42			if( oldiOS || oldAndroid ) {
43				$( settings.button ).css({
44					'position' : 'absolute',
45					'top'      : position + $(window).height()
46				});
47			}
48
49			if ( position > settings.min ) 
50				$( settings.button ).fadeIn( settings.fadeIn );
51			else 
52				$( settings.button ).fadeOut( settings.fadeOut );
53		});
54
55	})();
56	
57	
58	/*$(document).scroll(function(){
59		
60		
61		
62
63
64    var elem = $('.subnav');
65    if (!elem.attr('data-top')) {
66        if (elem.hasClass('navbar-fixed-top'))
67            return;
68         var offset = elem.offset()
69        elem.attr('data-top', offset.top);
70    }
71    if (elem.attr('data-top') - elem.outerHeight() <= $(this).scrollTop() - $(elem).outerHeight())
72        
73		if ( $(window).width() < 767) {
74  elem.addClass('navbar-fixed-top');
75}
76else {
77 elem.removeClass('navbar-fixed-top');
78}
79    else
80        elem.removeClass('navbar-fixed-top');
81	});*/
82	
83var $window = $(window);
84
85
86    function checkWidth() {
87	
88        var windowsize = $window.width();
89
90        if (windowsize > 979) {
91            //if the window is greater than 440px wide then turn on jScrollPane..
92            $('.quickLinksWrap').insertBefore('.relatedWrap');
93        } else {
94			 $('.relatedWrap').insertBefore('.quickLinksWrap');
95		}
96    }
97// Execute on load
98    checkWidth();
99    // Bind event listener
100    $(window).resize(checkWidth);
101	
102	/*$(".drop1").hover(function (){$(this).parent("li").toggleClass("activeNav1");});
103	$(".drop2").hover(function (){$(this).parent("li").toggleClass("activeNav2");});
104	$(".drop3").hover(function (){$(this).parent("li").toggleClass("activeNav3");});
105	$(".drop4").hover(function (){$(this).parent("li").toggleClass("activeNav4");});
106	$(".drop5").hover(function (){$(this).parent("li").toggleClass("activeNav5");});
107	$(".drop6").hover(function (){$(this).parent("li").toggleClass("activeNav6");});*/
108	
109	// this section controls the rollovers on the er & immediate care mega menu tabs - Mark
110    $("#toggler1").mouseenter(function () {
111            var i = 0;
112            while (++i <= 10) {                
113                $("#div"+i).hide();
114            }
115            $("#div1").show();            
116        });    
117    
118        $("#toggler2").mouseenter(function () {
119            var i = 0;
120            while (++i <= 10) {                
121                $("#div" + i).hide();
122            }
123            $("#div2").show();
124        });    
125    
126        $("#toggler3").mouseenter(function () {
127            var i = 0;
128            while (++i <= 10) {                
129                $("#div" + i).hide();
130            }
131            $("#div3").show();
132        });    
133    
134        $("#toggler4").mouseenter(function () {
135            var i = 0;
136            while (++i <= 10) {                
137                $("#div" + i).hide();
138            }
139            $("#div4").show();
140        });    
141    
142        $("#toggler5").mouseenter(function () {
143            var i = 0;
144            while (++i <= 10) {
145                $("#div" + i).hide();
146            }
147            $("#div5").show();
148        });    
149    
150        $("#toggler6").mouseenter(function () {
151            var i = 0;
152            while (++i <= 10) {
153                $("#div" + i).hide();
154            }
155            $("#div6").show();
156        });    
157    
158        $("#toggler7").mouseenter(function () {
159            var i = 0;
160            while (++i <= 10) {
161                $("#div" + i).hide();
162            }
163            $("#div7").show();
164        });    
165    
166        $("#toggler8").mouseenter(function () {
167            var i = 0;
168            while (++i <= 10) {
169                $("#div" + i).hide();
170            }
171            $("#div8").show();
172        });    
173    
174        $("#toggler9").mouseenter(function () {
175            var i = 0;
176            while (++i <= 10) {
177                $("#div" + i).hide();
178            }
179            $("#div9").show();
180        });
181
182		/* re-designed 12/3/13 v.1.1 - Jon */
183        var mtimer = false;
184        $(".megamenu > .noInputs > a").hover(
185		    function () {
186		clearTimeout(mtimer);
187		        $(".dropBox").removeClass("openedMenu");
188		        $(this).parent().children(".dropBox").addClass("openedMenu");
189		        $(".dropBox").parent("li").removeClass();
190		        var index = $(this).parent("li").index() + 1;
191		        $(this).parent("li").addClass("activeNav" + index);
192		    },
193    function () {
194        $(".dropBox").parent("li").removeClass();
195        $(".dropBox").removeClass("openedMenu");        
196    });
197        $(".megamenu > .noInputs > .dropBox").hover(
198    function () {
199        clearTimeout(mtimer);
200        $(".dropBox").removeClass("openedMenu");
201        $(this).parent().children(".dropBox").addClass("openedMenu");
202        $(".dropBox").parent("li").removeClass();
203        var index = $(this).parent("li").index() + 1;
204        $(this).parent("li").addClass("activeNav" + index);
205    },
206    function () {
207        mtimer = setTimeout(function () {
208            $(".dropBox").parent("li").removeClass();
209            $(".dropBox").removeClass("openedMenu");            
210        }, 1000)
211    });
212
213    /* re-designed 11/5/13 v.1.0 - Jon */
214    //var timer = false;
215		$(".megamenu > .inputs > a").hover(
216            function () {
217                $(".dropBox").removeClass("openedMenu");
218                $(this).parent().children(".dropBox").addClass("openedMenu");
219                $(".dropBox").parent("li").removeClass();
220                var index = $(this).parent("li").index() + 1;
221                $(this).parent("li").addClass("activeNav" + index);
222            },
223            function () { });
224		$(".megamenu > .inputs > .dropBox").hover(
225            function () { },
226            function () { });
227		$(document).mouseup(function (e) {
228
229		    $(document).mouseup(function (e) {
230		        var container = $(".dropBox");
231		        if (!container.is(e.target) && container.has(e.target).length === 0) {
232		            container.removeClass("openedMenu");
233		            $(".dropBox").parent("li").removeClass();
234		        }
235		    });
236		});
237    
238		/*$(document).ready(function () {
239		    $(".drop1").on("click", "select", function (e) {
240		        //alert('boo');		        
241		        openMegaMenu();
242		    });
243		});*/
244		
245	$('.homeLeftTabs .nav-tabs-left > li > a').hover( function(){
246      $(this).tab('show');
247	  $('.homeLeftTabs .nav-tabs-left li').removeClass('active');
248	  $('.homeRightTabs .nav-tabs-right li').removeClass('active');
249	  $(this).parent().addClass('active');
250   });
251   
252   $('.homeRightTabs .nav-tabs-right > li > a').hover( function(){
253      $(this).tab('show');
254	  $('.homeLeftTabs .nav-tabs-left li').removeClass('active');
255	  $('.homeRightTabs .nav-tabs-right li').removeClass('active');
256	  $(this).parent().addClass('active');
257   });
258   
259   var ulLeftH = $(".homeLeftTabs").height();
260   var leftLi = $(".homeLeftTabs .nav-tabs-left li").length;
261   $('.nav-tabs-left li').height((ulLeftH / leftLi));
262   
263   var ulRightH = $(".homeRightTabs").height();
264   var rightLi = $(".homeRightTabs .nav-tabs-right li").length;
265   $('.nav-tabs-right li').height((ulRightH / rightLi));
266
267   // make the four box layouts equal height - Mark
268   if ($('.box1-1').height() < $('.box2-2').height())
269       $('.box1-1').height($('.box2-2').height());
270   if ($('.box2-2').height() < $('.box1-1').height())
271       $('.box2-2').height($('.box1-1').height());
272	
273   if ($('.box1').height() < $('.box2').height())
274       $('.box1').height($('.box2').height());
275   if ($('.box2').height() < $('.box1').height())
276       $('.box2').height($('.box1').height());  
277
278   if ($('.box3-3').height() < $('.box4-4').height())
279       $('.box3-3').height($('.box4-4').height());
280   if ($('.box4-4').height() < $('.box3-3').height())
281       $('.box4-4').height($('.box3-3').height());
282
283   if ($('.box3').height() < $('.box4').height())
284       $('.box3').height($('.box4').height());
285   if ($('.box4').height() < $('.box3').height())
286       $('.box4').height($('.box3').height());
287
288    // if a six box layout exists
289   if ($('.box5-5').height() < $('.box6-6').height())
290       $('.box5-5').height($('.box6-6').height());
291   if ($('.box6-6').height() < $('.box5-5').height())
292       $('.box6-6').height($('.box5-5').height());
293
294   if ($('.box5').height() < $('.box6').height())
295       $('.box5').height($('.box6').height());
296   if ($('.box6').height() < $('.box5').height())
297       $('.box6').height($('.box5').height());
298	
299});
300
301//ADD CLASS TO MENU ON HOVER
302$(function() {
303        $(".dropdown").hover(
304            function(){ $(this).addClass('open') },
305            function(){ $(this).removeClass('open') }
306        );
307    });

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.