Created
November 8, 2015 03:25
-
-
Save reportbase/84d86fa8056b23fe5965 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
"<div id='parentdiv' style='display: block; position: absolute; left: 0; top: 0; z-index: 10'></div>"+ | |
"<div id='editdiv' contentEditable style='outline: 0px solid transparent; overflow: auto; display; z-index: 11'></div>"+ | |
parentdiv.appendChild(editdiv); | |
var left = (window.innerWidth - 320)/2; | |
var top = (window.innerHeight - 80)/2; | |
parentdiv.style.top = top+"px"; | |
parentdiv.style.left = left+"px"; | |
parentdiv.style.width = 320; | |
parentdiv.style.height = 80; | |
parentdiv.style.lineHeight = 80; | |
editdiv.style.height = "100%"; | |
editdiv.style.width = "100%"; | |
editdiv.style.fontSize = "60px"; | |
editdiv.style.backgroundColor="#000"; | |
editdiv.style.fontFamily = "Source Code Pro"; | |
editdiv.style.color = "#fff"; | |
editdiv.style.textAlign = "center"; | |
editdiv.style.verticalAlign = "middle"; | |
editdiv.style.textTransform = "uppercase"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment