Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jamesona
Created April 17, 2015 14:09
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 jamesona/8c4d9f10ad5a1d5bd26a to your computer and use it in GitHub Desktop.
Save jamesona/8c4d9f10ad5a1d5bd26a to your computer and use it in GitHub Desktop.
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