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

Earlier comments
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.

atmanactive3 replies#
I still don't understand what is this even though I read all you wrote both here and on the web page.
atmanactive#
Ok, after clicking around for 10 minutes I think I figured out what this is: it is a single-page WYSIWYG HTML editor with the ability to export either everything including itself, or just the HTML without the editor.

How is this useful? For quick writing and sharing of HTML files, but not the links, but the files themselves.
Very interesting,thank you.

aprilthird20211 reply#
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
venusenvy471 reply#
Would I be able to store and edit this type of note on Google Drive? I like to keep documents in the cloud so I can access and edit them from anywhere, like Google Docs. But I don't think Drive can actually open html files, despite working entirely inside the browser.
yevgenyhong#
On my dropbox, I was able to modify and share it on the web or apps. It was not saved.

When I opened html on the file app on my iPhone, js didn't run, so I could only see it
I don't think it's perfect in many ways.

vekatimest#
By 'note' I guess they mean rich text editor.
ekianjo#
Excellent little tool. Thank you for making it
fsfsd43535#
This is neat! Reminds me of the good old days of single-page websites. Now, if only it could automatically back itself up to the blockchain... just kidding (mostly).

Load more comments