PageSourceSearch

https://nephrologia.hu/jscript/zoom.js

js nephrologia.hu collected 2026-09-29 08:55:04 UTC 2,581 bytes, 128 lines download raw bytes

1var lft,awidth, dwidth,im,lay;
2var incr = 5; 
3var THUMBWIDTH = 100; 
4var THUMBLEFT = 670; 
5var SPE = false;
6proc=false;
7zi=100;
8zlayer=false;
9//var ltype=1;
10function repositionlayers()
11{
12	//var aDivs = document.body.all.tags("DIV");
13	var aDivs = document.getElementsByTagName("DIV");
14	for (I=0; I < aDivs.length; I++)
15		if (aDivs[I].NAME != null && aDivs[I].NAME.indexOf('nlay') > -1)
16			aDivs[I].style.left = THUMBLEFT;
17
18	if (zlayer) 
19	{
20		lay.style.left = THUMBLEFT - dwidth + THUMBWIDTH;
21		//window.status = dwidth;
22	} 
23}
24function resizeeventhandler()
25{
26	//if (ltype==1) return;
27	var a=0;
28	var b=0;
29	//alert('a');
30	if (SPE == 1)
31	{
32		a = 812;
33		b = 618;		
34	}
35	else
36	{
37		//alert('a');		
38		if (ltype == 2)
39		{
40			a = 798;
41			b = 617;
42		}
43		else if (ltype == 1)
44		{
45			//a = 798;
46			//b = 615;			
47			THUMBLEFT = 657;
48			repositionlayers();
49			return;
50		}
51	}
52	if (document.body.offsetWidth > a) ddwidth= document.body.offsetWidth;
53	else ddwidth=a;
54	THUMBLEFT = (b - THUMBWIDTH) + ((ddwidth - a) / 2);
55	repositionlayers();
56	return true;
57}
58//window.onresize = resizeeventhandler;
59function setdefthumbprop(tw,tl,splitImageExists) 
60{
61//	alert('a');
62	THUMBWIDTH = tw; THUMBLEFT = tl; SPE = splitImageExists;
63	resizeeventhandler();
64}
65function newImage2(arg) { if (document.images) {rslt = new Image();rslt.src = arg;return rslt;}}
66function setcellheight(zp,zc) 
67{
68	//zpo = new getObject(zp);
69	//zco = new getObject(zc);
70	//alert("zc="+zco.id+" zp="+zpo.id);
71	zc.innerHTML = "<IMG SRC=\"image/spacer.gif\" HEIGHT=\""+zp.height+"\" WIDTH=\"1px\">";
72}
73function zoompic(zl,zp) 
74{
75	if(proc) return;
76	proc=true;
77	if (zp.width == THUMBWIDTH)
78	{
79		zi++;
80		im = newImage2(zp.src);
81		if (im.width <= zp.width) 
82		{
83			proc = false;
84			return;
85		}
86		incr=5;
87		awidth = zp.width;
88		dwidth = im.width;
89		zp.src = im.src;
90		zp.width = awidth;
91		im = zp;
92		lay = zl;
93		lay.style.zIndex = zi;
94		zlayer = true;
95		lft = THUMBLEFT;
96	}
97	else
98	{
99		zlayer = false;
100		zi--;
101		lft = THUMBLEFT - zp.width + THUMBWIDTH;
102		im = zp;
103		lay = zl;
104		lay.style.zIndex = zi;
105		incr = -5;
106		awidth = zp.width;
107		dwidth = THUMBWIDTH;
108	}
109	anim();
110}
111function anim() 
112{
113	if (Math.abs(dwidth-im.width) > Math.abs(incr))
114	{
115		im.width +=incr;
116		lft -= incr;
117		lay.style.left = lft;
118	}
119	else
120	{
121		lft -= (dwidth-im.width);
122		im.width = dwidth;
123		lay.style.left = lft;
124	}
125	//document.body.innerText += im.width + ',' + dwidth + '\n';
126	if (im.width != dwidth) setTimeout("anim()",15);
127	else proc=false;
128}

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.