PageSourceSearch

https://gtgk.no/cs-common/js/modalbox.js

js gtgk.no collected 2026-10-02 23:37:24 UTC 1,519 bytes, 44 lines download raw bytes

1var modalWindow = {
2	parent:"body",
3	windowId:null,
4	content:null,
5	width:null,
6	height:null,
7	close:function()
8	{
9		$(".modal-window").remove();
10		$(".modal-overlay").remove();
11		$(".modal-overlay-trans").remove();
12	},
13	open:function()
14	{
15		var modal = "";
16		modal += "<div class=\"modal-overlay-trans\"></div>";
17		modal += "<div id=\"" + this.windowId + "\" class=\"modal-window\" style=\"width:" + this.width + "px; height:" + this.height + "px; margin-top:-" + (this.height / 2) + "px; margin-left:-" + (this.width / 2) + "px;\">";
18		modal += this.content;
19		modal += "</div>";	
20
21		$(this.parent).append(modal);
22		$(".modal-window").append("<a class=\"close-window\"></a>");
23		$(".close-window").click(function(){modalWindow.close();});
24		$(".modal-overlay").click(function(){modalWindow.close();});
25		$(".modal-overlay-trans").click(function(){modalWindow.close();});
26}
27};
28
29var openMyModal = function(source)
30{
31	modalWindow.windowId = "myModal";
32	modalWindow.width = 800;
33	modalWindow.height = 600;
34	modalWindow.content = "<iframe width='800' height='600' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'></iframe>";
35	modalWindow.open();
36};
37var openMyModal_wh = function(source,w,h)
38{
39	modalWindow.windowId = "myModal";
40	modalWindow.width = w;
41	modalWindow.height = h;
42	modalWindow.content = "<iframe width='"+w+"' height='"+h+"' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'></iframe>";
43	modalWindow.open();
44};	

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.