Se abre en una pestaña nueva

Etiqueta: aida merlano

/* ---- video del evento: autoplay mudo tipo banner ---- */ (function () { function arranca() { var vids = document.querySelectorAll('video[data-tt-src]'); [].forEach.call(vids, function (v) { var start = function () { if (!v.getAttribute('src')) { v.setAttribute('src', v.getAttribute('data-tt-src')); v.load(); } v.muted = true; var p = v.play(); if (p && p.catch) p.catch(function () {}); }; if ('IntersectionObserver' in window) { new IntersectionObserver(function (es) { es.forEach(function (e) { if (e.isIntersecting) { start(); } else if (!v.paused) { v.pause(); } }); }, { threshold: 0.15, rootMargin: '200px 0px' }).observe(v); } else { start(); } }); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', arranca); } else { arranca(); } })();