var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Console: function() { return navigator.userAgent.match(/Xbox|Playstation/i); }, smartTV: function() { return navigator.userAgent.match(/SMART-TV/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, MacOSX: function() { return navigator.userAgent.match(/Macintosh/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Console() || isMobile.smartTV() || isMobile.Windows()); } }; var embedded = "m"; if (!isMobile.any()){ embedded = "d"; } function g(t) { var e = new String("e"); e.width = "100%" e.height = "100%"; var r = embedded+"/jYSah52GhJaLtsPNysPVtYiRr5qFjq3A18nL2Y-fs4mVktvKhJGQmZu4xMLYhoOSh5mFg5Kd0sa4x8bhhYSShw__/w8KOiZbLq46Lm4GEl5ChhIOXiZ2EgLen"; n = "https://".concat(t, "/player"), a = "".concat(n, "/").concat(r), i = document.createElement("iframe"); i.setAttribute("src", a), i.setAttribute("scrolling", "no"), i.setAttribute("frameborder", "0"), i.setAttribute("allow", "autoplay; fullscreen"); var s = "allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"; loaded = true; return "function" == typeof document.hasStorageAccess && "function" == typeof document.requestStorageAccess && (s += " allow-storage-access-by-user-activation"), i.setAttribute("sandbox", s), e.width && i.setAttribute("width", String(e.width)), e.height && i.setAttribute("height", String(e.height)), i } var loaded = false; if (document.hidden){ }else{ var para3 = g("voodc.com"); document.getElementById("w8klen-embed").appendChild(para3); } document.addEventListener("visibilitychange", function() { if (document.hidden){ } else { if (loaded == false) { var para4 = g("voodc.com"); document.getElementById("w8klen-embed").appendChild(para4); loaded = true; } } });