PageSourceSearch

https://vasarnapihirek.hu/scripts/ads.popup-msg.js

js vasarnapihirek.hu collected 2026-10-02 11:49:17 UTC 3,327 bytes, 101 lines download raw bytes

1$(function() {
2	popup_msg_resize();
3});
4
5
6function egyszer_alert_popup(title,content) {
7	var type = 'alert', 
8		button = '', 
9		postdata = '';
10
11	popup_msg( type, title, content, button, postdata );
12
13	$('.popup-msg-container').css({ 'width': 610, 'margin-left': -280 });
14	$('.popup-msg-box').css({ 'width': 590 });
15	$('.popup-msg-box .content').css({ 'width': 560, 'background': 'none repeat scroll 0 0 #F7F7EF' });
16}
17
18
19$(window).resize(function() {
20	popup_msg_resize();
21});
22
23
24function popup_msg_resize() {
25	/*$('.popup-msg-cover').css({
26		'width': $(document).width(), 
27		'height': $(document).height()
28	});*/
29}
30
31
32function popup_msg_close() {
33	$('.popup-msg-cover').fadeOut(300, function() {
34		$('.popup-msg-title h2, .popup-msg-body, .popup-msg-buttons').html('');
35	});
36}
37
38
39function popup_msg( type, title, content, buttons, postdata ) {
40	// az adatok
41	if (postdata == null){
42		postdata = "";
43	}
44	//title
45	$('.popup-msg-title h2').html(title);
46	if ( title == '' ) { $('.popup-msg-title').hide(0); }
47	else { $('.popup-msg-title').show(0); }
48	
49	//content
50	if(type=="url"){
51		$('.popup-msg-close').show(0);
52
53		$('.popup-msg-container').css({ 'width': $('.popup-msg-container').attr('data-height'), 'margin-left': -( parseInt($('.popup-msg-container').attr('data-height') ) / 2 ) });
54		$('.popup-msg-box').css({ 'width': $('.popup-msg-box').attr('data-height') });
55		$('.popup-msg-box .content').css({ 'width': $('.popup-msg-box .content').attr('data-height') });
56
57		$.ajax({
58			type: "POST", 
59			url: content,
60			data: postdata + "&ajax=true",
61			success: function(response){
62				 $('.popup-msg-body').html(response + '<div class="clear"></div>');
63			}
64        });
65	} else if ( type == 'blocker' ) {
66		$('.popup-msg-close').hide(0);
67
68		$('.popup-msg-container').css({ 'width': 620, 'margin-left': -310 });
69		$('.popup-msg-box').css({ 'width': 610 });
70		$('.popup-msg-box .content').css({ 'width': 590 });
71
72		$('.popup-msg-body').html(content + '<div class="clear"></div>');
73    } else if ( type == 'wide' ) {
74    	$('.popup-msg-close').show(0);
75
76    	$('.popup-msg-container').css({ 'width': 620, 'margin-left': -310 });
77		$('.popup-msg-box').css({ 'width': 610 });
78		$('.popup-msg-box .content').css({ 'width': 590 });
79
80		$('.popup-msg-body').html(content + '<div class="clear"></div>');
81	} else {
82		$('.popup-msg-close').show(0);
83
84		$('.popup-msg-container').css({ 'width': $('.popup-msg-container').attr('data-height'), 'margin-left': -( parseInt($('.popup-msg-container').attr('data-height') ) / 2 ) });
85		$('.popup-msg-box').css({ 'width': $('.popup-msg-box').attr('data-height') });
86		$('.popup-msg-box .content').css({ 'width': $('.popup-msg-box .content').attr('data-height') });
87
88		$('.popup-msg-body').html(content + '<div class="clear"></div>');
89	}
90	
91	
92	// buttons
93	var buttons_html='';
94	for(i=0;i < buttons.length;i++){
95		var randomize = Math.floor( (Math.random() * 10) +1 );
96		buttons_html+='<input type="button" id="mymodal-' + buttons[i][2]+ '" name="mymodal-' + buttons[i][2]+ '" class="popup-msg-btn ' + buttons[i][3] + ' '+ buttons[i][3] +'-'+ randomize +'" value="' + buttons[i][0]+ '" onclick="' + buttons[i][1]+ '" />';
97	}
98	
99	$('.popup-msg-buttons').html(buttons_html);
100	$('.popup-msg-cover').fadeIn(300);
101}

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.