Skip to content

Instantly share code, notes, and snippets.

@DeeprajPandey
Created October 11, 2019 11:51
Show Gist options
  • Save DeeprajPandey/6e36d4da7cabc613c2698f4f3315b625 to your computer and use it in GitHub Desktop.
Save DeeprajPandey/6e36d4da7cabc613c2698f4f3315b625 to your computer and use it in GitHub Desktop.
A simple in-browser notepad
data:text/html;charset=utf-8,<title>TextEditor</title><style>body%7Bbackground%3A%23fbfbfb%3Bcolor%3A%23808080%3Bmargin%3A0%2520auto%3Bwidth%3A50rem%7Dtextarea%7Bbackground%3A%23fbfbfb%3Bborder%3A0%3Bcolor%3A%23333%3Bfont-family%3Amonaco%3Bfont-size%3A.9rem%3Bheight%3A98%25%3Bline-height%3A1.4%3Bmargin%3A0%2520auto%3Boutline%3A0%3Bpadding%3A4rem%3Bwidth%3A100%25%7Dbutton%7Bbackground-color%3A%23fbfbfb%3Bborder%3A1px%2520%23ccc%2520solid%3Bcolor%3A%23999%3Bcursor%3Apointer%3Bfloat%3Aright%3Bmargin%3A10px%25200%3Bpadding%3A5px%252010px%7D%40media%2520(max-width%3A768px)%7Bbody%7Bwidth%3A100%25%3Bpadding%3A0%7Dtextarea%7Bpadding%3A10px%7Dbutton%7Bfloat%3Anone%7D%7D</style><body><button%20onclick="sM();%20return%20false">Email%20this</button><textarea%20contenteditable%20id=TE%20spellcheck=false%20placeholder=Write...%20autofocus></textarea><script>function%20sM(){var%20a="mailto:[email protected]?subject="+escape("In-browser%20Notes")+"&body="+escape(document.getElementById("TE").value);window.location.href=a};</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment