PageSourceSearch

https://www.zdunskowolak.pl/sites/_common/js/qtip2.js?hash=1696507200

js zdunskowolak.pl collected 2026-09-26 17:38:13 UTC 3,740 bytes, 140 lines download raw bytes

1// v2.0 / airmedia.pl / CC license
2
3qtip_fc	= '#262626';
4
5function qtip() {
6/** @expose */
7	var fc=typeof qtip_fc!=='undefined'?qtip_fc:'black',
8/** @expose */
9	bc=typeof qtip_bg!=='undefined'?qtip_bg:'white',
10/** @expose */
11	im=typeof qtip_im!=='undefined'?qtip_im:false,
12/** @expose */
13	cx=typeof qtip_cx!=='undefined'?qtip_cx:12,
14/** @expose */
15	cy=typeof qtip_cy!=='undefined'?qtip_cy:10,
16/** @expose */
17	px=typeof qtip_px!=='undefined'?qtip_px:10,
18/** @expose */
19	py=typeof qtip_py!=='undefined'?qtip_py:14,
20	z=190,enabled=false,ptrobj=false,tipobj=false,
21	dt=document,
22	bd=(dt.compatMode.toLowerCase().indexOf('back')==-1?dt.documentElement:dt.body);
23
24	function init() {
25		if(dt.getElementById('qtip') || dt.getElementById('qtipptr')) return!1;
26		tipobj = dt.createElement('div');
27		tipobj.setAttribute('id', 'qtip');
28		with(tipobj.style) {
29			position = 'absolute';
30			top = 0;
31			left = '-999px';
32			minWidth = '50px';
33			maxWidth = '450px';
34			padding = '6px 6px 3px 6px';
35			color = fc;
36			backgroundColor = bc;
37			border = '1px solid '+fc;
38			//borderRadius = '4px'; AUKCJE
39			fontFamily = 'sans-serif'; // AUKCJE
40			fontSize = '12px';
41			textAlign = 'left';
42			lineHeight = 'normal';
43			transition = 'opacity 0.3s ease-out 0s';
44			boxShadow = '2px 2px 4px #888';
45			opacity = 1;
46			zIndex = z;
47		}
48		bd.appendChild(tipobj);
49		if(im)
50		{
51			ptrobj = dt.createElement('img');
52			ptrobj.setAttribute('id', 'qtipptr');
53			ptrobj.setAttribute('alt', '');
54			ptrobj.setAttribute('src', im);
55			with(ptrobj.style) {
56				position = 'absolute';
57				left = '-999px';
58				top = 0;
59				transition = 'opacity 0.3s ease-out 0s';
60				opacity = 1;
61				zIndex = z+1;
62			}
63			bd.appendChild(ptrobj);
64		}
65		if(dt.addEventListener) dt.addEventListener('mousemove', qtip.pos, false); else { if(dt.attachEvent) dt.attachEvent('onmousemove', qtip.pos); }
66		return true;
67	}
68
69/** @expose */
70	qtip.show = function(s) {
71		if(enabled) return!1;
72		tipobj.innerHTML = s;
73		tipobj.style.opacity = 1;
74		if(ptrobj)
75		{
76			ptrobj.style.opacity = 1;
77		}
78		enabled = true;
79		return true;
80	}
81
82/** @expose */
83	qtip.hide = function() {
84		if(!enabled) return!1;
85		tipobj.style.left = '-999px';
86		tipobj.style.opacity = 0;
87		if(ptrobj)
88		{
89			ptrobj.style.left = '-999px';
90			ptrobj.style.opacity = 0;
91		}
92		enabled = false;
93		return true;
94	}
95
96/** @expose */
97	qtip.pos = function(e) {
98		e=e||event;
99		if(enabled)
100		{
101			var compact = document.getElementsByTagName('body')[0].scrollTop;
102
103			var ndp = false,
104			curX = e.clientX + bd.scrollLeft,
105			curY = e.clientY + (parseInt(compact) > 0 ? compact : bd.scrollTop),
106			w = window,
107			wh = w.innerHeight || w.clientHeight || bd.clientHeight,
108			ww = w.innerWidth || w.clientWidth || bd.clientWidth,
109			redge = ww-e.clientX-cx,
110			bedge = wh-e.clientY-cy,
111			ledge = cx < 0 ? cx*-1 : -6000;
112
113			if(redge < tipobj.offsetWidth) {
114				tipobj.style.left = curX-tipobj.offsetWidth+'px';
115				ndp = true;
116			}
117			else if(curX < ledge) tipobj.style.left = '5px';
118			else {
119				tipobj.style.left = curX+cx-px+'px';
120				if(ptrobj) ptrobj.style.left = curX+cx+'px';
121			}
122
123			if(bedge < tipobj.offsetHeight+16) {
124				tipobj.style.top = curY-tipobj.offsetHeight+16-cy+'px';
125				ndp = true;
126			}
127			else {
128				tipobj.style.top = curY+cy+py+'px';
129				if(ptrobj) ptrobj.style.top = curY+cy+'px';
130			}
131
132			if(!ndp && ptrobj) ptrobj.style.visibility = 'visible'; else if(ptrobj)  ptrobj.style.visibility = 'hidden';
133		}
134	}
135
136	init();
137}
138
139window['qtip']=qtip;
140if(window.addEventListener) window.addEventListener('load', qtip, false); else { if(window.attachEvent) window.attachEvent('onload', qtip); }

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.