Show HN: Notes.cx – A simple, anonymous online notepad \w Markdown support
notes.cx
notes.cx
Enter this into your browser’s address bar:
data:text/html, <html contenteditable>
https://twitter.com/philshem/status/1420282427969318916?s=20and with focus
data:text/html, <html style=" max-width: 64ch;margin: auto;font-size: calc(1rem + 1vw);line-height: 1.4;font-family: monospace;padding: calc(1rem + 4vw);"><body contenteditable><script>document.addEventListener("DOMContentLoaded", () => {document.body.focus()})</script>
https://twitter.com/getflourish/status/1420308275422285830?s... data:text/html, <html contenteditable><head><title>ScratchPad</title><style>body{font-family:monospace}</style></head>
I like having the title so I can see it in the tab and the font setting makes cutting/pasting code look better.Chrome app: https://chrome.google.com/webstore/detail/stackedit/iiooodel...
Live demo of stackedit: https://stackedit.io/app#
That is not true. Markdown has nothing to do with being online.
Edit: Updated styles. Clarified what it is.
I took another stab at it and this is what I ended up with: https://gist.github.com/honmanyau/5680d1c7b823d454122a0275ba...
It's now a Gist because I only realised later that the original note will be deleted after 24 hours.
There are now two mechanisms that persist data between sessions:
1. Auto-saving to localStorage every 5000 ms (adjustable as per the instructions). 2. Manual data saving/download implemented using an anchor element that triggers a download. We can now restore markdown by loading a downloaded file (in principle this should work for any plain text file).
One important thing to note here is that localStorage doesn't work in private browsing mode and its behaviour is not entirely consistent between browsers. So I wouldn't rely too much on it!
If you are still interested, it can be found here: https://gist.github.com/honmanyau/5680d1c7b823d454122a0275ba...
Though I did think of an option to make the expiry selectable with an option, say, for 2 days.
If you just need a dead simeple notepad that also works offline, check out https://notepad.js.org
1 suggestion - make a Created (published) note optionally editable... so when the note is originally being edited there is a checkbox to allow it to be editable or not, so once it's published, it's fixed in space and time...
The viewer of an uneditable note can have a button to "Edit a Copy" of the note to create their own version of it and publish it under their own URL, but they can't edit the content of the original one.
NOW you've got yourself a forever tool here.
The thought of that has held me back from a couple of ideas I've had that allowed for public anonymous text.
(btw, I don't want to get into a discussion about if moderation is needed)
That said, I'd love to hear what others think on this subject as well.
Feature request: a keyboard shortcut to save or "create", because I'm lazy and scrolling down and clicking create is just too much :)
Nice project!
Discussed here if not more recently: https://news.ycombinator.com/item?id=18307747