PageSourceSearch

https://www.oldarbat.ru/templates/dialog.min.js?v=2.1

js oldarbat.ru collected 2026-10-08 07:21:25 UTC 3,315 bytes, 1 lines download raw bytes

1function dialog(param){var message=param.msg,page_size=getPageSize(),width=param.width>0&&param.width,height=param.height>0&&param.height,active_close=0!=param.active_close;if(DialogID++,DialogObj[DialogID]={},DialogObj[DialogID].close=$('<div class="dialog-close"></div>'),DialogObj[DialogID].shadow=$('<div class="dialog-shadow"></div>'),DialogObj[DialogID].plash=$('<div class="dialog-plash"></div>'),active_close&&($(DialogObj[DialogID].close).mousedown(function(){$(DialogObj[DialogID].conteiner).remove(),$(DialogObj[DialogID].shadow).remove(),DialogID--}),$(DialogObj[DialogID].shadow).mousedown(function(){$(DialogObj[DialogID].conteiner).remove(),$(DialogObj[DialogID].shadow).remove(),DialogID--})),$(DialogObj[DialogID].shadow).css("opacity","0.5"),DialogObj[DialogID].content=$('<div class="dialog-result">'+message+"</div>"),DialogObj[DialogID].conteiner=$('<div class="dialog-conteiner"></div>'),active_close&&$(DialogObj[DialogID].plash).append(DialogObj[DialogID].close),$(DialogObj[DialogID].conteiner).append(DialogObj[DialogID].plash),$(DialogObj[DialogID].conteiner).append(DialogObj[DialogID].content),param.open&&"function"==typeof param.open){var arg=[DialogID];param.open.apply(DialogObj[DialogID].content,Array.prototype.slice.call(arg))}$("body").append(DialogObj[DialogID].shadow),$("body").append(DialogObj[DialogID].conteiner);var zindex=eval($(DialogObj[DialogID].shadow).css("z-index"))+DialogID;$(DialogObj[DialogID].shadow).css({width:"100%",height:page_size[1]+"px",position:"absolute"}),$(DialogObj[DialogID].shadow).css("z-index",zindex),width&&$(DialogObj[DialogID].content).css("width",width+"px"),height&&$(DialogObj[DialogID].content).css("height",height+"px"),width=width||$(DialogObj[DialogID].conteiner).width(),height=height||$(DialogObj[DialogID].conteiner).height();var marginLeft=Math.max(40,parseInt($(window).width()/2-width/2))+"px",marginTop=Math.max(40,parseInt($(window).height()/2-height/2+$(document).scrollTop()))+"px";$(DialogObj[DialogID].conteiner).css("position","absolute"),$(DialogObj[DialogID].conteiner).css("left",marginLeft),$(DialogObj[DialogID].conteiner).css("top",marginTop),$(DialogObj[DialogID].conteiner).css("z-index",zindex+1),$(DialogObj[DialogID].conteiner).css("display","block")}function dialog_close_all(){var o=$(DialogObj).size();if(o>0){for(i=1;i<=o;i++)DialogObj[i]&&($(DialogObj[i].conteiner).remove(),$(DialogObj[i].shadow).remove());DialogID=0}return!1}function getPageSize(){var o,i;window.innerHeight&&window.scrollMaxY?(o=document.body.scrollWidth,i=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(o=document.body.scrollWidth,i=document.body.scrollHeight):document.documentElement&&document.documentElement.scrollHeight>document.documentElement.offsetHeight?(o=document.documentElement.scrollWidth,i=document.documentElement.scrollHeight):(o=document.body.offsetWidth,i=document.body.offsetHeight);var e,a;return self.innerHeight?(e=self.innerWidth,a=self.innerHeight):document.documentElement&&document.documentElement.clientHeight?(e=document.documentElement.clientWidth,a=document.documentElement.clientHeight):document.body&&(e=document.body.clientWidth,a=document.body.clientHeight),pageHeight=i<a?a:i,pageWidth=o<e?e:o,[pageWidth,pageHeight,e,a]}var DialogID=0,DialogObj={};

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.