Created
June 5, 2015 07:37
-
-
Save anshulguleria/e010013a503762b84227 to your computer and use it in GitHub Desktop.
Light box kind of script. Dims the page color for better reading
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
var mine = document.createElement('div'); | |
mine.style.position = "fixed"; | |
mine.style.left = 0; mine.style.top = 0; | |
mine.style.right = 0; mine.style.bottom = 0; | |
mine.style.background = "rgba(0,0,0,0.4)" | |
mine.style.zIndex = -1; | |
document.body.appendChild(mine); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment