PageSourceSearch

https://madonna.edu/_resources/js/custom.js

js madonna.edu collected 2026-10-02 05:12:56 UTC 6,771 bytes, 277 lines download raw bytes

1// program-finder 
2/*
3$(document).ready(function(){
4
5		$("#DEGREE_LEVEL_" + "GD").prop( "checked", true );
6
7		$("#CATEGORIES_" + "MS").prop( "checked", true );
8
9		window.setTimeout(function(){
10
11			$('.fpf_count').html($('table.databox > tr.data:visible').length);
12
13			$("#DEGREE_LEVEL_" + "GD").trigger('change');
14
15			$("#CATEGORIES_" + "MS").trigger('change');
16
17		},200);
18
19});
20*/
21// END program-finder 
22
23//Gallery Box Fixes
24var $window = jQuery(window);
25var lastWindowWidth = $window.width();
26
27$window.resize(function () {	
28
29	var windowWidth = $window.width();
30
31	if (lastWindowWidth !== windowWidth) {
32
33		var big_box = 0;
34
35		jQuery( ".gallery-box" ).each(function( index ) {
36			
37			console.log(jQuery(this).height());
38
39			if(jQuery(this).height() > big_box){
40
41				big_box = jQuery(this).height();
42
43			}
44
45		});
46
47		jQuery(".gallery-box").height(big_box);
48
49		lastWindowWidth = windowWidth;
50	}
51});
52
53$( document ).ready(function() {
54	
55	//Delay this function by 100ms so columns have time to render
56	setTimeout(function(){
57		
58		var big_box = 0;
59
60		jQuery( ".gallery-box" ).each(function( index ) {
61
62			if(jQuery(this).height() > big_box){
63
64				big_box = jQuery(this).height();
65
66			}
67
68		});
69
70		jQuery(".gallery-box").height(big_box);
71      
72    }, 100);
73
74
75});
76
77
78$(function(){
79	$('.mobile-trigger').on('click', function(){
80		$('body').toggleClass('mobile-open');
81		$('.mobile-menu').slideToggle(250);
82   });
83	
84	$('.mobile-trigger').on('keypress', function(){
85		$('body').toggleClass('mobile-open');
86		$('.mobile-menu').slideToggle(250);
87   });
88	
89	$('.dropdown_mob .submenu_open, .dropdown_mob li > span').on('click', function(){
90		console.log("e");
91
92		$(this).parent().find("ul").first().slideUp('slow');
93		$(this).parent().find(".submenu_open").first().removeClass('active');
94	  if (!($(this).parent('.dropdown_mob').first().length == 0) ){
95	  		//$('.dropdown_mob ul').slideUp('slow');
96		   	//$('.dropdown_mob .submenu_open').removeClass('active');
97	  }
98	   $(this).parent().find('.submenu_open').first().addClass('active'); 
99	   
100	  if($(this).parent().find('.submenu_open').first().next('ul').css('display')=='block'){
101				
102				if (!($(this).parent('.dropdown_mob').first().length == 0) ){console.log("A");
103					$(this).parent().find('.submenu_open').first().next('ul').slideUp('slow');
104					$(this).parent().find('.submenu_open').first().removeClass('active');
105				}else{console.log("B");
106					$(this).parent().find('.submenu_open').first().next('ul').slideUp('slow');
107					$(this).parent().find('.submenu_open').first().removeClass('active');
108				}
109			}
110			else{
111				$(this).parent().find('.submenu_open').first().next('ul').slideUp('slow');
112				$(this).parent().find('.submenu_open').first().next('ul').slideDown('slow');
113			}	   
114	});
115	
116	$('.dropdown_mob .submenu_open, .dropdown_mob li > span').on('keypress', function(){
117		console.log("e");
118
119		$(this).parent().find("ul").first().slideUp('slow');
120		$(this).parent().find(".submenu_open").first().removeClass('active');
121	  if (!($(this).parent('.dropdown_mob').first().length == 0) ){
122	  		//$('.dropdown_mob ul').slideUp('slow');
123		   	//$('.dropdown_mob .submenu_open').removeClass('active');
124	  }
125	   $(this).parent().find('.submenu_open').first().addClass('active'); 
126	   
127	  if($(this).parent().find('.submenu_open').first().next('ul').css('display')=='block'){
128				
129				if (!($(this).parent('.dropdown_mob').first().length == 0) ){console.log("A");
130					$(this).parent().find('.submenu_open').first().next('ul').slideUp('slow');
131					$(this).parent().find('.submenu_open').first().removeClass('active');
132				}else{console.log("B");
133					$(this).parent().find('.submenu_open').first().next('ul').slideUp('slow');
134					$(this).parent().find('.submenu_open').first().removeClass('active');
135				}
136			}
137			else{
138				$(this).parent().find('.submenu_open').first().next('ul').slideUp('slow');
139				$(this).parent().find('.submenu_open').first().next('ul').slideDown('slow');
140			}	   
141	});
142})
143
144$(document).ready(function(){
145	$('.dropdown').hover(function() {
146	  $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(100);
147	}, function() {
148	  $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut(100);
149	});
150	
151	$('.dropdown').keypress(function(e) {
152		if (e.which == 32) {
153			e.preventDefault();
154			$('.dropdown-menu').stop(true, true).delay(100).fadeOut(100);
155			$(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(100);
156		}
157	} );
158})
159
160$(document).ready(function(){
161   /*for fix footer*/
162	$(window).scroll(function () {
163		if ($(this).scrollTop() < 200) {
164			$(".fix_footer").slideUp();
165		}
166		else {
167			$(".fix_footer").slideDown();
168		}
169	});
170	
171	/*for search*/
172
173	$('.srch_icon').on('click', function(){
174
175		 if($('.search_row').css('display')=='block' && $('.search_row').height() > 50){
176
177				 $('.search_row').slideUp();
178
179		 }
180
181		 else{
182
183		 	$('.search_row').slideDown();
184
185		 }
186
187	})
188	
189	$('.srch_icon').on('keypress', function() {
190		 if($('.search_row').css('display')=='block' && $('.search_row').height() > 50) {
191				 $('.search_row').slideUp();
192		 }
193		 else{
194		 	$('.search_row').slideDown();
195		 }
196	});
197
198	$(document).on('click', '.close', function(){
199
200		 $('.search_row').slideUp();
201
202	})
203
204})
205
206
207
208/*bannetText boxHeight start*/
209$(window).on("load", function (e) {
210 var maxH = 0;
211 if($(window).width()>767){
212	 $('.inside-banner > div').each(function(){
213		if($(this).height() > maxH){
214		  maxH = $(this).height();
215		}
216	 })
217	 $('.inside-banner > div').height(maxH); 
218 }else{
219   $('.inside-banner > div').removeAttr('style');
220 }    
221})
222
223$(window).resize(function(){
224 $('.inside-banner > div').removeAttr('style');
225 var maxH = 0;
226 if($(window).width()>767){
227	 $('.inside-banner > div').each(function(){
228		if($(this).height() > maxH){
229		  maxH = $(this).height();
230		}
231	 })
232	 $('.inside-banner > div').height(maxH); 
233 }else{
234   $('.inside-banner > div').removeAttr('style');
235 }
236})
237/*bannetText boxHeight end*/
238
239$(window).on('load', function(){
240	if($(window).width()>767){
241		$('.online_block').each(function(){
242		var block_hei = $(this).height();
243		$(this).find('.online_img, .online_Txt').height(block_hei);
244	   })
245	}else{
246		$('.online_block > div').removeAttr('style');
247	}
248	
249})
250
251$(window).resize(function(){
252	$('.online_block > div').removeAttr('style');
253	if($(window).width()>767){
254		$('.online_block').each(function(){
255		var block_hei = $(this).height();
256		$(this).find('.online_img, .online_Txt').height(block_hei);
257	   })
258	}else{
259		$('.online_block > div').removeAttr('style');
260	}
261	
262})
263
264
265
266// js for the char limit and ... for the homepage assets
267	$(document).ready(function(){
268		$(".trimmed_rss > h3 > a").each(function(key, val){
269			var x = $(this).text();
270			if(x.length > 75){
271				var y = x.substr(0, x.substring(0,75).lastIndexOf(' ')) + '...';
272				$(this).text(y);
273			}
274		});
275	});
276
277

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.