PageSourceSearch

https://meter.hu/js/javascript.js?v=42092665290

js meter.hu collected 2026-10-03 00:23:21 UTC 38,515 bytes, 1,272 lines download raw bytes

1var MOBIL = 920;
2var KISFELBONTAS = 600;
3var moreGenerated = false;
4function fixMenu() {
5  if ($(window).innerWidth() > MOBIL) {
6    if (
7      $(window).scrollTop() >=
8      $("#fejlec").innerHeight() - $("#under_row").outerHeight()
9    ) {
10      if ($("#navfix").length <= 0) {
11        $("#fejlec").after('<nav id="navfix">');
12        $("#navfix").html($("#under_row").html());
13        $("#navfix").prepend(
14          '<div class="second-logo"><a href="/" target="_self"><img src="/img/logo2.png"></a></div>',
15        );
16        $("#navfix").css({
17          position: "fixed",
18          left: "50%",
19          transform: "translateX(-50%)",
20          top: "-60px",
21          width: "calc(100% - 50px)",
22
23          padding: "0px 25px 5px 25px",
24          "z-index": 1000,
25          transition: "none",
26          background:
27            "linear-gradient(180deg, rgba(251,251,251,1) 0%, rgba(242,242,242,1) 100%, rgba(2,0,36,1) 255%)",
28          "box-shadow": "0px 0px 10px silver",
29        });
30        if (
31          $(".search-bar").eq(0).css("display") != "none" &&
32          $("input[name=search]").eq(0).is(":focus")
33        ) {
34          $("#navfix input[name=search]").eq(0).focus();
35        }
36      }
37
38      $("#navfix").css("top", "-1px");
39      if (
40        $(".search-bar").eq(0).css("display") != "none" &&
41        $("input[name=search]").eq(0).is(":focus")
42      ) {
43        $("#navfix input[name=search]").eq(0).focus();
44      }
45    } else {
46      $("#navfix").css("top", "-400px");
47      if (
48        $(".search-bar").eq(1).css("display") != "none" &&
49        $("input[name=search]").eq(1).is(":focus")
50      ) {
51        $("input[name=search]").eq(0).focus();
52      }
53    }
54  }
55}
56
57function calculateKonfig(konf) {
58  var rendelesnum = $(".rendeles" + konf)
59    .eq(0)
60    .attr("data-tipus");
61  var alapar = parseInt($("#konf" + konf).attr("data-alapar"));
62  //rendelesnum+=" ";
63  for (var i = 0; i < $(".konfelem" + konf).length; i++) {
64    rendelesnum +=
65      $(".konfelem" + konf)
66        .eq(i)
67        .attr("data-szep") +
68      $(".konfelem" + konf)
69        .eq(i)
70        .val();
71    alapar += parseInt(
72      $(".konfelem" + konf + ":eq(" + i + ") option:selected").attr("data-ar"),
73    );
74  }
75  $(".rendeles" + konf)
76    .eq(0)
77    .html(rendelesnum);
78  $(".rendeles" + konf)
79    .eq(0)
80    .css("color", "red");
81  setTimeout(function () {
82    $(".rendeles" + konf)
83      .eq(0)
84      .attr("style", "");
85  }, 400);
86  var kl = alapar.toString().length;
87  if (kl > 3) {
88    var j = Math.floor(kl / 3);
89    var vegosszeg = "";
90    for (var nn = 0; nn < j; nn++) {
91      vegosszeg =
92        "." +
93        alapar.toString().substring(kl - 3 * nn, kl - 3 * (nn + 1)) +
94        vegosszeg;
95    }
96    if (kl - j * 3 != 0) {
97      vegosszeg = alapar.toString().substring(0, kl - j * 3) + vegosszeg;
98    } else {
99      vegosszeg = vegosszeg.substring(1, vegosszeg.length);
100    }
101  } else {
102    vegosszeg = alapar.toString();
103  }
104  $(".konfar" + konf)
105    .eq(0)
106    .html(vegosszeg + ",-");
107  $(".konfar" + konf)
108    .eq(0)
109    .css("color", "red");
110  setTimeout(function () {
111    $(".konfar" + konf)
112      .eq(0)
113      .attr("style", "");
114  }, 400);
115}
116
117function hamburgerMenu() {
118  if ($(window).innerWidth() <= MOBIL) {
119    if ($("#hamburger").length <= 0) {
120      $("#under_row").after('<div id="hamburger">');
121      $("#hamburger").append('<div class="hamb-row">');
122      $("#hamburger").append('<div class="hamb-row">');
123      $("#hamburger").append('<div class="hamb-row">');
124      $("#hamburger").after(
125        '<div class="mobil-logo"><a href="/" target="_self"><img src="/img/logo2.png"></a></div>',
126      );
127      $("#hamburger").after('<div id="mobil-menu">');
128      $("#mobil-menu").append($(".menusor:eq(0)").html());
129      $("#mobil-menu").append($(".controls:eq(0)").html());
130      $("#mobil-menu").append('<div class="lang-cont">');
131      $(".lang-cont").append($(".lang").parents(".right").html());
132    }
133  } else {
134    $("#hamburger").remove();
135    $(".mobil-logo").remove();
136    $("#mobil-menu").remove();
137  }
138}
139
140function loader() {
141  var butt = document.getElementById("save");
142  var gif = document.getElementById("loader");
143  butt.style.display = "none";
144  gif.style.display = "inline-block";
145}
146
147function validate() {
148  var enab = true;
149  var cpt_m = false; //captcha esetén
150  var psw_m = false; //validatePass esetén
151  var email_m = false; //email esetén
152  for (var i = 0; i < arguments.length; i++) {
153    var ok = document.getElementById(arguments[i]);
154    if (ok.type == "checkbox") {
155      if (ok.checked == false) {
156        enab = false;
157        $("label[for=" + arguments[i] + "]").css("color", "red");
158      } else {
159        $("label[for=" + arguments[i] + "]").attr("style", "");
160      }
161    } else {
162      if (ok.value == "" || ok.value == null) {
163        enab = false;
164        $("#" + arguments[i]).css("background", "pink");
165        if (
166          $("#" + arguments[i]).attr("data-for") != "" &&
167          $("#" + arguments[i]).val() == ""
168        ) {
169          var xcv = $("#" + arguments[i]).attr("data-for");
170          $("#" + xcv).css("background", "pink");
171        }
172      } else {
173        $("#" + arguments[i]).attr("style", "");
174
175        if ($("#" + arguments[i]).attr("data-for") != "") {
176          var xcv = $("#" + arguments[i]).attr("data-for");
177          $("#" + xcv).attr("style", "");
178        }
179
180        if (arguments[i] == "captcha") {
181          if (!getCaptcha()) {
182            enab = false;
183            cpt_m = true;
184            $("#" + arguments[i]).css("background", "pink");
185          } else {
186            cpt_m = false;
187          }
188        } else if (
189          $("#" + arguments[i]).attr("type") == "password" &&
190          $("#" + arguments[i] + "2").length > 0
191        ) {
192          //jelszó ellenőrzés
193          if (!validatePass(arguments[i], arguments[i] + "2")) {
194            enab = false;
195            psw_m = true;
196          } else {
197            psw_m = false;
198          }
199        } else if (arguments[i] == "email") {
200          //email ellenőrzés
201          var re =
202            /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
203          if (!re.test(document.getElementById(arguments[i]).value)) {
204            $("#" + arguments[i]).css("background", "pink");
205            enab = false;
206            email_m = true;
207          } else {
208            email_m = false;
209          }
210        }
211      }
212    }
213  }
214
215  if (!enab) {
216    if (cpt_m) {
217      swal(
218        "Kérjük, írja be helyesen a képen látható karaktereket!",
219        "",
220        "warning",
221      );
222    } else if (email_m) {
223      swal("Kérjük, valós email címet adjon meg!", "", "warning");
224    } else if (!psw_m) {
225      swal("A *-al jelölt mezők kitöltése kötelező!", "", "warning");
226    }
227  } else {
228    loader();
229    $("form").prepend('<div class="lockform"></div>');
230  }
231  return enab;
232}
233
234function validatePass(pass1, pass2) {
235  var goodpass = false;
236  if ($("#" + pass1).val() != "" && $("#" + pass2).val() != "") {
237    if ($("#" + pass1).val().length >= 8) {
238      if ($("#" + pass1).val() == $("#" + pass2).val()) {
239        goodpass = true;
240        $("#" + pass1).attr("style", "");
241        $("#" + pass2).attr("style", "");
242      } else {
243        swal("A két jelszó nem egyezik!", "", "warning");
244        $("#" + pass1).css("background", "pink");
245        $("#" + pass2).css("background", "pink");
246      }
247    } else {
248      swal("A jelszó legalább 8 karakter hosszú legyen!", "", "warning");
249      $("#" + pass1).css("background", "pink");
250    }
251  } else {
252    swal("A *-al jelölt mezők kitöltése kötelező!", "", "warning");
253  }
254
255  return goodpass;
256}
257
258function getCaptcha() {
259  var cpt = "";
260  for (var i = 0; i < $(".cptimg").length; i++) {
261    cpt += String.fromCharCode(
262      parseInt($(".cptimg:eq(" + i + ")").attr("data-img")) + 96,
263    );
264  }
265  $("#captcha").val($("#captcha").val().replace(/ /g, ""));
266  if (cpt == $("#captcha").val().toLowerCase()) {
267    return true;
268  } else {
269    return false;
270  }
271}
272
273function termekSzuro() {
274  $(".termek").fadeOut();
275  $(".termek").attr("data-visible", "0");
276  $(".uresuzenet").remove();
277  var szuro = "";
278  var checkedItem = false;
279  setTimeout(function () {
280    for (var i = 0; i < $("#szuro input").length; i++) {
281      if ($("#szuro input").eq(i).prop("checked") == true) {
282        checkedItem = true;
283        var tid = $("#szuro input").eq(i).attr("id");
284        szuro += "." + tid;
285      }
286    }
287    $(szuro).parents(".termek").fadeIn();
288    $(szuro).parents(".termek").attr("data-visible", "1");
289
290    if (!checkedItem) {
291      termekSzuroDefault();
292    }
293
294    for (var j = 0; j < $(".focsoport").length; j++) {
295      if (
296        $("." + $(".focsoport").eq(j).attr("data-txt") + '[data-visible="1"]')
297          .length <= 0
298      ) {
299        $(".focsoport")
300          .eq(j)
301          .after(
302            '<div class="uresuzenet">Ebben a kategóriában nincs a szűrésnek megfelelő találat!</div>',
303          );
304      }
305    }
306  }, 500);
307}
308
309function termekSzuroDefault() {
310  $("#szuro input").prop("checked", false);
311  $(".termek").fadeIn();
312  $(".termek").attr("data-visible", "1");
313  $(".uresuzenet").remove();
314}
315
316function setOpcioHeight() {
317  /*if($('.opcio_item').length > 0 && $(window).outerWidth() > KISFELBONTAS && $('.oszlop3').length <= 0 && $('.oszlop4').length <= 0)
318 {
319  $('.opcio_item').attr('style','');
320  $('.opcio_item .firstblock').attr('style','');
321  for(var i=0; i<$('.termek_opciok').length; i++)
322  {
323   var omax=0;
324   for(var j=0; j<$('.termek_opciok:eq('+i+') .opcio_item').length; j++)
325   {
326    if($('.termek_opciok:eq('+i+') .opcio_item').eq(j).outerHeight() > omax)
327    {
328     omax=$('.termek_opciok:eq('+i+') .opcio_item').eq(j).outerHeight();
329    }
330   }
331   $('.termek_opciok:eq('+i+') .opcio_item').css('height',omax);
332   $('.termek_opciok:eq('+i+') .opcio_item .firstblock').css('height',omax-20);
333  }
334 }*/
335}
336
337function setOpcioHeightFix(id) {
338  /*if($('.opcio_item').length > 0 && $(window).outerWidth() > KISFELBONTAS && $('.oszlop3').length <= 0 && $('.oszlop4').length <= 0)
339 {
340  $('#'+id+' .opcio_item').attr('style','');
341  $('#'+id+' .opcio_item .firstblock').attr('style','');
342
343   var omax=0;
344   for(var j=0; j<$('#'+id+' .opcio_item').length; j++)
345   {
346    if($('#'+id+' .opcio_item').eq(j).outerHeight() > omax)
347    {
348     omax=$('#'+id+' .opcio_item').eq(j).outerHeight();
349    }
350   }
351   $('#'+id+' .opcio_item').css('height',omax);
352   $('#'+id+' .opcio_item .firstblock').css('height',omax-20);
353  }*/
354}
355
356function myTimer() {
357  $.ajax({
358    type: "POST",
359    url: "realtimemeasure.php",
360    data: "mid=1",
361    dataType: "json",
362    success: function (data1) {
363      var mwm = data1[0];
364      var mkw = data1[1];
365      var mkc = data1[2];
366      var mkws = data1[3];
367      document.getElementById("sugarzas").innerHTML = " " + mwm;
368      document.getElementById("teljesitmeny").innerHTML = " " + mkw;
369      document.getElementById("homerseklet").innerHTML = " " + mkc;
370      document.getElementById("szelsebesseg").innerHTML = " " + mkws;
371    },
372  });
373}
374
375function rendelesNum(rn) {
376  $(".rendelesnum").remove();
377  if (rn != "0") {
378    $(".megrendeles").append('<div class="rendelesnum">' + rn);
379  }
380}
381
382function removeCartElem(elem) {
383  $.ajax({
384    type: "POST",
385    url: "/removecartelem.php",
386    data: "crt=" + elem,
387    dataType: "json",
388    success: function (data5) {
389      var crtd1 = data5[0];
390      if (crtd1 == "ok") {
391        $("#kos" + elem).remove();
392        if ($(".kosar_ar").length > 0) {
393          recalculateKosar();
394          rendelesNum($(".kosar_ar").length);
395        } else {
396          $(".rendeleslista").remove();
397          rendelesNum("0");
398        }
399      } else if (crtd1 == "okall") {
400        $(".rendeleslista").remove();
401        rendelesNum("0");
402      }
403    },
404  });
405}
406
407function recalculateKosar() {
408  var kosar = 0;
409  if ($(".kosar_ar").length > 0) {
410    for (var i = 0; i < $(".kosar_ar").length; i++) {
411      kosar +=
412        parseInt($(".kosar_ar").eq(i).attr("data-price")) *
413        parseInt($(".kosar_db").eq(i).attr("data-db"));
414    }
415  }
416  var kl = kosar.toString().length;
417  if (kl > 3) {
418    var j = Math.floor(kl / 3);
419    var vegosszeg = "";
420    for (var nn = 0; nn < j; nn++) {
421      vegosszeg =
422        "." +
423        kosar.toString().substring(kl - 3 * nn, kl - 3 * (nn + 1)) +
424        vegosszeg;
425    }
426    if (kl - j * 3 != 0) {
427      vegosszeg = kosar.toString().substring(0, kl - j * 3) + vegosszeg;
428    } else {
429      vegosszeg = vegosszeg.substring(1, vegosszeg.length);
430    }
431  }
432  $("#kosar_ertek").html("<strong>" + vegosszeg + " Ft</strong>");
433}
434
435function billing(sam, addr, toa1, toa2 = "", toa3 = "", toa4 = "") {
436  if ($("#" + sam).prop("checked")) {
437    $("#" + addr).slideUp("fast", "linear", function () {
438      $("#" + toa1).val("megegyezik");
439      if (toa2 != "") {
440        $("#" + toa2).val("megegyezik");
441      }
442      if (toa3 != "") {
443        $("#" + toa3).val("megegyezik");
444      }
445      if (toa4 != "") {
446        $("#" + toa4).val("megegyezik");
447      }
448    });
449  } else {
450    $("#" + addr).slideDown();
451    $("#" + toa1).val("");
452    if (toa2 != "") {
453      $("#" + toa2).val("");
454    }
455    if (toa3 != "") {
456      $("#" + toa3).val("");
457    }
458    if (toa4 != "") {
459      $("#" + toa4).val("");
460    }
461  }
462}
463
464function shipping(
465  sam,
466  addr,
467  toa1 = "",
468  toa2 = "",
469  toa3 = "",
470  toa4 = "",
471  shs = "",
472) {
473  if ($("#" + sam).prop("checked")) {
474    $("#" + addr).slideDown();
475    if ($("#shippingpartner").length <= 0) {
476      if (toa1 != "") {
477        $("#" + toa1).val("");
478      }
479      if (toa2 != "") {
480        $("#" + toa2).val("");
481      }
482      if (toa3 != "") {
483        $("#" + toa3).val("");
484      }
485      if (toa4 != "") {
486        $("#" + toa4).val("");
487      }
488    }
489    if (shs != "") {
490      if ($("#" + shs).prop("checked")) {
491        $("#" + shs).trigger("click");
492      }
493    }
494  } else {
495    $("#" + addr).slideUp("fast", "linear", function () {
496      if (toa1 != "") {
497        $("#" + toa1).val($("#" + toa1).attr("data-value"));
498      }
499      if (toa2 != "") {
500        $("#" + toa2).val($("#" + toa2).attr("data-value"));
501      }
502      if (toa3 != "") {
503        $("#" + toa3).val($("#" + toa3).attr("data-value"));
504      }
505      if (toa4 != "") {
506        $("#" + toa4).val($("#" + toa4).attr("data-value"));
507      }
508    });
509  }
510}
511
512function goToHash() {
513  if (location.hash) {
514    setTimeout(function () {
515      window.scrollTo(0, 0);
516    }, 10);
517    var sht = $(location.hash).position().top;
518    $("html, body").animate({ scrollTop: sht - 100 }, 1000);
519  }
520}
521
522var bemutatkozoshowed = false;
523
524$(document).ready(function () {
525  horgonyDel();
526  fixMenu();
527  setVideoResp();
528  hirekResize();
529  hideBox();
530  showBox();
531  hamburgerMenu();
532  heroCardResize();
533  szovegMore();
534  goToHash();
535
536  if ($(".partnerek").length > 0 || $(".cikk").length == 1) {
537    $("#content").css("padding-bottom", 0);
538  }
539
540  if ($(window).outerWidth() > MOBIL && $(".gordulo").length > 0) {
541    szuroOpen();
542    termekOpen();
543  }
544
545  //zöld energia
546  if ($(".zold-energia").length > 0) {
547    myTimer();
548    var ggmy = setInterval(myTimer, 1000);
549  }
550
551  function horgonyDel() {
552    if ($(".horgony-cont").length > 0) {
553      $(".horgony-cont").remove();
554    }
555  }
556
557  function setVideoResp() {
558    if ($("iframe").length > 0) {
559      for (var i = 0; i < $("iframe").length; i++) {
560        if (typeof $("iframe").eq(i).attr("src") != "undefined") {
561          if ($("iframe").eq(i).attr("src").indexOf("youtu") > -1) {
562            var vwf = false;
563            if ($("iframe").eq(i).parent("p").css("text-align") == "center") {
564              vwf = true;
565            }
566
567            $("iframe").eq(i).wrap('<div class="video-wrapper">');
568            var iwf = $("iframe").eq(i).attr("width");
569            var ihf = $("iframe").eq(i).attr("height");
570            if (vwf) {
571              $("iframe").eq(i).parent(".video-wrapper").css({
572                left: "50%",
573                transform: "translateX(-50%)",
574              });
575            }
576            $("iframe").eq(i).css({
577              "max-width": iwf,
578              "max-height": ihf,
579            });
580            $("iframe")
581              .eq(i)
582              .parent(".video-wrapper")
583              .wrap('<div class="video-cont-wrap">');
584            $("iframe").eq(i).parent(".video-wrapper").css({
585              "max-width": iwf,
586              "max-height": ihf,
587            });
588            $("iframe")
589              .eq(i)
590              .parent(".video-wrapper")
591              .parent(".video-cont-wrap")
592              .css({
593                "max-height": ihf,
594              });
595            $("iframe").eq(i).removeAttr("height", "");
596            $("iframe").eq(i).removeAttr("width", "");
597          }
598        }
599      }
600    }
601  }
602
603  function showScrollup() {
604    if ($(window).scrollTop() > 200) {
605      $("#scrollup").css("right", 10);
606    } else {
607      $("#scrollup").css("right", -50);
608    }
609  }
610
611  $("#scrollup").on("click", function () {
612    $("body,html").animate({ scrollTop: 0 }, 500);
613  });
614
615  function hideBox() {
616    $(".bemutatkozo-item").css({ opacity: 0, transform: "scale(1.1)" });
617  }
618  function showEQBox(i, maxi) {
619    if (i + 1 == maxi) {
620      $(".bemutatkozo-item")
621        .eq(i)
622        .animate({ opacity: 1 }, 200, function () {
623          $(".bemutatkozo-item").eq(i).css("transform", "scale(1)");
624        });
625    } else {
626      $(".bemutatkozo-item")
627        .eq(i)
628        .animate({ opacity: 1 }, 200, function () {
629          $(".bemutatkozo-item").eq(i).css("transform", "scale(1)");
630          showEQBox(i + 1, maxi);
631        });
632    }
633  }
634  function showBox() {
635    if ($(".bemutatkozo-item").length > 0 && !bemutatkozoshowed) {
636      if (
637        $(".bemutatkozo-item").eq(0).position().top <=
638        $(window).scrollTop() + $(window).outerHeight()
639      ) {
640        bemutatkozoshowed = true;
641        showEQBox(0, $(".bemutatkozo-item").length);
642      }
643    }
644  }
645
646  function szovegMore() {
647    $(".termek").css("transition", "none");
648    $(".termek").css("min-height", 0);
649
650    $(".secondblock:not(.opcio_item .secondblock)").css("height", 0);
651
652    if ($(window).innerWidth() > KISFELBONTAS) {
653      $(".termek_szoveg_more").remove();
654      $(".termek_szoveg").attr("style", "");
655      $(".termek_opciok").css("display", "none");
656      $(".opcio_menu i").removeClass("fa-chevron-up");
657      $(".opcio_menu i").removeClass("fa-chevron-down");
658      $(".opcio_menu i").addClass("fa-chevron-down");
659      moreGenerated = false;
660    }
661    $(".focsoport").attr("style", "");
662    $(".termek_szoveg table").css("width", "auto");
663    var mx = 0;
664
665    if ($(".termek").hasClass("lista")) {
666      $(".focsoport").css("margin", "20px 0px");
667    }
668
669    if (
670      $(window).innerWidth() > KISFELBONTAS &&
671      !$(".termek").hasClass("lista")
672    ) {
673      for (var i = 0; i < $(".termek").length; i++) {
674        if (
675          $(".termek:eq(" + i + ") .firstblock").hasClass("nopic") ||
676          $(".termek:eq(" + i + ")").hasClass("oszlop3") ||
677          $(".termek:eq(" + i + ")").hasClass("oszlop4")
678        ) {
679          $(
680            ".termek:eq(" + i + ") .secondblock:not(.opcio_item .secondblock)",
681          ).css("max-width", "100%");
682        } else {
683          $(
684            ".termek:eq(" + i + ") .secondblock:not(.opcio_item .secondblock)",
685          ).css(
686            "max-width",
687            $(".termek").eq(i).innerWidth() -
688              $(".termek:eq(" + i + ") .firstblock").outerWidth() -
689              10,
690          );
691        }
692
693        if ($(".termek").eq(i).innerHeight() + 36 > mx) {
694          mx = $(".termek").eq(i).innerHeight() + 36;
695        }
696      }
697
698      $(".termek").css("min-height", mx);
699    }
700    for (var i = 0; i < $(".termek").length; i++) {
701      if (
702        $(window).innerWidth() > KISFELBONTAS &&
703        !$(".termek").hasClass("lista")
704      ) {
705        var sx = 0;
706        var bx = 50;
707        if ($(".termek").hasClass("oszlop3")) {
708          bx = 40;
709        } else if ($(".termek").hasClass("oszlop4")) {
710          bx = 35;
711        }
712        if (
713          $(".termek:eq(" + i + ") .secondblock:eq(0)").siblings(".opcio_menu")
714            .length > 0
715        ) {
716          sx +=
717            bx *
718            $(".termek:eq(" + i + ") .secondblock:eq(0)").siblings(
719              ".opcio_menu",
720            ).length;
721        }
722        if (
723          $(".termek:eq(" + i + ") .secondblock:eq(0)").siblings(
724            ".konfigurator_menu",
725          ).length > 0
726        ) {
727          sx += bx;
728        }
729
730        if (
731          ($(".termek").hasClass("oszlop3") ||
732            $(".termek").hasClass("oszlop4")) &&
733          !$(".termek:eq(" + i + ") .firstblock:eq(0)").hasClass("nopic") &&
734          $(".termek:eq(" + i + ") .firstblock").length > 0
735        ) {
736          sx += $(".termek:eq(" + i + ") .firstblock:eq(0)").outerHeight();
737        } else if (
738          $(".termek").hasClass("oszlop3") ||
739          $(".termek").hasClass("oszlop4")
740        ) {
741          sx -= 10;
742        }
743
744        $(".termek:eq(" + i + ") .secondblock:eq(0)").css("height", mx - sx);
745
746        var ttx = 0;
747        ttx +=
748          $(
749            ".termek:eq(" + i + ") .secondblock:eq(0) .termek_nev",
750          ).innerHeight() +
751          parseInt(
752            $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_nev").css(
753              "margin-bottom",
754            ),
755          );
756        if (
757          $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_ar_cont").length >
758          0
759        ) {
760          ttx += $(
761            ".termek:eq(" + i + ") .secondblock:eq(0) .termek_ar_cont",
762          ).innerHeight();
763        }
764        if (
765          $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_kepesseg")
766            .length > 0
767        ) {
768          ttx += $(
769            ".termek:eq(" + i + ") .secondblock:eq(0) .termek_kepesseg",
770          ).innerHeight();
771        }
772        if (
773          $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_fajlok").length >
774          0
775        ) {
776          ttx += $(
777            ".termek:eq(" + i + ") .secondblock:eq(0) .termek_fajlok",
778          ).innerHeight();
779          ttx +=
780            parseInt(
781              $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_fajlok")
782                .children()
783                .css("margin-top"),
784            ) * 2;
785        }
786        ttx += 36;
787
788        $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_szoveg").css(
789          "height",
790          mx - sx - ttx,
791        );
792      }
793      if (!moreGenerated) {
794        if (
795          $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_szoveg")
796            .children()
797            .outerHeight() +
798            20 >
799            $(
800              ".termek:eq(" + i + ") .secondblock:eq(0) .termek_szoveg",
801            ).outerHeight() &&
802          !$(".termek").hasClass("lista")
803        ) {
804          $(".termek:eq(" + i + ") .secondblock:eq(0) .termek_szoveg").after(
805            '<div class="termek_szoveg_more" style="">Bővebben <i class="fas fa-chevron-down"></i></div>',
806          );
807        }
808      }
809    }
810    moreGenerated = true;
811    $(".termek").css("transition", "0.3s all");
812  }
813
814  function hirekResize() {
815    if ($(window).outerWidth() > MOBIL) {
816      if ($(".hirek-half").length > 1) {
817        var maxheight = 0;
818        $(".hirek-half").attr("style", "");
819        for (var i = 0; i < $(".hirek-half").length; i++) {
820          if ($(".hirek-half").eq(i).innerHeight() > maxheight) {
821            maxheight = $(".hirek-half").eq(i).innerHeight();
822          }
823        }
824        $(".hirek-half").css("height", maxheight);
825      }
826    } else {
827      $(".hirek-half").attr("style", "");
828    }
829  }
830
831  $(window).on("scroll", function () {
832    fixMenu();
833    showBox();
834    showScrollup();
835  });
836
837  $(window).on("resize", function () {
838    hirekResize();
839    setOpcioHeight();
840    hamburgerMenu();
841    heroCardResize();
842    szovegMore();
843  });
844
845  $(document).on("click", "a", function (e) {
846    if (
847      $(this).attr("href") != "" &&
848      typeof $(this).attr("href") != "undefined"
849    ) {
850      if (
851        $(this).attr("href").substring(0, 1) == "#" &&
852        $(this).attr("href") != "#"
853      ) {
854        e.preventDefault();
855        if ($(this).attr("class") != "search-button") {
856          var sht = $($(this).attr("href")).position().top;
857          $("html, body").animate({ scrollTop: sht - 100 }, 1000);
858        }
859      }
860    }
861  });
862
863  function heroCardResize() {
864    if ($(".card").length > 0 && $(window).outerWidth() < 1200) {
865      var cw = $(".card").eq(0).outerWidth();
866      $(".card").css("height", cw);
867    }
868  }
869
870  function hambXEffect() {
871    $(".hamb-row").css("postition", "absolute");
872    $(".hamb-row:eq(0)").css({
873      "margin-top": "-4px",
874      opacity: 0,
875    });
876    $(".hamb-row:eq(1)").css({
877      transform: "rotate(45deg)",
878      "margin-top": 4,
879      "margin-left": "-1px",
880      width: 25,
881    });
882    $(".hamb-row:eq(2)").css({
883      transform: "rotate(-45deg)",
884      "margin-left": "-2px",
885      "margin-top": "-7px",
886      width: 25,
887    });
888  }
889
890  function hambRowEffect() {
891    $(".hamb-row:eq(0)").css({
892      "margin-top": "0",
893      opacity: 1,
894    });
895    $(".hamb-row:eq(1)").css({
896      transform: "rotate(0deg)",
897      "margin-top": 0,
898      "margin-left": 0,
899      width: 40,
900    });
901    $(".hamb-row:eq(2)").css({
902      transform: "rotate(0deg)",
903      "margin-left": 0,
904      "margin-top": "0px",
905      width: 40,
906    });
907    setTimeout(function () {
908      $(".hamb-row").css("postition", "relative");
909    }, 400);
910  }
911
912  $(document).on("click", "#hamburger", function () {
913    if ($("#mobil-menu").css("left") == "-260px") {
914      $("#mobil-menu").animate({ left: 0 }, 500);
915      $("body").css("overflow", "hidden");
916      $("#content").prepend('<div class="szurke">');
917      hambXEffect();
918    } else {
919      $("#mobil-menu").animate({ left: "-260px" }, 500);
920      $("body").css("overflow", "auto");
921      $(".szurke").remove();
922      $(".loginbox").hide();
923      $(".search-bar").hide();
924      $(".loginbutton li").html($(".loginbutton li").attr("data-text"));
925      $(".search-button").html('<i class="fas fa-search left"></i>');
926      hambRowEffect();
927    }
928  });
929
930  $(document).on("click", ".termek_szoveg_more", function () {
931    if ($(this).children(".fa-chevron-down").length > 0) {
932      $(this)
933        .siblings(".termek_szoveg")
934        .css("min-height", $(this).siblings(".termek_szoveg").css("height"));
935      $(this).siblings(".termek_szoveg").css("height", "auto");
936      $(this).html('Kevesebb <i class="fas fa-chevron-up"></i>');
937      $(this).css("margin-top", 0);
938    } else {
939      $(this)
940        .siblings(".termek_szoveg")
941        .css("height", $(this).siblings(".termek_szoveg").css("min-height"));
942      $(this).html('Bővebben <i class="fas fa-chevron-down"></i>');
943      $(this).attr("style", "");
944    }
945  });
946
947  $(document).on("click", ".opcio_szoveg_more", function () {
948    if ($(this).children(".fa-chevron-down").length > 0) {
949      var ih = $(this).siblings(".opcio_szoveg").find("div").innerHeight();
950      //$(this).siblings(".opcio_szoveg").css("height", ih);
951      $(this).siblings(".opcio_szoveg").css("height", "auto");
952      $(this).html('Kevesebb <i class="fas fa-chevron-up"></i>');
953    } else {
954      $(this).siblings(".opcio_szoveg").removeAttr("style");
955      $(this).html('Bővebben <i class="fas fa-chevron-down"></i>');
956    }
957  });
958
959  $(document).on("click", ".szurke", function () {
960    $("#mobil-menu").animate({ left: "-260px" }, 500);
961    $("body").css("overflow", "auto");
962    $(".szurke").remove();
963    $(".loginbox").hide();
964    $(".search-bar").hide();
965    $(".loginbutton li").html($(".loginbutton li").attr("data-text"));
966    $(".search-button").html('<i class="fas fa-search left"></i>');
967    hambRowEffect();
968  });
969
970  $(document).on("mouseover", ".js-marquee-wrapper", function () {
971    $(this).css("animation-play-state", "paused");
972  });
973  $(document).on("mouseout", ".js-marquee-wrapper", function () {
974    $(this).css("animation-play-state", "running");
975  });
976
977  $(document).on("click", ".search-button", function (e) {
978    e.preventDefault();
979    if ($(".search-bar").css("display") == "none") {
980      $(".search-bar").slideDown(200);
981      $(".search-button").html('<i class="far fa-times-circle"></i>');
982      $(".loginbox").slideUp(200);
983      $(".loginbutton li").html($(".loginbutton li").attr("data-text"));
984      $(this)
985        .siblings(".search-bar")
986        .children("form")
987        .children("input[name=search]")
988        .focus();
989    } else {
990      $(".search-bar").slideUp(200);
991      $(".search-button").html('<i class="fas fa-search left"></i>');
992    }
993  });
994
995  $(".konfigurator_menu").on("click", function () {
996    if ($(this).children(".fa-chevron-up").length > 0) {
997      $(this).children(".fa-chevron-up").addClass("fa-chevron-down");
998      $(this).children(".fa-chevron-up").removeClass("fa-chevron-up");
999    } else {
1000      $(this).children(".fa-chevron-down").addClass("fa-chevron-up");
1001      $(this).children(".fa-chevron-down").removeClass("fa-chevron-down");
1002      var knf = $(this).attr("data-id").replace("konf", "");
1003      calculateKonfig(knf);
1004    }
1005    $(this).siblings(".termek_konfigurator").slideToggle();
1006  });
1007
1008  $(".opcio_menu").on("click", function () {
1009    if ($(this).children(".fa-chevron-up").length > 0) {
1010      $(this).children(".fa-chevron-up").addClass("fa-chevron-down");
1011      $(this).children(".fa-chevron-up").removeClass("fa-chevron-up");
1012    } else {
1013      $(this).children(".fa-chevron-down").addClass("fa-chevron-up");
1014      $(this).children(".fa-chevron-down").removeClass("fa-chevron-down");
1015      var did = $(this).attr("data-id");
1016
1017      setTimeout(function () {
1018        setOpcioHeightFix(did);
1019        $("#" + did)
1020          .find(".opcio_szoveg_more")
1021          .remove();
1022        $("#" + did)
1023          .find(".opcio_item .opcio_szoveg")
1024          .removeAttr("style");
1025        for (var j = 0; j < $("#" + did).find(".opcio_item").length; j++) {
1026          var ih = $("#" + did)
1027            .find(".opcio_item")
1028            .eq(j)
1029            .find(".opcio_szoveg")
1030            .innerHeight();
1031          var jh = $("#" + did)
1032            .find(".opcio_item")
1033            .eq(j)
1034            .find(".opcio_szoveg div")
1035            .innerHeight();
1036          if (ih < jh) {
1037            $("#" + did)
1038              .find(".opcio_item")
1039              .eq(j)
1040              .find(".opcio_szoveg")
1041              .after(
1042                '<div class="opcio_szoveg_more" style="">Bővebben <i class="fas fa-chevron-down"></i></div>',
1043              );
1044          }
1045        }
1046      }, 500);
1047    }
1048    var did = $(this).attr("data-id");
1049    $(this)
1050      .siblings(".termek_opciok#" + did)
1051      .slideToggle();
1052  });
1053
1054  $(document).on("click", ".loginbutton", function (e) {
1055    e.preventDefault();
1056    if ($(".loginbox").css("display") == "none") {
1057      $(".loginbox").slideDown(200);
1058      $(".loginbutton li").html($(".loginbutton li").attr("data-cancel"));
1059      $(".search-bar").slideUp(200);
1060      $(".search-button").html('<i class="fas fa-search left"></i>');
1061    } else {
1062      $(".loginbox").slideUp(200);
1063      $(".loginbutton li").html($(".loginbutton li").attr("data-text"));
1064    }
1065  });
1066
1067  var tooltipshow = false;
1068  var termekid_tooltip = "";
1069  $(document).on("mousemove", function (event) {
1070    if (tooltipshow) {
1071      $(".termek_ar_tooltip").css({
1072        left: Math.abs(
1073          $("#" + termekid_tooltip).position().left - event.pageX + 10,
1074        ),
1075        top: Math.abs(
1076          $("#" + termekid_tooltip).position().top - event.pageY + 10,
1077        ),
1078      });
1079    }
1080  });
1081
1082  $(".termek_ar_cont").on("mouseover", function () {
1083    tooltipshow = true;
1084    $(this).children(".termek_ar_tooltip").css({
1085      display: "block",
1086    });
1087    termekid_tooltip = $(this).parents(".termek").attr("id");
1088  });
1089  $(".termek_ar_cont").on("mouseout", function () {
1090    $(this).children(".termek_ar_tooltip").css({
1091      display: "none",
1092    });
1093    tooltipshow = false;
1094  });
1095
1096  var signin = false;
1097
1098  $(document).on("submit", ".loginform", function (e) {
1099    e.preventDefault();
1100    if (!signin) {
1101      if (
1102        $(".loginform .input_field[name=username]").val().trim() != "" &&
1103        $(".loginform .input_field[name=pass]").val().trim() != ""
1104      ) {
1105        signin = true;
1106        var dt = new FormData();
1107        dt.append(
1108          "username",
1109          $(".loginform .input_field[name=username]").val().trim(),
1110        );
1111        dt.append("pass", $(".loginform .input_field[name=pass]").val().trim());
1112        dt.append(
1113          "logintoken",
1114          $(".loginform input[name=logintoken]").val().trim(),
1115        );
1116        $.ajax({
1117          url: "/login.php",
1118          type: "POST",
1119          data: dt,
1120          contentType: false,
1121          cache: false,
1122          processData: false,
1123          success: function (data) {
1124            signin = false;
1125            if (data == "ok") {
1126              location.reload();
1127            } else if (data == "error:token") {
1128              location.reload();
1129            } else if (data == "error:status") {
1130              swal(
1131                "A profil nincs aktiválva!",
1132                "Kérjük, aktiválja profilját az emailben kapott aktivációs link segítségével.",
1133                "error",
1134              );
1135            } else {
1136              swal("Hibás felhasználónév vagy jelszó!", "", "error");
1137            }
1138          },
1139        });
1140      } else {
1141        swal("Minden mező kitöltése kötelező!", "", "warning");
1142      }
1143    }
1144  });
1145
1146  $(document).on("keyup", ".search-bar .input_field", function () {
1147    $(".search-bar .input_field").val($(this).val());
1148  });
1149  $(document).on("keyup", ".input_field_search", function () {
1150    $(".input_field_search").val($(this).val());
1151  });
1152
1153  $(document).on("keyup", ".loginbox input[name=username]", function () {
1154    $(".loginbox input[name=username]").val($(this).val());
1155  });
1156  $(document).on("keyup", ".loginbox input[name=pass]", function () {
1157    $(".loginbox input[name=pass]").val($(this).val());
1158  });
1159
1160  var kereses = false;
1161  $(document).on("submit", ".search-bar form", function (e) {
1162    if (!kereses) {
1163      e.preventDefault();
1164      var ker = $(this).children(".input_field_search").val().trim();
1165      if (ker.length < 3) {
1166        swal(
1167          "A keresendő kifejezés legalább 3 karakter hosszú legyen!",
1168          "",
1169          "warning",
1170        );
1171      } else {
1172        kereses = true;
1173        $(this).submit();
1174      }
1175    }
1176  });
1177
1178  function szuroOpen() {
1179    $("#szuro").slideDown();
1180    $("#szuro_button .fas").addClass("fa-chevron-up");
1181    $("#szuro_button .fas").removeClass("fa-chevron-down");
1182  }
1183  function szuroClose() {
1184    $("#szuro").slideUp();
1185    $("#szuro_button .fas").addClass("fa-chevron-down");
1186    $("#szuro_button .fas").removeClass("fa-chevron-up");
1187  }
1188  function termekOpen() {
1189    $(".gordulo").slideDown();
1190    $(".gordulo_button .fas").addClass("fa-chevron-up");
1191    $(".gordulo_button .fas").removeClass("fa-chevron-down");
1192  }
1193  function termekClose() {
1194    $(".gordulo").slideUp();
1195    $(".gordulo_button .fas").addClass("fa-chevron-down");
1196    $(".gordulo_button .fas").removeClass("fa-chevron-up");
1197  }
1198  function termekOpenT(tt) {
1199    tt.slideDown();
1200    tt.parent()
1201      .children(".gordulo_button")
1202      .children(".fas")
1203      .addClass("fa-chevron-up");
1204    tt.parent()
1205      .children(".gordulo_button")
1206      .children(".fas")
1207      .removeClass("fa-chevron-down");
1208  }
1209  function termekCloseT(tt) {
1210    tt.slideUp();
1211    tt.parent()
1212      .children(".gordulo_button")
1213      .children(".fas")
1214      .addClass("fa-chevron-down");
1215    tt.parent()
1216      .children(".gordulo_button")
1217      .children(".fas")
1218      .removeClass("fa-chevron-up");
1219  }
1220
1221  $("#szuro_button").on("click", function () {
1222    if ($("#szuro").css("display") == "none") {
1223      szuroOpen();
1224    } else {
1225      szuroClose();
1226    }
1227  });
1228
1229  $(".gordulo_button").on("click", function () {
1230    if ($(this).parent().children(".gordulo").css("display") == "none") {
1231      termekOpenT($(this).parent().children(".gordulo"));
1232    } else {
1233      termekCloseT($(this).parent().children(".gordulo"));
1234    }
1235  });
1236
1237  $(".hero-box").on("click", function () {
1238    window.location.href = $(this).children(".hero-box-link").val();
1239  });
1240});
1241
1242$(document).on("click", "a.just_registered", function (e) {
1243  e.preventDefault();
1244  swal("A fájl csak regisztrált felhasználóknak érhető el!", "", "warning");
1245});
1246function setLightbox() {
1247  var rndd = Math.random() * 1000;
1248  for (var j = 0; j < $("#content ").find("a[rel^=lightbox]").length; j++) {
1249    var hr = $("#content ")
1250      .find("a[rel^=lightbox]")
1251      .eq(j)
1252      .attr("href")
1253      .toLowerCase();
1254    if (
1255      hr.indexOf(".jpg") > -1 ||
1256      hr.indexOf(".jpeg") > -1 ||
1257      hr.indexOf(".png") > -1
1258    ) {
1259      var lb = $("#content ")
1260        .find("a[rel^=lightbox]")
1261        .eq(j)
1262        .attr("data-lightbox");
1263      if (typeof lb == "undefined") {
1264        $("#content ")
1265          .find("a[rel^=lightbox]")
1266          .eq(j)
1267          .attr("data-lightbox", "ligthbox-" + rndd);
1268      }
1269    }
1270  }
1271}
1272setLightbox();

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.