Skip to content

Instantly share code, notes, and snippets.

@esova-ana
Created September 22, 2016 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esova-ana/743a55bee8a6c9f1def1438b3d546abd to your computer and use it in GitHub Desktop.
Save esova-ana/743a55bee8a6c9f1def1438b3d546abd to your computer and use it in GitHub Desktop.
Enable Scrolling in RequireBin
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