Saltar Aviso
'; elem.innerHTML = iframe; } } }); } }, 3500); /* Lazy */ var lazyIndex = 0; var lazys = document.querySelectorAll('[data-lazy]'); lazyCheck(); window.addEventListener("scroll", function(){ if(lazys.length > 0){ lazyCheck(); } }); function lazyCheck(){ lazys.forEach((element) => { var elemBottom = element.getBoundingClientRect().top - window.innerHeight - 50; if (elemBottom < 0) { var srcLazy = element.getAttribute("data-lazy"); element.setAttribute("src", srcLazy); element.removeAttribute("data-lazy"); element.setAttribute("data-lazy-ok",""); lazys = document.querySelectorAll('[data-lazy]'); } }); }; function lazyScriptCheck(){ var dataLazyScript = document.querySelectorAll("[data-lazy-script]"); if(dataLazyScript.length > 0){ dataLazyScript.forEach((element) => { var script = element.getAttribute("data-lazy-script"); element.setAttribute("src",script); element.removeAttribute("data-lazy-script"); }); } } if(document.querySelectorAll(".emprendedores-destacado-principal__live__right__player").length > 0){ var vid = document.querySelector(".emprendedores-destacado-principal__live__right__player").innerText; document.querySelector(".emprendedores-destacado-principal__live__right__player").innerHTML = '' }