PageSourceSearch

https://mentorcollege.edu/static/js/bsModal.js

js mentorcollege.edu collected 2026-10-02 23:05:12 UTC 5,147 bytes, 166 lines download raw bytes

1function getDigitToMonth() {
2	return 	{"01":"Jan","02":"Feb","03":"Mar","04":"Apr","05":"May","06":"Jun","07":"Jul","08":"Aug","09":"Sep","10":"Oct","11":"Nov","12":"Dec"};
3}
4
5function htmlEscape(s) {
6    return (s + '').replace(/&/g, '&')
7        .replace(/</g, '&lt;')
8        .replace(/>/g, '&gt;')
9        .replace(/'/g, '&#039;')
10        .replace(/"/g, '&quot;')
11        .replace(/\n/g, '<br />');
12}
13
14function goHome() {
15	window.location.href = $(location).attr('pathname');
16}
17function pgPrint() {
18//	$('.marquee').marquee('destroy');
19//	$('.globalControlZone').html('');
20//	$('#mainHead').hide();
21//	$('#mainContent').html($('#contentZone').html());
22//	document.body.style.backgroundImage = 'none';
23	/*if (typeof $('#mainContent')[0] !== 'undefined')
24$('#mainContent')[0].style.marginLeft = '0px';*/
25//	$('#funcNaviBar').hide();
26//	$('#editFoot').hide();
27
28	window.print();
29}
30
31function showInfoBase(className) {
32	$('#rwdModalDlg').addClass("modal-80percent xds-richtext-types-richText");
33	$('#rwdBSModal').modal('toggle');
34	
35	$('#rwdBSModal').on('hidden.bs.modal', function (e) {
36		$('#modalContent').html('');
37		$('#modalContent').removeClass(className);
38	})
39}
40
41
42naviHead = '<div id="funcNaviBar" class="navigation"><span class="navi-close"><a class="btn btn-primary" role="button" href="javascript:void(0);" onclick="location.reload();">Close</a></span> <span class="navi-print"><a class="btn btn-primary" role="button" href="javascript:void(0);" onclick="pgPrint();">Print</span></a></div>';
43
44
45function showInfo(openmode, content, className) {
46	if (openmode == 0) {
47		$('#modalContent').html(content);
48		if (className != '') {
49			$('#modalContent').addClass(className);
50		}
51		showInfoBase(className);
52	}
53	else {
54		$('.cycle-slideshow').cycle('pause');
55	    $('#contentZone').html(naviHead + content);
56	    if (className != '') {
57			$('#contentZone').addClass(className);
58		}
59	}
60}
61
62
63function showInfoWithTitle(openmode, title, txt, className) {
64	var content = '<div class="print-area doc-body-area"><h4>' + title + '</h4>' + txt + '</div>';
65	showInfo(openmode, content, className);
66}
67
68
69function showInfoImg(openmode, uid, rid, nid, txt, className) {
70	var content = '<p><img src="/file/' + uid + '/' + rid + '/' + nid + '/640"></p>' + txt;
71	showInfo(openmode, content, className);
72}
73
74function showInfoPdf(openmode, uid, rid, nid, txt, className) {
75	var content = txt + '<p><a href="/pdf/' + uid + '/' + rid + '/' + nid + '" target="_blank">Associated .pdf file</a></p>';
76	showInfo(openmode, content, className);
77}
78
79function showInfoWithUrl(openmode, title, url, className) {
80	var content = '<h4>' + title + '</h4>' + iframeConstruct(url);
81	showInfo(openmode, content, className);
82}
83
84function printmodal() {
85	var win = window.open("", "", "");
86	win.document.write($('#modalContent').html());
87	win.print();
88}
89
90function toggle_mashup(id, down, up) {
91	var id2 = id.replace('#mashup-content', '#i');
92	var cls = $(id2).attr('class');
93	if (cls.indexOf(down) > -1) {
94		$(id2).removeClass(down);
95		$(id2).addClass(up);
96	}
97	else {
98		$(id2).removeClass(up);
99		$(id2).addClass(down);
100	}
101	$(id).toggle();
102	
103	/*
104
105	imgout=new Image(11,11);
106	imgin=new Image(11,11);
107	//imgout.src="/.templates/RWD/RWDimages/divcollapse.gif";
108	//imgin.src="/.templates/RWD/RWDimages/divcollapse.gif";
109	
110	imgout_mashup=new Image(11,11);
111	imgin_mashup=new Image(11,11);
112	//imgout_mashup.src="/siteimages/mashup_expand1.png";
113	//imgin_mashup.src="/siteimages/mashup_collapse1.png";
114
115	if (document.getElementById) { // DOM3 = IE5, NS6
116		if (document.getElementById(id).style.display == "none"){
117			document.getElementById(id).style.display = 'inline-table';
118			document.getElementById(id).style.width = '100%';
119			filter(("img"+id),'imgin_mashup');
120		} else {
121			filter(("img"+id),'imgout_mashup');
122			document.getElementById(id).style.display = 'none';
123		}
124	} else {
125		if (document.layers) {
126			if (document.id.display == "none"){
127				document.id.display = 'inline-table';
128				document.getElementById(id).style.width = '100%';
129				filter(("img"+id),'imgin_mashup');
130			} else {
131				filter(("img"+id),'imgout_mashup');
132				document.id.display = 'none';
133			}
134		} else {
135			if (document.all.id.style.visibility == "none"){
136				document.all.id.style.display = 'inline-table';
137				document.getElementById(id).style.width = '100%';
138			} else {
139				filter(("img"+id),'imgout_mashup');
140				document.all.id.style.display = 'none';
141			}
142		}
143	}*/
144	
145}
146
147
148function iframeConstruct(url) {
149	//return '<iframe width="100%" height="100%" src="' + url + '" class="contentIframe" scrolling="yes"></iframe>'
150	return '<iframe width="100%" height="100%" src="' + 'http://local.iframe.edsby.websby.net?' + encodeURIComponent(url) + '" class="contentIframe" scrolling="yes"></iframe>'
151}
152
153function showInfoWithIframeByYoutube(uid, rid, nid, txt, iframeurl) {
154	$('#modalContent').html(iframeConstruct(iframeurl));
155	$('#rwdBSModal').modal('toggle');
156}
157
158function showInfowithIframeByUrl(url) {
159	$('#modalContent').html(iframeConstruct(url));
160	$('#rwdModalDlg').addClass("modal-80percent");
161	$('#rwdBSModal').modal('toggle');
162}
163
164function unescapeQuotes(string) {
165    return string.replace(/\\"/g, '"');
166}

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.