Lurker News
Hello HN, I hope it will posted as well. I made a note in single html file. This does not require a separate membership or installation of the software, and if you download and modify an empty file, you can modify and read it at any time, regardless of online or offline. It can be shared through messengers such as Telegram, so it is also suitable to share contents with long articles and images. It is also possible to host and blog because it is static html file content.

Comments (143) 59 threads

Show all comments

Showing thread 45 of 59

mattl1 reply#
This uses HTML, CSS and JavaScript... but all in one file.
yevgenyhong2 replies#
That's right. Exactly!

I wanted the document to be edited without a separate editor.

mattl#
It’s a nice idea.. good job.
_def4 replies#
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
lifthrasiir#
You are definitely misremembering, unless you are talking about external JS files on ancient MSIE versions I think.
chrisldgk#
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
recursive#
script type="module" doesn't work from file systems. To my great annoyance. Other than that, I'm quite certain JS has worked from file systems since it existed.
yevgenyhong#
These days, local html seems to be running javascripts.

If you send html to Telegram, the preview will not run js when the recipient opens it. I think Android and IOS work differently.