PageSourceSearch

https://www.iveriisa.ge/templatesv2/assets/js/popup.min.js?v=1419534366

js iveriisa.ge collected 2026-10-07 14:00:08 UTC 4,521 bytes, 128 lines download raw bytes

1//popup start
2var popupData = {
3	data: {
4		actProgressID: null,
5		scrollbarSize: getScrollbarWidth(),
6	},
7	tags: {
8		popupBody: '.popup_body',
9		popupContent: '.popup-content',
10	}
11};
12var popup_window_reize 	= new Array();
13function popup(url, dataObj, func, height, closeOnOutClick) {
14	//title = decodeURI(title || ' ');
15	//title = title.replace(/\+/g," ");
16	var id 		= $('.popup').length;
17	var	height 	= height ? 'height:' + height + 'px;' : '';
18	form = 
19	'<div class="popup" id="' + id + '" style="z-index:' + maxZ() + ';"' + (closeOnOutClick ? ' onClick="closePopup(' + id + ', event);"' : '') + '>'
20		+'<div class="popup_container_block">'
21			+'<div class="popup_container" style="max-height:' + ($(window).height() - popupData.data.scrollbarSize) + 'px;' + height + '">'
22				+'<div class="popup_content">'
23					//+'<h3 class="popup_title">'+title+'</h3>'
24					+'<div class="popup_body">'
25						+'<div class="popup_loader">'
26							+'<div class="popup_loader_img"></div>'
27							+'<div class="popup_loader_text">Loading...</div>'
28						+'</div>'
29					+'</div>'
30					+'<a class="popup_close shadow-inset" title="' + langs.Close + '"' + (!closeOnOutClick ? ' onClick="closePopup(' + id + ');"' : '' ) + '><i class="icon-16 del-16"></i></a>'
31				+'</div>'
32			+'</div>'
33		+'</div>'
34	+'</div>';
35	//show_popup_under();
36	$('body').append(form);
37	show_popup(id);
38	$('body').addClass('popup_active_body');
39	$.get(url, dataObj, function(data){
40		$('.popup[id='+ id +'] .popup_body').html(data);
41		popup_window_reize[id]();
42		if(typeof func == 'function'){
43			func();
44		}
45	});
46	popup_window_reize[id] = function(){
47		// $('.popup[id='+ id +'] .popup_container_block').width($(window).width() - popupData.data.scrollbarSize).height($(window).height() - popupData.data.scrollbarSize);
48		$('.popup[id='+ id +'] .popup_container_block .popup_container').attr('style', 'max-height:' + ($(window).height() - popupData.data.scrollbarSize) + 'px;' + height);
49	}
50	$(window).bind('resize', popup_window_reize[id]);
51	//$('#popup_body').load(url);
52}
53function show_popup(id){
54	$('.popup[id='+id+']').animate({opacity:1},300);
55}
56function hide_popup(id){
57	$('.popup[id='+id+']').remove();
58}
59function close_popup(id){
60	//$(window).unbind('resize',popup_window_reize[id]);
61	var id = id || $('.popup').length-1;
62	$('.popup[id='+id+']').remove();
63	if(!id) $('body').removeClass('popup_active_body');
64	event.preventDefault() || event.stopPropagation();
65	//hide_popup_under(id);
66}
67function closePopup(id, event){
68	if(event != null && ['popup_container_block', 'popup_container', 'popup_close shadow-inset', 'icon-16 close-1-16'].indexOf(event.target.className) == -1){
69		return false;
70	}
71	try{
72		delete popupData.data.actProgressID;
73	} catch(e){}
74	//$(window).unbind('resize',popup_window_reize[id]);
75	var id = id || $('.popup').length - 1;
76	$('.popup[id=' + id + ']').remove();
77	if(!id){
78		$('body').removeClass('popup_active_body');
79	}
80	try {
81		event.preventDefault() || event.stopPropagation();
82	} catch(e){}
83	//hide_popup_under(id);
84}
85function show_popup_under(){
86	var id = $('.popup_under').length;
87	$('body').append('<div class="popup_under" id="' + id + '" style="z-index:' + maxZ() + '"></div>');
88	$('.popup_under[id=' + id + ']').css({ height:getDocHeight(),width:getDocWidth()}).fadeIn(200);
89}
90function hide_popup_under(id){
91	$('.popup_under[id=' + id + ']').remove();
92}
93function getScrollbarWidth() {
94    var outer = document.createElement("div");
95    outer.style.visibility = "hidden";
96    outer.style.width = "100px";
97    outer.style.msOverflowStyle = "scrollbar"; // needed for WinJS apps
98
99    document.body.appendChild(outer);
100
101    var widthNoScroll = outer.offsetWidth;
102    // force scrollbars
103    outer.style.overflow = "scroll";
104
105    // add innerdiv
106    var inner = document.createElement("div");
107    inner.style.width = "100%";
108    outer.appendChild(inner);        
109
110    var widthWithScroll = inner.offsetWidth;
111
112    // remove divs
113    outer.parentNode.removeChild(outer);
114
115    return widthNoScroll - widthWithScroll;
116}
117
118$(document).on('click', '.popup', function(event){
119	var id = id || $('.popup').length-1;
120	$('.popup[id='+id+']').remove();
121	if(!id) $('body').removeClass('popup_active_body');
122	event.preventDefault() || event.stopPropagation();
123});
124$(document).on('click touch', '.popup_container_block', function(event) {
125	event.preventDefault();
126  event.stopPropagation();
127});
128//popup end

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.