PageSourceSearch

https://denjyoyu.tokyo/js/tooltip.js

js denjyoyu.tokyo collected 2026-10-09 01:28:52 UTC 2,783 bytes, 84 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10var tooltip=function(){
11	var id = 'tt';
12	var top = 3;
13	var left = 3;
14	var maxw = 300;
15	var speed = 10;
16	var timer = 20;
17	var endalpha = 95;
18	var alpha = 0;
19	var tt,t,c,b,h;
20	var ie = document.all ? true : false;
21	return{
22		show:function(v,w){
23			if(tt == null){
24				tt = document.createElement('div');
25				tt.setAttribute('id',id);
26				t = document.createElement('div');
27				t.setAttribute('id',id + 'top');
28				c = document.createElement('div');
29				c.setAttribute('id',id + 'cont');
30				b = document.createElement('div');
31				b.setAttribute('id',id + 'bot');
32				tt.appendChild(t);
33				tt.appendChild(c);
34				tt.appendChild(b);
35				document.body.appendChild(tt);
36				tt.style.opacity = 0;
37				tt.style.filter = 'alpha(opacity=0)';
38				document.onmousemove = this.pos;
39			}
40			tt.style.display = 'block';
41			c.innerHTML = v;
42			tt.style.width = w ? w + 'px' : 'auto';
43			if(!w && ie){
44				t.style.display = 'none';
45				b.style.display = 'none';
46				tt.style.width = tt.offsetWidth;
47				t.style.display = 'block';
48				b.style.display = 'block';
49			}
50			if(tt.offsetWidth > maxw){tt.style.width = maxw + 'px'}
51			h = parseInt(tt.offsetHeight) + top;
52			clearInterval(tt.timer);
53			tt.timer = setInterval(function(){tooltip.fade(1)},timer);
54		},
55		pos:function(e){
56			var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;
57			var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;
58			tt.style.top = (u - h) + 'px';
59			tt.style.left = (l + left) + 'px';
60		},
61		fade:function(d){
62			var a = alpha;
63			if((a != endalpha && d == 1) || (a != 0 && d == -1)){
64				var i = speed;
65				if(endalpha - a < speed && d == 1){
66					i = endalpha - a;
67				}else if(alpha < speed && d == -1){
68					i = a;
69				}
70				alpha = a + (i * d);
71				tt.style.opacity = alpha * .01;
72				tt.style.filter = 'alpha(opacity=' + alpha + ')';
73			}else{
74				clearInterval(tt.timer);
75				if(d == -1){tt.style.display = 'none'}
76			}
77		},
78		hide:function(){
79			clearInterval(tt.timer);
80			tt.timer = setInterval(function(){tooltip.fade(-1)},timer);
81		}
82	};
83}();
84}

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.