1(function() { 2 3 window.addEventListener("message", function (evt) { 4 if (evt.origin === 'https://localhost:44300' || evt.origin === 'https://www.pintiva.com' || evt.origin === 'https://www.pinwheel.us' ) { 5 if (evt.data.task != undefined && evt.data.value != undefined) { 6 if (evt.data.task == "scrolltop") { 7 var offset = $("[id^=donate_iframe_]").length > 0 ? $("[id^=donate_iframe_]").first().offset().top : 0; 8 if ($(".donate-area").width() > 768 && $("#donate_iframe_desktop").length > 0) { 9 offset = $("#donate_iframe_desktop").offset().top - 200; 10 } else if ($(".donate-area").width() <= 768 && $("#donate_iframe_mobile").length > 0) { 11 offset = $("#donate_iframe_mobile").offset().top - 150; 12 } else if ($("#donate_iframe_sustain").length > 0) { 13 offset = $("#donate_iframe_sustain").offset().top - 200 14 } 15 $("html, body").animate({ 16 scrollTop: offset - 150 17 }, 0); 18 } 19 else if (evt.data.task == "donateheight") { 20 var donateFormHeight = evt.data.value != undefined ? evt.data.value : $("[id^=donate_iframe_]").height(), $donateForms = $("[id^=donate_iframe_]"); 21 if (donateFormHeight && $donateForms.length > 0) { 22 $donateForms.each(function() { 23 $(this).height(donateFormHeight + 'px'); 24 }); 25 } 26 } 27 else if (evt.data.task == "resizeFrame") { 28 var fheight = evt.data.value != undefined ? evt.data.value : $("#rp_scroll_wrapper").height(); 29 if (fheight) { 30 $("#event-regform").height(fheight); 31 } 32 } 33 } 34 } 35 }, false); 36})();
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.