PageSourceSearch

https://www.markwallheiser.com/js/APP/1788533357/div.js

js markwallheiser.com collected 2026-09-26 14:03:42 UTC 2,416 bytes, 125 lines download raw bytes

1
2function getDivObj(divName)
3{
4	if (document.all && document.all[divName])
5		return document.all[divName];
6	else if (document.getElementById)
7		return document.getElementById(divName);
8
9}
10
11function divStatus(divName)
12{
13	if (!(divObj = getDivObj(divName)))
14		return null;
15
16	if (divObj.style.display == '' || divObj.style.display == 'block')
17		return true;
18	else
19		return false;
20	
21}
22
23function divSet(divName, flag)
24{
25	if (typeof(divName) == 'object')
26		divObj = divName;
27	else if (!(divObj = getDivObj(divName)))
28		return;
29	
30	var			style = 'block';
31
32	if (typeof(flag) == 'string')
33		style = flag;
34
35	if (flag)
36		divObj.style.display = (document.getElementById) ? style : '';
37	else
38		divObj.style.display = 'none';
39}
40
41function divToggle(divName) 
42{
43	if (divStatus(divName)) {
44		divSet(divName, false)
45		return false;
46	} else {
47		divSet(divName, true);
48		return true;
49	}
50}
51
52function divSwap(div1, div2)
53{
54	divToggle(div1);
55	divToggle(div2);
56}
57
58// ########## "prompt" stuff ##########
59
60var		PROMPT_DIVOBJ = null;
61var		PROMPT_OFFSET_Y = 0;
62
63function promptActive()
64{
65	return PROMPT_DIVOBJ;
66}
67
68// NOTE: offset argument can be boolean (true/false), number (pixel offset),
69// or HTML object (offset will be determined based on position on page)
70function promptOpen(name, offset, force)
71{
72	if (!force && PROMPT_DIVOBJ)
73		return false;
74
75	if (!(divObj = getDivObj(name))) {
76		//alert('Please wait until the page has completed loading.');
77		return false;
78	}
79
80	PROMPT_DIVOBJ = divObj;
81	if (offset) {
82		switch (typeof(offset)) {
83		case 'boolean':
84			divObj.style.top = PROMPT_OFFSET_Y + 'px'; break;
85		case 'number':
86			divObj.style.top = offset + 'px'; break;
87		case 'object':
88			try { ToolMan && ToolMan.coordinates(); } 
89			catch (e) { alert(e); return; }
90			var		TM = ToolMan.coordinates();
91			var		pos = TM.topLeftOffset(offset);
92			divObj.style.top = pos.y + 'px'; break;
93		}
94	}
95	divObj.style.visibility = 'visible';
96	return true;
97}
98
99function promptForce(name, offset)
100{
101	if (!offset) offset = false;
102	promptClose();
103	promptOpen(name, offset);
104}
105
106function promptClose()
107{
108	if (!PROMPT_DIVOBJ) return;
109	PROMPT_DIVOBJ.style.visibility = 'hidden';
110	PROMPT_DIVOBJ = null;
111	return;
112}
113
114function promptOffset(elem, offset)
115{
116	try { ToolMan && ToolMan.coordinates(); } 
117	catch (e) { alert(e); return; }
118
119	var		TM = ToolMan.coordinates();
120	var		pos = TM.topLeftOffset(elem);
121
122	if (offset) pos.y += offset;
123 
124	PROMPT_OFFSET_Y = pos.y
125}

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.