//disable_direct_params=true (function () { const windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if(windowWidth >= 768) return; const width = 468; const height = 60; const aspectRatio = width && height ? Math.round(100 / (width / height)) : 50; const parameters = {"Line1":"","Line2":"","CtaText":"","ContentType":"image"}; const append = []; const parent = document.getElementById("sas_placement1057"); if (!parent){ return; } let currentTime = new Date().getTime(); let domain = window.location.hostname; if (localStorage.getItem('desktop_sas_placement1057'+domain) && localStorage.getItem('desktop_sas_placement1057'+domain) >= currentTime) { parent.remove(); } if (typeof parameters.ContentType !== "undefined" && parameters.ContentType == 'iframe' && typeof append.iframeSrc !== "undefined" && !append.iframeSrc) { return; } function addCss(style) { let css = document.createElement("style"); css.appendChild(document.createTextNode(style)); document.getElementsByTagName("head")[0].appendChild(css); } let style = "#sas_placement1057 .sas-natives-single-container{position:fixed!important;left:0;bottom:0;width:100%;z-index:2147483647;margin:auto;display:block;" + "max-height:"+height+"px;}" + "@media (max-width: 767.95px){#sas_placement1057 .sas-natives-single-container{display:block}}" + "#sas_placement1057 .sas-natives-box-track{position:absolute;top:0;left:0;z-index:-1}" + "#sas_placement1057 .sas-natives-image-target{position:relative;display:block;margin:0 auto;max-width:"+width+"px;}" + "#sas_placement1057 .sas-natives-image-src{position:absolute;top:0;left:0;right:0;bottom:0;background:transparent no-repeat center center;background-size:cover;display:inline-block;margin:0;padding:0;overflow:hidden}" + "#sas_placement1057 .sas-natives-image-aspect{width:100%;" + "padding-top:"+aspectRatio+"%;" + "display:block}" + "#sas_placement1057 .sas-natives-close-btn{position:absolute;top:-19px;right:3px;width:25px;height:25px;background:#676767;filter:invert(1);z-index:33;border-radius:50%;padding:4px;color:#fff;cursor:pointer;}"; addCss(style); let placementHtml = '
' + ''; if (typeof parameters.ContentType !== "undefined" && parameters.ContentType == 'iframe') { placementHtml += ''; }else { placementHtml += '' + '' + '' + ''; } placementHtml += '
'; parent.innerHTML = placementHtml; Date.prototype.addHours = function (h) { this.setTime(this.getTime() + (h * 60 * 60 * 1000)); return this; }; let after12 = new Date().addHours(12).getTime(); let linkTarget = parent.querySelector('.sas-natives-image-target'); if (linkTarget){ linkTarget.addEventListener('click', (e) => { parent.remove(); localStorage.setItem('mob_sas_placement1057'+domain, after12); }); } let closeBtn = parent.querySelector('.sas-natives-close-btn'); if (closeBtn) { closeBtn.addEventListener('click', (e) => { e.preventDefault(); parent.remove(); localStorage.setItem('mob_sas_placement1057' + domain, after12); }); } })();