logoalt Hacker News

marcuskazlast Wednesday at 1:48 AM3 repliesview on HN

Here's a dead simple note "app" - it's a single html file using CSS and JavaScript, a whopping 62 lines. Uses content editable and localStorage.

Demo: https://mkaz.github.io/browser-pad/

Source: https://github.com/mkaz/browser-pad/ - though I suppose you can just view source on demo too


Replies

marcuskazlast Wednesday at 2:16 AM

You can also create a writing space in your browser using a data URL, paste the following into your address bar and boom! instant editor. You can bookmark it and will always be available.

``` data:text/html, <html contenteditable> ```

Plus bonus ephemeral, close the tab and your notes are gone with them. Here's an old post with examples using data URL adding style: https://news.ycombinator.com/item?id=6005295

unvalleylast Wednesday at 2:13 AM

That works too, for sure. I’ve paid special attention to certain features like how task creation works in Markdown with Ephe. Would love for you to give it a try.

show 1 reply
keb_last Wednesday at 2:00 AM

Nice one! Although it doesn't seem to save newlines on refresh.

show 1 reply