Live data from Hacker News

Show HN: Nash, I made a standalone note with single HTML file

keepworking.github.io

11–20 of 153 posts

Re: Show HN: Nash, I made a standalone note with single HTML file

#13
post #2

This uses HTML, CSS and JavaScript... but all in one file.

That's right. Exactly! I wanted the document to be edited without a separate editor.

I'm curious, somehow I remebered as JS not getting executed when opening a html file from filesystem, but clearly that isn't the case since this works. Did this change? Maybe I'm just misremembering

Re: Show HN: Nash, I made a standalone note with single HTML file

#14
post #13

Earlier quoted context omitted.

That's right. Exactly! I wanted the document to be edited without a separate editor.

I'm curious, somehow I remebered as JS not getting executed when opening a html file from filesystem, but clearly that isn't the case since this works. Did this change? Maybe I'm just misremembering

You are definitely misremembering, unless you are talking about external JS files on ancient MSIE versions I think.

Re: Show HN: Nash, I made a standalone note with single HTML file

#15
post #10

Is this similar to TiddlyWiki https://tiddlywiki.com/ ?

The HTML part of it perhaps but tiddlywiki is also about connecting ideas.

I think this focuses much more on the standalone HTML part of it.

In the same vein, one could also distribute P2P apps via a standalone HTML file by hooking it up via WebTorrent and using their STUN servers. Or at least, I know that it's possible in the past. Just an example, standalone HTML files can be fully fledged apps is my point.

Re: Show HN: Nash, I made a standalone note with single HTML file

#16

I still don't understand what is this even though I read all you wrote both here and on the web page.

The idea is you would write everything in the webpage, like. Google Doc. Then you can download that web page and share it with anyone anywhere and nearly everyone will be able to read it because it will open in a browser

Re: Show HN: Nash, I made a standalone note with single HTML file

#17
post #13

Earlier quoted context omitted.

That's right. Exactly! I wanted the document to be edited without a separate editor.

I'm curious, somehow I remebered as JS not getting executed when opening a html file from filesystem, but clearly that isn't the case since this works. Did this change? Maybe I'm just misremembering

If the JS is embedded within the HTML file it should’ve always worked, but when the HTML loads the JS file from somewhere else (that isn’t a relative path or a full URL that’s hosted somewhere else) it would usually fail, thus it wouldn’t work without running it through some kind of server that resolves the path

Re: Show HN: Nash, I made a standalone note with single HTML file

#18
This is cool. It's funny how we are (or maybe just I am) so used writing the JS parts of websites outside of the actual HTML that my first thought upon seeing this was "wow it's crazy that this can be done with just HTML". And then looking at the source and seeing all the JS in plain old script tags made me remember that that's a thing that you can do.
Post reply on HN