PageSourceSearch

https://suprememastertv.com/js/dialog.js?328655163695

js suprememastertv.com collected 2026-10-02 07:19:39 UTC 2,092 bytes, 94 lines download raw bytes

1//dialogbox
2var dialog = null;    
3var Dialog = Dialog || {};
4Dialog = (function(options){    
5    
6var objDialog = null;
7var objDialogContainer = null;
8var dialogId;
9    
10init();    
11  
12function init(){
13      
14  objDialogContainer = $("#dialogbox-container");
15  objDialogContainer.css({"visibility":"visible"});
16  objDialogContainer.hide();
17	
18  objDialogContainer.children().css({"visibility":"visible"});
19  objDialogContainer.children().hide();	  
20	  	  
21  objDialogContainer.find("[id=dialogbox-close],[id=btn-close]").click(function(){
22    dialogClose();	  
23  });
24	
25  //light dialogbox
26  $(document).off("click.dialog").on("click.dialog",function(e){ 
27    if($(e.target).attr("id") === objDialogContainer.attr("id") && typeof($(e.target).attr("id")) != "undefined"){ 
28       light(); 
29    }
30  });
31}
32	
33function show(obj,msg=""){               
34
35  scrollDisable();	  
36  var msg = arguments[1]; 	  
37	  
38  if(typeof(obj) === "object"){
39	 objDialog = $(obj); 
40  }else{
41	 if(obj.indexOf("#") >-1){
42		objDialog = $(obj); 
43	 }else{
44		objDialog = $("#"+obj);  
45	 }
46  }
47  dialogId = objDialog.attr("id");	  
48  objDialog.find("#msgtext").html(msg);	  
49	  
50  reset();	  
51  objDialog.show();  
52  objDialogContainer.fadeIn(300);   
53}
54  
55function close(){
56  scrollEnable();	  
57  objDialogContainer.fadeOut(300);	  
58}
59  
60function reset(){  
61  objDialogContainer.hide();
62  objDialogContainer.children().hide();
63  $("#"+dialogId).find("input").each(function(){
64    //input have desclear attr not clear  
65    if(typeof($(this).attr("disclear"))=="undefined"){
66	   $(this).val("");
67    }
68  });	  	  	 
69}  
70  
71function light(){
72  if(typeof objDialog!="object") { return; }	  
73  objDialog.addClass("dialogbox-light");   
74  setTimeout(function(){ objDialog.removeClass("dialogbox-light");},500);    
75}
76    
77return { show:show, close:close }    
78    
79});
80
81
82function dialogShow(obj,msg=""){   
83   dialog.show(obj,msg); 
84}
85function dialogClose(){
86   dialog.close();
87} 
88  
89$(function(){
90  dialog = Dialog();    
91});  
92
93
94

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.