PageSourceSearch

https://sbschool.org/js/frontend/cm-member-directory.js

js sbschool.org collected 2026-10-03 21:38:37 UTC 2,186 bytes, 71 lines download raw bytes

1if($('.do-chosen').length) {
2	add_css(shared_root+'/js/jquery/jquery.chosen/chosen.min.css');
3	$.when(add_js(shared_root+'/js/jquery/jquery.chosen/chosen.jquery.min.js',1)).done(function() {
4		function kill_chosen() {
5			$(".do-chosen").chosen("destroy");
6		}
7
8		function do_chosen() {
9			if($(".chosen-container").length) {
10				kill_chosen();
11			}
12
13			$(".do-chosen").chosen({
14				disable_search_threshold: 2,
15				search_contains: true
16			});
17		}
18
19		do_chosen();
20	});
21}
22
23if($('.filter').length) {
24	$(".filter").each(function() {
25		$(this).wrapInner("<div class=\"filter-inside\"></div>");
26	});
27	$(window).resize(function() {
28		var tallest_filter = 0;
29		$(".filter").each(function() {
30			var th = $(this).find(".filter-inside").outerHeight();
31			if(th>tallest_filter) tallest_filter = th;
32		});
33		if(tallest_filter) $(".filter").css({"min-height":tallest_filter+1+"px"});
34	}).resize();
35
36	setTimeout(function() {
37		$(window).resize();
38	},150);
39}
40
41add_js(shared_root+'/js/jquery/jquery.jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.js');
42add_js(shared_root+'/js/forms.js');
43$.when(add_js(shared_root+'/js/jquery/jquery.autotab/jquery.autotab-1.1b.js')).done(function() {
44	$("input.phone").autotab_magic().autotab_filter("numeric");
45	$("input.cellphone").autotab_magic().autotab_filter("numeric");
46});
47
48$("#checkall").change(function() {
49	if($(this).is(":checked")) {
50		$(".checkallcheck").prop("checked",true);
51		$(".selected-all-outer").show();
52	} else {
53		$(".selected-all-outer").hide();
54		$(".checkallcheck").prop("checked",false);
55		$(".selected-all-wrap").hide();
56		$(".selected-info-wrap").show();
57	}
58});
59
60$.when(add_js(shared_root+'/js/Autolinker.min.js',1)).done(function() {
61	var autolinker = new Autolinker( { newWindow: false, email: true, phone: false, mentions: false, hastag: false, urls: false } );
62
63	$('.display-table tbody td').each(function() {
64		if(!$(this).find('a').length && $(this).text().indexOf('@') > 0) {
65			var cell_html = $('<div/>').html($(this).html());
66			$(cell_html).find('span').remove();
67			var txt = $(cell_html).text();
68			$(this).html(autolinker.link(txt));
69		}
70	});
71});

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.