PageSourceSearch

https://headlam.com/js/project/pages/careers.js?d=c4572589b4fd4063552e7bf1ad0e1c537c5d7ef9

js headlam.com collected 2026-10-03 22:16:44 UTC 9,799 bytes, 211 lines download raw bytes

1// $(document).ready(function () {
2// 	//addParentClassToSections();
3// 	toggleNoResultsMessage();
4//     var categoryDefaultValue = $('.categories').find('.filter-default-value').val().toLowerCase().replace(/\s/g, "-");
5//     var departmentDefaultValue = $('.departments').find('.filter-default-value').val().toLowerCase().replace(/\s/g, "-");
6//     var locationsDefaultValue = $('.location').find('.filter-default-value').val().toLowerCase().replace(/\s/g, "-");
7
8
9//     $('.filter-item-category').on('click', function () {
10//         var departmentCurrentValue = $('.departments').find('.dropdown-select-current').html().toLowerCase().replace(/\s/g, "-");
11//         var locationsCurrentValue = $('.location').find('.dropdown-select-current').html().toLowerCase().replace(/\s/g, "-");
12//         var category = $(this).data('dropdown-item').toLowerCase().replace(/\s/g, "-");
13
14//         if (departmentCurrentValue == departmentDefaultValue && locationsCurrentValue == locationsDefaultValue) {
15//             $('.acc-in').not('.' + category + '').hide();
16//             $('.' + category + '').show();
17
18//         } else if (departmentCurrentValue != departmentDefaultValue && locationsCurrentValue == locationsDefaultValue) {
19//             if ($('.' + category).find('.' + departmentCurrentValue).length) {
20//                 $('.acc-in').not('.' + category + '').hide();
21//                 $('.' + category).show();
22//                 $('.' + category).find('.section').not('.' + departmentCurrentValue).hide();
23//                 $('.' + category).find('.' + departmentCurrentValue).show();
24//             } else {
25//                 $('.acc-in').not('.' + category + '').hide();
26//                 $('.' + category).hide();
27//             }
28
29//         } else if (departmentCurrentValue == departmentDefaultValue && locationsCurrentValue != locationsDefaultValue) {
30//             if ($('.' + category).find('.' + locationsCurrentValue).length) {
31//                 $('.acc-in').not('.' + category + '').hide();
32//                 $('.' + category).show();
33//                 $('.' + category).find('.section').not('.' + locationsCurrentValue).hide();
34//                 $('.' + category).find('.' + locationsCurrentValue).show();
35//             } else {
36//                 $('.acc-in').not('.' + category + '').hide();
37//                 $('.' + category).hide();
38//             }
39
40//         } else {
41//             if ($('.' + category).find('.' + departmentCurrentValue + '.' + locationsCurrentValue).length) {
42//                 $('.acc-in').not('.' + category + '').hide();
43//                 $('.' + category).show();
44//                 $('.' + category).find('.section').not('.' + locationsCurrentValue + '.' + departmentCurrentValue).hide();
45//                 $('.' + category).find('.' + locationsCurrentValue + '.' + departmentCurrentValue).show();
46//             } else {
47//                 $('.acc-in').not('.' + category + '').hide();
48//                 $('.' + category).hide();
49//             }
50//         }
51// 		toggleNoResultsMessage();
52//     })
53
54//     $('.filter-item-department').on('click', function () {
55//         var categoryCurrentValue = $('.categories').find('.dropdown-select-current').html().toLowerCase().replace(/\s/g, "-");
56//         var locationsCurrentValue = $('.location').find('.dropdown-select-current').html().toLowerCase().replace(/\s/g, "-");
57//         var department = $(this).data('dropdown-item').toLowerCase().replace(/\s/g, "-");
58
59//         setSectionsVisibility(categoryCurrentValue, categoryDefaultValue, locationsCurrentValue, locationsDefaultValue, department);
60// 		toggleNoResultsMessage();
61// 	})
62
63//     $('.filter-item-location').on('click', function () {
64//         var categoryCurrentValue = $('.categories').find('.dropdown-select-current').html().toLowerCase().replace(/\s/g, "-");
65//         var departmentCurrentValue = $('.departments').find('.dropdown-select-current').html().toLowerCase().replace(/\s/g, "-");
66//         var location = $(this).data('dropdown-item').toLowerCase().replace(/\s/g, "-");
67
68//         setSectionsVisibility(categoryCurrentValue, categoryDefaultValue, departmentCurrentValue, departmentDefaultValue, location);
69// 		toggleNoResultsMessage();
70// 	})
71
72//     $('.reset-btn').on('click', function () {
73
74//         var $filterInputs = $('.filter-dropdown');
75//         $('.acc-in').show();
76//         $('.section').show();
77//         $filterInputs.each(function () {
78//         	var $this = $(this);
79//         	var defaultValue = $this.parent().siblings('.filter-default-value').first().val();
80//         	$this.html(defaultValue);
81// 		});
82// 		toggleNoResultsMessage();
83//     });
84// })
85
86// //function addParentClassToSections() {
87// //    $('.acc-in').each(function () {
88// //        var parentClass = $(this).attr('class').split(/\s+/)[1];
89// //        $(this).find('.section').each(function () {
90// //            $(this).addClass(parentClass);
91// //        })
92// //    })
93// //}
94
95// function setSectionsVisibility(firstFilterCurrentValue, firstFilterDefaultValue, secondFilterCurrentValue, secondFilterDefaultValue, clickedFilterValue) {
96//     if (firstFilterCurrentValue == firstFilterDefaultValue && secondFilterCurrentValue == secondFilterDefaultValue) {
97//         $('.acc-in').each(function () {
98//             if ($(this).find('.' + clickedFilterValue).length == 0) {
99//                 $(this).hide();
100//             } else {
101//                 $(this).find('.section').not('.' + clickedFilterValue).hide();
102//                 $(this).show();
103//                 $(this).find('.' + clickedFilterValue).show();
104//             }
105//         })
106
107//     } else if (firstFilterCurrentValue != firstFilterDefaultValue && secondFilterCurrentValue == secondFilterDefaultValue) {
108//         if ($('.' + firstFilterCurrentValue).find('.' + clickedFilterValue).length) {
109//             $('.acc-in').not('.' + firstFilterCurrentValue + '').hide();
110//             $('.' + firstFilterCurrentValue).show();
111//             $('.' + firstFilterCurrentValue).find('.section').not('.' + clickedFilterValue).hide();
112//             $('.' + firstFilterCurrentValue).find('.' + clickedFilterValue).show();
113//         } else {
114//             $('.acc-in').not('.' + firstFilterCurrentValue + '').hide();
115//             $('.' + firstFilterCurrentValue).hide();
116//         }
117
118//     } else if (firstFilterCurrentValue != firstFilterDefaultValue && secondFilterCurrentValue != secondFilterDefaultValue) {
119//         if ($('.' + firstFilterCurrentValue).find('.' + secondFilterCurrentValue + '.' + clickedFilterValue).length) {
120//             $('.acc-in').not('.' + firstFilterCurrentValue + '').hide();
121//             $('.' + firstFilterCurrentValue).show();
122//             $('.' + firstFilterCurrentValue).find('.section').not('.' + clickedFilterValue + '.' + secondFilterCurrentValue).hide();
123//             $('.' + firstFilterCurrentValue).find('.' + clickedFilterValue + '.' + secondFilterCurrentValue).show();
124//         } else {
125//             $('.acc-in').hide();
126//         }
127
128//     } else {
129//         $('.acc-in').each(function () {
130//             if ($(this).find('.' + secondFilterCurrentValue + '.' + clickedFilterValue).length == 0) {
131//                 $(this).hide();
132//             } else {
133//                 $(this).show();
134//                 $(this).find('.section').not('.' + secondFilterCurrentValue + '.' + clickedFilterValue).hide();
135//                 $(this).find('.' + secondFilterCurrentValue + '.' + clickedFilterValue).show();
136//             }
137//         })
138// 	}
139
140// }
141
142// function toggleNoResultsMessage()
143// {
144// 	var $noResultsMessage = $('#noResults');
145// 	var $visibleSections = $('.acc-in:visible');
146// 	if ($visibleSections.length) {
147// 		$noResultsMessage.hide();
148// 	}
149// 	else {
150// 		$noResultsMessage.show();
151// 	}
152// }
153
154
155
156// //$(function () {
157// //	var category ="";
158// //	var location = "";
159// //	var department = "";	
160
161// //	$('.reset-btn').on('click', function () {
162// //		var $filterInputs = $('.filter-dropdown');
163// //		$filterInputs.each(function () {
164// //			var $this = $(this);
165// //			var defaultValue = $this.parent().siblings('.filter-default-value').first().val();
166// //			$this.html(defaultValue);
167// //			getCareers("","","");
168// //		});
169// //	});
170// //	$('.filter-item-department').on('click', function () {
171// //		department = $(this).data('dropdown-item');
172// //		getCareers(category, department, location);
173// //	});
174// //	$('.filter-item-category').on('click', function () {
175// //		category = $(this).data('dropdown-item');
176// //		getCareers(category, department, location);
177// //	});
178// //	$('.filter-item-location').on('click', function () {
179// //		location = $(this).data('dropdown-item');
180// //		getCareers(category, department, location);
181// //	});
182
183// //	getCareers("","","");
184// //});
185
186
187
188// //function getCareers(category, department, location) {
189// //	var $container = $('.filters-wrap').first();
190// //	var pageUrl = $('.controller-url').data("current-page-url");
191// //		var data = {
192// //			category: category,
193// //			department: department,
194// //			location: location
195// //		}
196// //		$.get($('.controller-url').data("controller-url"), data, function (response) {
197// //			var $lastElement = $(response).last();
198// //			if ($lastElement.length) {
199// //				$('.career-items').remove();
200// //				$container.after(response);
201// //				functions.updatePlaceholder();
202// //				$('form').each(function () {
203// //					$(this).attr('action', pageUrl);
204// //				});
205// //			}
206// //		}, "html").fail(function () {
207// //		});
208
209
210	
211// //}

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.