Live data from Hacker News

Show HN: ~200 byte in-browser, no JS, private notepad

jjjjjjjjjjjjjjjjjjjj.github.io

21–30 of 75 posts

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#21

I wanted a place where I could write down my thoughts without them being stored in the cloud or connected to an account (notes, onenote, evernote, docs, paper, gist, etc). I don't really like terminal text editors, notepad, or IDEs for writing, so I made this very simple notepad. It's a html tag with the contenteditable attribute making it editable, and some . To save a note just store it on disk (cmd/ctrl+s). To add…

I'd love this and use it regularly if it supported Chrome and markdown syntax. I know it wouldn't be 200 bytes, but this is a pretty great idea.

tiddlywiki with a markdown plugin is something to look at if you like this idea

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#22

You can always type `data:text/html, ` on your browser :)

Wow, I did not know that we could create tiny "serverless" pages like that. I created this self referencing URL: `data:text/html, SO META This link's url is p = document.createElement("p");p.innerText = window.location.href;document.body.appendChild(p) ` The sad part is that 's are actually blocked from using data:text/html URLs. So we can still create tiny games and apps that can be copy/pasted in the address bar, b…

Maybe that’s a feature, not a bug.

If we can put the data in an image file a user could drag a cart into their address bar to load up a game. So we can pass around carts like images.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#25

You can always type `data:text/html, ` on your browser :)

Wow, I did not know that we could create tiny "serverless" pages like that. I created this self referencing URL: `data:text/html, SO META This link's url is p = document.createElement("p");p.innerText = window.location.href;document.body.appendChild(p) ` The sad part is that 's are actually blocked from using data:text/html URLs. So we can still create tiny games and apps that can be copy/pasted in the address bar, b…

You may not be able to to them, but you can certainly issue redirects to them, and to a URL that issues such a redirect.

You can also to a URL that issues a redirect to a location given by a GET parameter, eliminating the need to stand up a site for every different idea you come up with.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#26

It's a nice idea, but what is the advantage over windows notepad (or equivalent on other OSes)?

While the page doesn't use js, it is there for you to use. document.body.innerText += 'hello world/n';

    echo hello world >> file_in_notepad.txt
Although I'll admit that notepad's not as graceful about multiple programs editing files.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#27

You can always type `data:text/html, ` on your browser :)

I always liked this trick. Someone else made a version of JSFiddle using this and a few other bits as a code golf exercise that could be made into a bookmarklet, but I lost it.

Anyone know what I am talking about?

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#28

I wanted a place where I could write down my thoughts without them being stored in the cloud or connected to an account (notes, onenote, evernote, docs, paper, gist, etc). I don't really like terminal text editors, notepad, or IDEs for writing, so I made this very simple notepad. It's a html tag with the contenteditable attribute making it editable, and some . To save a note just store it on disk (cmd/ctrl+s). To add…

I think this is great. I did something similar, with a very simple IdeaStore webapp, where I can just throw an idea into words, have it get added to my ideabank, and I can reference it later. But the whole point is to not break my workflow from other projects.

Anyway, I know you said you don't like lots of different things, but you might actually find that you like BoostNote. I'd say give it a try, I think it's great.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#30

Earlier quoted context omitted.

Wow, I did not know that we could create tiny "serverless" pages like that. I created this self referencing URL: `data:text/html, SO META This link's url is p = document.createElement("p");p.innerText = window.location.href;document.body.appendChild(p) ` The sad part is that 's are actually blocked from using data:text/html URLs. So we can still create tiny games and apps that can be copy/pasted in the address bar, b…

You may not be able to to them, but you can certainly issue redirects to them, and to a URL that issues such a redirect. You can also to a URL that issues a redirect to a location given by a GET parameter, eliminating the need to stand up a site for every different idea you come up with.

That used to be possible [1], but it looks like redirection to a data url is blocked on current versions of Chrome and Firefox.

[1] http://indirection.modusponens.org/data:text/html,Hello,%20w...!

Post reply on HN