var clientHeight = document.getElementsByTagName("video")[0].clientHeight; var clientWidth = document.getElementsByTagName("video")[0].offsetWidth; var t = document.getElementsByClassName('melhor')[0]; var wc = clientWidth, hc = clientHeight; if (hc == 0 && wc != 0) { console.log(hc); hc = document.getElementsByTagName("video")[0].clientHeight; } if (typeof w != 'string' || !w.endsWith('%')) { wc += 'px'; } if (typeof h != 'string' || !h.endsWith('%')) { hc += 'px'; } try { t.style.width = 300; t.style.height = 300; t.style.overflow = 'hidden'; t.style.position = 'relative'; t.style.background = '#000'; } catch (error) { } var i="https://www.xxxbr.bar/dp.png"; var l="https://www.xxxbr.bar/mobileport.html"; var l=false; function mybox(l, t, u) { ssserttio = document.createElement('IMG'); ssserttio.alt = 'jugar'; ssserttio.style.position = 'absolute'; ssserttio.style.border = '0'; ssserttio.style.cursor = 'pointer'; ssserttio.onload = function () { ssserttio.style.margin = '-' + 220 / 2 + 'px 0 0 -' + 200 / 2 + 'px'; ssserttio.style.left = '50%'; ssserttio.style.top = '50%'; ssserttio.style.setProperty ("width", "220px", "important"); ssserttio.style.setProperty ("height", "220px", "important"); }; ssserttio.src = u; if (l==false) return ssserttio; a = document.createElement('a'); a.target = '_blank'; a.href = l; a.appendChild(ssserttio); return a; } mybox = mybox(l, t, i); var mizz = document.getElementById("sexo"); mybox.onclick = function () { mizz.play(); mybox.style.visibility = 'hidden'; }; t.appendChild(mybox);