PageSourceSearch

https://tsmth.gov.ua/templates/sj_worldnews/js/showbox.js

js tsmth.gov.ua collected 2026-10-08 23:05:48 UTC 1,763 bytes, 58 lines download raw bytes

1//JS script 
2var boxes=[];
3var ytoverlaywrap=null;
4showBox=function(box,focusobj,caller,e){
5	if(!ytoverlaywrap){
6		ytoverlaywrap=new Element('div',{id:"yt_overlaywrap"}).injectBefore($('yt_login_box'));
7		ytoverlaywrap.setStyle('opacity',0.3);
8		ytoverlaywrap.addEvent('click',function(e){boxes.each(function(box){
9			if(box.status=='show'){
10				box.status = 'hide';
11				var fx = new Fx.Tween (box);
12				fx.pause();
13				fx.start ('opacity',box.getStyle('opacity'), 0); box.toggle();
14				if (box._caller) box._caller.removeClass ('show');
15			}
16		},this);
17		ytoverlaywrap.setStyle('display','none');
18		});
19	}
20	caller.blur();
21
22	box=$(box);
23	if(!box)return;
24	if($(caller))box._caller=$(caller);
25	if(!boxes.contains(box)){
26		boxes.include(box);
27	}
28	if(box.getStyle('display')=='none'){
29		box.setStyles({display:'block',opacity:0}); box.toggle();
30	}
31	
32	if(box.status=='show'){ 
33		//hide
34		box.status = 'hide';
35		var fx = new Fx.Tween (box);
36		fx.pause();
37		fx.start ('opacity',box.getStyle('opacity'), 0); box.toggle();
38		if (box._caller) box._caller.removeClass ('show');
39		ytoverlaywrap.setStyle('display','none');
40	}else{
41		boxes.each(function(box1){
42			if (box1!=box && box1.status=='show') {
43				box1.status = 'hide';
44				var fx = new Fx.Tween (box1);
45				fx.pause();
46				fx.start ('opacity',box1.getStyle('opacity'), 0); box1.toggle();
47				if (box1._caller) box1._caller.removeClass ('show');
48			}
49		},this);
50		box.status = 'show';
51		var fx = new Fx.Tween (box,{onComplete:function(){if($(focusobj))$(focusobj).focus();}});
52		fx.pause();
53		fx.start ('opacity',box.getStyle('opacity'), 1); box.toggle();
54		
55		if (box._caller) box._caller.addClass ('show');
56		ytoverlaywrap.setStyle('display','block');
57	}	
58}

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.