Skip to content

Instantly share code, notes, and snippets.

@f1729
Created July 23, 2018 01:51
Show Gist options
  • Save f1729/2c5944951129eec144b218282fc437f6 to your computer and use it in GitHub Desktop.
Save f1729/2c5944951129eec144b218282fc437f6 to your computer and use it in GitHub Desktop.
// 1
(function () {
const iframe = document.createElement('iframe');
iframe.style.cssText = 'position:absolute;top:0;left:0;width: 100vw;height:80vh;z-index:99999;overflow: hidden;background:#151414';
iframe.src = 'https://player.vimeo.com/video/197230029?api=1&player_id=player1&autoplay=true';
iframe.setAttribute('frameBorder', '0');
iframe.setAttribute('scrolling', 'no');
document.body.innerHTML= '';
document.body.setAttribute('style', 'display:block !important;background: #151414');
document.body.appendChild(iframe);
})();
// 2
(function () {
alert("Hola!!!");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment