PageSourceSearch

https://faltetovalas.hu/js/init.js?ver=1

js faltetovalas.hu collected 2026-10-08 23:42:01 UTC 7,011 bytes, 149 lines download raw bytes

1jQuery.fn.csak_szamok = function (){
2	return this.each(function(){
3		$(this).keydown(function(e){
4			var key = e.charCode || e.keyCode || 0;
5			// backspace, tab, delete, nyilak, számok
6			return (
7				key == 8 ||
8				key == 9 ||
9				key == 46 ||
10				key == 192 ||
11				(key >= 37 && key <= 40) ||
12				(key >= 48 && key <= 57) ||
13				(key >= 96 && key <= 105));
14		})
15	})
16};
17
18JSON.stringify = JSON.stringify || function (obj) {
19	var t = typeof (obj);
20	if (t != "object" || obj === null) {
21		// simple data type
22		if (t == "string") obj = '"'+obj+'"';
23		return String(obj);
24	} else {
25		// recurse array or object
26		var n, v, json = [], arr = (obj && obj.constructor == Array);
27		for (n in obj) {
28			v = obj[n]; t = typeof(v);
29			if (t == "string") v = '"'+v+'"';
30			else if (t == "object" && v !== null) v = JSON.stringify(v);
31			json.push((arr ? "" : '"' + n + '":') + String(v));
32		}
33		return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
34	}
35};
36
37Number.prototype.formatMoney = function(places, symbol, thousand, decimal) {
38	places = !isNaN(places = Math.abs(places)) ? places : 0;
39	symbol = symbol !== undefined ? symbol : "Ft";
40	thousand = thousand || ".";
41	decimal = decimal || ",";
42	var number = this,
43	    negative = number < 0 ? "-" : "",
44	    i = parseInt(number = Math.abs(+number || 0).toFixed(places), 10) + "",
45	    j = (j = i.length) > 3 ? j % 3 : 0;
46	return negative + (j ? i.substr(0, j) + thousand : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousand) + (places ? decimal + Math.abs(number - i).toFixed(places).slice(2) : "") + " " + symbol;
47};
48
49(function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
50
51function fbs_click() {
52	var u=location.href;
53	var t=document.title;
54	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
55	return false;
56}
57
58var flag = false;	
59$(document).on('click touchstart', '*[data-csere]', function(e) {
60    e.preventDefault();
61    if (!flag) {
62        flag = true;
63        setTimeout(function(){ flag = false; }, 100);
64        var dataset;
65        if (typeof this.dataset != 'undefined') {
66    		dataset = this.dataset;
67    	} else {
68    		dataset = {
69    			csere: this.getAttribute('data-csere'),
70    			target: this.getAttribute('data-target'),
71    			toggle: this.getAttribute('data-toggle')
72    		};
73    	}
74    	if (dataset.csere == 'class') {
75    		$(dataset.target).toggleClass(dataset.toggle);
76    	}
77    }
78});
79
80$(window).scroll(function(){
81    $("#fomenu").css("top",Math.max(0,$("#header").height()-$(this).scrollTop()));
82});
83
84
85$(document).ready(function() {
86// *********** LIONBAR INIT ************************
87//	setTimeout(function() {
88//		$('.scrollable').lionbars();
89//	}, 500);
90// *************************************************
91
92	$('#fomenu_placeholder').css("height",$("#fomenu").height());
93
94	/** ipad double click hack **/
95	$('.szinvalaszto label').on('click touchend', function(e) {
96		var target = "#"+$(this).prop('for');
97		$(target).prop("checked", true);
98	});
99
100	$(".content-holder").fitVids();
101
102	$("a[rel=galeria]").fancybox({
103		'transitionIn'		: 'fade',
104		'transitionOut'		: 'fade',
105		'titlePosition' 	: 'over',
106		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
107			return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (typeof title !== "undefined" && title.length ? '&nbsp;-&nbsp; ' + title : '') + '</span>';
108		}
109	});
110
111	$("a[target=_top]").fancybox({
112		'transitionIn'		: 'fade',
113		'transitionOut'		: 'fade',
114		'showNavArrows'		: false
115	});
116	
117	$(".prod_details").on("mouseover", ".prod_kepek a img", function(e) {
118		var thumb = $(this).prop('src');
119		$(this).closest(".prod_details").find(".picborder").css('background-image', 'url(' + thumb + ')');
120	});
121	
122	$(".termek_galeria").on("mouseover", ".termekkep a img", function(e) {
123		var thumb = $(this).prop('src'),
124			pic = thumb.replace('thumbs/', '');
125		$(this).closest(".termek_galeria").find(".nagykep").prop('href', pic).find("img").prop('src', pic);
126	});
127    
128    $(document).on("mouseenter mouseleave", ".kosarba", function() {
129        if ($('#clr_1').length && $('#clr_1').val()=='0' ) {
130        	var label = $(this).data('label'),
131                type = $(this).data('type');
132        	if (label!='') {
133          		$(this).data('label', $(this).val()).data('type', $(this).prop('type')).val(label).prop('type', type).toggleClass("kosarba_error");
134            }
135        }
136    }); 
137
138    $(".tabs").tabs();
139    
140	tabLinks        = $('.ui-tabs-nav li a');
141	numOfTabs       = tabLinks.length;
142	for (index = 0; index < numOfTabs; index ++) {
143		oldAnchor       = $(tabLinks[index]).attr('href');
144		hashPos         = oldAnchor.indexOf('#');
145		newAnchor       = oldAnchor.substr(hashPos);
146		$(tabLinks[index]).attr('href', newAnchor);
147	}
148
149});

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.