1function order_checkout_init_countdown_redirection(delay, payment_redirection_el, countdown_sec_el, pay_onclick_attr, payment_is_popup = 0) { 2 let start_countdown = function() { 3 if (delay < 0) { 4 /* Ha felugró ablakos a fizetés (paylike), 5 akkor elÅtte visszahelyezzük a document flow-ba 6 a felugró visszaszámlálót 7 */ 8 if (payment_is_popup === 1) { 9 $(payment_redirection_el).removeClass('payment-redirection--countdown-popup'); 10 } else { 11 $(payment_redirection_el).addClass('payment-redirection--mask-forwarding-active'); 12 } 13 eval(pay_onclick_attr); 14 } else { 15 $(countdown_sec_el).html(delay); 16 delay = delay - 1; 17 setTimeout(start_countdown, 1000); 18 } 19 } 20 start_countdown(); 21} 22 23function order_checkout_init_postsale(delay, payment_redirection_el, order_key, pay_onclick_attr = 0, payment_is_popup = 0, countdown_redirection_delay = 0) { 24 delay *= 1000; 25 26 if (pay_onclick_attr !== 0) { 27 /* Ha bezárjuk a postsale ablakot, akkor elkezdjük a fizetés átirányÃtását (paylike-nál felugró van) */ 28 $(document).on("popupClosed", function (event, parameters) { 29 if (parameters["reason"] === "empty" && typeof countdown_redirection_delay !== "undefined" && countdown_redirection_delay > 0) { 30 $(payment_redirection_el).addClass("payment-redirection--countdown-popup"); 31 order_checkout_init_countdown_redirection(countdown_redirection_delay, payment_redirection_el, ".js-countdown-redirection-sec", pay_onclick_attr, payment_is_popup); 32 return; 33 } 34 35 if (payment_is_popup !== 1) { 36 /* amÃg átirányÃt addig felugrasztjuk a mask-ot az átirányÃtás szöveggel */ 37 $(payment_redirection_el).addClass('payment-redirection--mask-forwarding-active'); 38 } 39 40 eval(pay_onclick_attr); 41 }); 42 } 43 44 setTimeout(function () { 45 postsale_marketing_popup(order_key); 46 }, delay); 47}
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.