Created
September 22, 2016 22:32
-
-
Save esova-ana/743a55bee8a6c9f1def1438b3d546abd to your computer and use it in GitHub Desktop.
Enable Scrolling in RequireBin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector('.play-button').addEventListener('click', function (event) { | |
setTimeout(function () { | |
var iframe = document.querySelector('iframe') | |
var parent = iframe.parentElement | |
parent.removeChild(iframe) | |
iframe.setAttribute('scrolling', 'yes') | |
parent.appendChild(iframe) | |
}, 500) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment