Created
April 17, 2015 14:09
-
-
Save jamesona/8c4d9f10ad5a1d5bd26a to your computer and use it in GitHub Desktop.
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 Prompt = function(prompt){ | |
var box = document.createElement('textarea'); | |
box.placeholder = prompt; | |
box.style.width = "30vw"; | |
box.style.height = "60vh"; | |
box.style.marginTop = "20vh"; | |
box.style.marginLeft = "35vw"; | |
box.style.position = "fixed"; | |
box.style.left = "0"; | |
box.style.top = "0"; | |
box.style.zIndex = "9999999"; | |
box.oninput = function(){ | |
box.parentNode.removeChild(box); | |
changed = true; | |
}; | |
document.body.appendChild(box); | |
return box; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment