PageSourceSearch

https://gportal.hu/js/jload.js?v=114

js gportal.hu collected 2026-10-01 11:40:54 UTC 5,372 bytes, 200 lines download raw bytes

1function resetCaptcha() {
2    $('#recaptcha_response_field').val('');
3    $('#chkimg').attr("src", 'chkimg?'+Math.random());
4}
5
6function reposimg(o) {
7    var cw=180;
8    var ch=60;
9    var which=o.width%cw-1;
10    var columns=Math.floor(o.width/cw);
11    var xoffset=-1*cw*(which%columns);
12    var yoffset=-1*ch*Math.floor(which/columns);
13
14    $(o).animate({
15	left: xoffset,
16	top: yoffset
17    });
18}
19
20function ajaxcmd(url, cmd, data) {
21    $.ajax({
22	type: "POST",
23	url: url,
24        dataType: "json",
25        data: "cmd="+cmd+"&"+data,
26        success: function(returndata) {
27	    $.each(returndata, function(i, packet) {
28		switch(packet.cmd) {
29		    case 'show' :
30			var destination = $('#'+packet.data.id);
31			destination.html(packet.data.html);
32
33			break;
34		    case 'gotopage' :
35			window.location.replace(packet.data);
36			break;
37		    case 'submitform' :
38			var f = $('#'+packet.data);
39			$('input[name="_isvalidated"]', f).val('yes');
40			f.submit();
41			break;
42		    case 'runfunction' :
43			eval(packet.data);
44			break;
45		    default	    :
46			alert('uhh... unknown cmd ('+packet.cmd+')');
47			break;
48		}
49	    });
50        }
51    });
52}
53
54function nextphase() {
55    $(".gp-reg-felhasznalo").animate({ marginLeft: "-2000px" }, "slow", function() {
56	$(this).hide().css("margin-left", "0px");
57    });
58
59    $(".gp-reg-accepted").show().css("margin-left", "2000px").animate({ marginLeft: 0 }, "slow");
60}
61
62$(function() {
63
64var $szelesseg = $(window).width();
65$(".header_content").css("width", $szelesseg);
66
67// ************** regform ****************
68    $('body').on("click", '#btn_reg_finish', function() {
69	$('#input_regphase').val("2");
70	ajaxcmd('sregister_mainpage.php', 'register', $('#'+$(this).attr("formid")).serialize());
71	return false;
72    } );
73
74    $('body').on("click", 'div#recaptcha_image', function() {
75	resetCaptcha();
76    });
77
78	var contopened = "closed";
79
80	$('body').on("click", ".gp-cont-php", function() {
81		var ref = $(this).attr("ref");
82		
83		if(contopened=="closed") {
84			contopened = ref;
85
86			$(".contreg a").css("background", "#151515");
87			$(".header_content").animate({ height: 250 }, function() {
88				$(".header_content .cont").load(ref+".php", function() {
89					$(".cont").animate({ marginLeft: 0, opacity: 1 });
90				});
91			});
92			
93		} else {
94			if(contopened == ref) {
95				contopened = "closed";
96
97				$(".header_content .cont").animate({ opacity: 0 }, function() {
98				    $(".header_content").animate({ height: 0 });
99				    $(".contreg a").css("background", "transparent");
100				});
101			} else {
102				contopened = ref;
103
104				$(".cont").animate({ marginLeft: -2800 }, "", function() {
105					$(".cont").load(ref+".php", function() {
106					    $(".cont").css("margin-left", "2000px");
107					    $(".cont").show().animate({ marginLeft: 0, opacity: 1 }, "slow");
108					});
109				});
110			}
111			
112			
113		}
114		
115	});
116	
117	$('body').on("click", ".gp-more, .accepted", function() {
118		ajaxcmd('sregister_mainpage.php', 'register', $('#form_reg').serialize());
119
120/*		var $active = $(this).attr("active");
121		var $next = $(this).attr("next");
122		
123		//alert("ezvalami:"+$active);
124		
125		$("."+$active).animate({ marginLeft: "-2000px" }, "slow", function() {
126			$(this).hide().css("margin-left", "0px");
127		});
128		
129		$("."+$next).show().css("margin-left", "2000px").animate({ marginLeft: 0 }, "slow");*/
130	});
131
132	$('body').on("click", ".gp-back", function() {
133		$('#input_regphase').val("1");
134
135		var $active = $(this).attr("active");
136		var $back = $(this).attr("next");
137		
138		$("."+$active).animate({ marginLeft: "2000px" }, "slow", function() {
139			$(this).hide().css("margin-left", "0px");
140		});
141		
142		$("."+$back).show().css("margin-left", "-2000px").animate({ marginLeft: 0 }, "slow");
143	});
144	
145	$('body').on("click", ".nonwebsite", function() {
146	    if(this.checked) $('#input_addr').attr("disabled", "disabled");
147	    else $('#input_addr').removeAttr("disabled");
148	});
149	
150	$('body').on("click", ".biztonsag", function() {
151		$("#rolo").show(function() {
152			$(".biztonsagdiv").show();
153			$(".biztdiv").load("biztonsag.html");
154			});
155	});
156	
157	$('body').on("click", ".roloexit", function() {
158		$(".biztonsagdiv").hide();
159		jQuery('.biztdiv').html('');
160		$("#rolo").hide();
161	});
162	
163	$(".question_caption").click(function() {
164		if($(this).attr("class") != "question_caption questionh1click") {
165		$(".question_caption").removeClass("questionh1click");
166			$(this).addClass("questionh1click");
167		} else {
168			$(this).removeClass("questionh1click");
169		}
170	});
171	
172	$(".question_row .caption").click(function() {
173	
174		if($(this).attr("class") != "caption questionclick") {
175		$(".question_row .caption").removeClass("questionclick");
176			$(this).addClass("questionclick");
177		} else {
178			$(this).removeClass("questionclick");
179		}
180	});
181	
182// ************** regform ****************
183    $('body').on("click", '#btn_send_forgotten', function() {
184	ajaxcmd('sforgotten_mainpage.php', 'sendforgotten', $('#'+$(this).attr("formid")).serialize());
185	return false;
186    } );
187
188// ************** personform ****************
189    $('body').on("click", '#btn_send_person', function() {
190	ajaxcmd('sperson_mainpage.php', 'sendperson', $('#'+$(this).attr("formid")).serialize());
191	return false;
192    } );
193
194// ************** createform ****************
195    $('body').on("click", '#btn_send_create', function() {
196	ajaxcmd('snewportal_mainpage.php', 'createportal', $('#'+$(this).attr("formid")).serialize());
197	return false;
198    } );
199
200});

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.