Skip to content

Instantly share code, notes, and snippets.

@dilverdev
Created May 30, 2020 22:28
Show Gist options
  • Save dilverdev/bc2f80d0330c44c895a7902a28b6de45 to your computer and use it in GitHub Desktop.
Save dilverdev/bc2f80d0330c44c895a7902a28b6de45 to your computer and use it in GitHub Desktop.
Remove overlay
const removeOverlay = () => {
const overlay = document.getElementById('signwall-app')
overlay.remove()
const body = document.querySelector('body')
body.classList.remove('overflow-hidden')
body.style.overflow = 'scroll'
const html = document.querySelector('html')
html.classList.remove('overflow-hidden')
const content = document.querySelector('.story-content__nota-premium')
content.style.display = 'block'
}
removeOverlay()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment