1var mediaqueryMobile = window.matchMedia("(max-width: 767px)"); 2var mediaqueryTablet = window.matchMedia("(max-width: 1023px)"); 3 4$(document).ready(function () { 5 // If It is add the iframe with params get the params and add to src 6 if ($("#iframeparams").length > 0) { 7 const urlParams = new URLSearchParams(window.location.search); 8 if (urlParams.has("s")) { 9 if(location.search.includes('page.aspx&id')){ 10 var srcIframe = location.search.replace("page.aspx&id", "page.aspx?id"); 11 } 12 else{ 13 var srcIframe = location.search.replace("page.aspx&QS", "page.aspx?QS"); 14 } 15 srcIframe = srcIframe.replace("?s=", ""); 16 $("#iframeparams").find("iframe").attr("src", srcIframe); 17 } 18 } 19 20 altoIframeMobile(); 21 22 23}); 24$(window).resize(function () { 25 $('.iframe').each(function () { 26 altoIframe($(this)); 27 }) 28 29}); 30function altoIframe(iframe) { 31 var altoFrame = 0; 32 if (mediaqueryMobile.matches) { 33 altoFrame = iframe.find("#heightMobile").val(); 34 } else if (mediaqueryTablet.matches) { 35 altoFrame = iframe.find("#heightTablet").val(); 36 } else { 37 altoFrame = iframe.find("#heightDesktop").val(); 38 } 39 iframe.find(".iframe-wrapper").find("iframe").height(altoFrame); 40} 41 42function altoIframeMobile() { 43 $('.iframe_model_desktop').removeClass("d-none"); 44 $('.iframe_model_mobile').addClass("d-none"); 45 $('.iframe_model_tablet').addClass("d-none"); 46 /*if ($(window).width() <= 500) { 47 $('.iframe_model_desktop').addClass("d-none"); 48 $('.iframe_model_tablet').addClass("d-none"); 49 $('.iframe_model_mobile').removeClass("d-none"); 50 } 51 52 if ($(window).width() > 500) { 53 if($(window).width() <= 768){ 54 $('.iframe_model_desktop').addClass("d-none"); 55 $('.iframe_model_mobile').addClass("d-none"); 56 $('.iframe_model_tablet').removeClass("d-none"); 57 } 58 59 }*/ 60 61} 62function loadScript() { 63 $('.cc08_html-V1').each(function () { 64 var scriptCc08 = $('#script-cc08', this).val(); 65 //var searchReview = scriptCc08.search('amplify'); 66 //if(scriptCc08 != null && searchReview != -1){ 67 $('#insert-cc08', this).append(scriptCc08); 68 //} 69 }); 70}; 71 72//loadScript(); 73$(window).bind('load', function (e) { 74 $('.iframe').each(function () { 75 altoIframe($(this)); 76 }) 77 //loadScriptB(); 78 //loadScript(); 79});
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.