PageSourceSearch

https://lacuerda.net/TRAN/utilPop.js

js lacuerda.net collected 2026-10-03 22:30:47 UTC 1,814 bytes, 69 lines download raw bytes

1if (typeof(popCtl)=='undefined') {
2
3var popCtl = {
4	CPTO:null,
5	frame:null,
6	data:null,
7
8	center:function() {
9		var lo = 0 - Math.floor(this.data.w / 2);
10		var to = 0 - Math.floor(this.data.h / 2);
11
12		if(DO.all) { DE=DO.documentElement;
13			wt = DE.scrollTop;
14			nl = (Math.floor(DE.clientWidth / 2) + lo);
15			nt = (Math.floor(DE.clientHeight / 2) + to + wt);
16		}
17		else {
18		  	wt = w.pageYOffset;
19			nl = (Math.floor(w.innerWidth / 2) + lo-13);
20			nt = (Math.floor(w.innerHeight / 2) + to-13 + wt);
21		}
22		GS('popframe').top = nt+'px';
23		GS('popframe').left = nl+'px';
24		this.showMask();
25		this.CPTO = setTimeout("popCtl.center()", 100);
26	},
27
28	showMask:function() {
29		els = GS('popmask');
30		if (DO.width) {
31			els.width = (DO.width)+'px';
32			els.height = ((w.innerHeight > DO.height)? w.innerHeight : DO.height)+'px';
33		} else {
34			els.width = (DO.body.scrollWidth)+'px';
35			els.height = (DO.body.scrollHeight)+'px';
36		}
37	},
38
39	resize:function() { GS('popframe').width=this.data.w+'px'; GS('popframe').height=this.data.h+'px'; },
40
41	start:function(data) {
42		if (this.CPTO != null) this.stop();
43		if (typeof(popframe) == "undefined") {
44			this.frame=DO.createElement('iframe'); ga=this.frame; ga.id='popframe'; ga.name='popframe';
45			ga.setAttribute('frameBorder','0'); ga.setAttribute('allowTransparency', 'true');
46			DO.body.appendChild(ga); hide('popframe');
47		}
48		popframe.location.replace(data.url);
49
50		this.data=data;
51		this.resize();
52//		this.center();
53		show('popframe');
54		show('popmask');
55	},
56
57
58	stop:function() {
59		clearInterval(this.CPTO); this.CPTO = null;
60		hide('popmask');
61		hide('popframe');
62		popframe.location.replace('about:blank');
63	}
64}
65
66if (GE('popmask')==null) { ga=DO.createElement('div'); ga.id='popmask'; ga.onclick='popframe.popClose()'; DO.body.appendChild(ga); }
67}
68
69popCtl.start(popData);

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.