Joined April 2019
·

cr8s

Hacker at Crates Media
Hacker
Crates Media
·
NYC
·
·
·

Posted to One line browser notepad 5 months ago

How about, instead of using LocalStorage to keep the same copy open, adding the ability to e-mail the notes to yourself? This is a little better if you don't want to just keep the same notes open all the time.

Here's my version. I'm a little biased, but I think it's the best. Make sure to change your e-mail address in the snippet from email@example.com to whatever your personal address is.

data:text/html;charset=utf-8,<title>In-Browser Text Editor</title><style>body%7Bbackground%3A%23123%3Bcolor%3A%23333%3Bpadding%3A20px%3Bmargin%3A0%2520auto%3Bwidth%3A90%25%7Dtextarea%7Bbackground%3A%23fbfbfb%3Bborder%3A0%3Bcolor%3A%23333%3Bfont-family%3Asans-serif%3Bfont-size%3A2rem%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%28max-width%3A768px%29%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 d=new Date();var t=d.toDateString()+' '+d.toLocaleTimeString();var%20a="mailto:email@example.com?subject="+escape("In-browser%20Notes " + t)+"&body="+escape(document.getElementById("TE").value);window.location.href=a};var d=new Date();var t=d.toDateString()+' '+d.toLocaleTimeString();var x = document.getElementById("TE"); x.innerHTML=t+'\n\n';</script>
Achievements
1 Karma
0 Total ProTip Views