PageSourceSearch

https://www.wkforum.org/2022/assets/js/FWDRLInfo.js?v=1790937953

js wkforum.org collected 2026-10-02 10:46:40 UTC 2,374 bytes, 99 lines download raw bytes

1/**
2 * Revolution Lightbox PACKAGED v3.0
3 * Info screen to show errors.
4 *
5 * @author Tibi - FWDesign [https://webdesign-flash.ro/]
6 * Copyright © 2006 All Rights Reserved.
7 */
8(function (window){
9	
10	var FWDRLInfo = function(prt, warningIconPath){
11		
12		var _s = this;
13		_s.allowToRemove_bl = true;
14
15		
16		/**
17		 * Initialize.
18		 */
19		_s.init = function(){
20			_s.setResizableSizeAfterParent();
21			_s.style().width = "80%";
22		
23			_s.textHolder_do = new FWDRLDO("div");
24			if(!FWDRLUtils.isIEAndLessThen9) _s.textHolder_do.style().font = "Arial";
25			_s.textHolder_do.style().wordWrap = "break-word";
26			_s.textHolder_do.style().padding = "10px";
27			_s.textHolder_do.style().paddingLeft = "42px";
28			_s.textHolder_do.style().lineHeight = "18px";
29			_s.textHolder_do.setBkColor("#EEEEEE");
30			
31			var img_img = new Image();
32			img_img.src = warningIconPath;
33			_s.img_do = new FWDRLDO("img");
34			_s.img_do.setScreen(img_img);
35			_s.img_do.setWidth(28);
36			_s.img_do.setHeight(28);
37			
38			_s.addChild(_s.textHolder_do);
39			_s.addChild(_s.img_do);
40		};
41		
42		_s.showText = function(txt){
43			if(!_s.isShowedOnce_bl){
44				if(_s.screen.addEventListener){
45					_s.screen.addEventListener("click", _s.closeWindow);
46				}else if(_s.screen.attachEvent){
47					_s.screen.attachEvent("onclick", _s.closeWindow);
48				}
49				_s.isShowedOnce_bl = true;
50			}
51			
52			//_s.setX(-800);
53			//if(_s.allowToRemove_bl){
54			//	_s.textHolder_do.setInnerHTML(txt  + "<p style='margin:0px; padding-bottom:10px;'><font color='#FFFFFF'>Click or tap to close _s window.</font>");
55		//	}else{
56				
57				_s.textHolder_do.setInnerHTML(txt);
58			//}
59			
60			clearTimeout(_s.show_to);
61			_s.show();
62		};
63		
64		_s.show = function(){
65			_s.isShowed = true;
66			_s.setVisible(true);
67			setTimeout(function(){
68				_s.positionAndResize();
69			}, 60);
70		};
71		
72		_s.positionAndResize = function(){		
73			_s.setHeight(_s.textHolder_do.getHeight());
74			_s.img_do.setX(6);
75			_s.img_do.setY(parseInt((_s.h - _s.img_do.h)/2));
76	
77		};
78		
79		_s.closeWindow = function(){
80			if(!_s.allowToRemove_bl) return;
81			_s.isShowed = false;
82			clearTimeout(_s.show_to);
83			try{prt.main_do.removeChild(_s);}catch(e){}
84		};
85		
86		_s.init();
87	};
88	
89		
90	/**
91	 * Set prototype.
92	 */
93	FWDRLInfo.setPrototype = function(){
94		FWDRLInfo.prototype = new FWDRLDO("div", "relative");
95	};
96	
97	FWDRLInfo.prototype = null;
98	window.FWDRLInfo = FWDRLInfo;
99}(window));

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.