Show HN: Nash, I made a standalone note with single HTML file (opens in a new tab)keepworking.github.io
536 pointsHello 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 1 of 59
Turns out that it creates two representations of the PDF content - one is text, which has 0 opacity and another is prerendered image of the same layered on top of it. The latter is what's displayed. So while you can enable contenteditable and get the editing cursor, no changes you make will be shown. Oh, well.
https://news.ycombinator.com/item?id=43179649
This ends up feeling rather magical to the clients, because they don't need to go to an editing page to make changes before seeing what it will look like. They just literally edit the content in place on the page, and hit save to deploy it live.
Most of these sites are still in operation after 5-10 years and require almost zero maintenance on my end.
Under the hood it was about as shit as every other enterprise CMS of the era, but our users fucking loved it.
Most small site owners, such as remain these days - restuarants, small companies selling furniture, lawyers, whatever - they already have their third party sales platforms. They just want to be able to edit their own web content from time to time, without any learning curve.
I never tried to commercialize my CMS, it wouldn't even make sense to do so, since it's geared toward people who want to pay $200/year for hosting once their site is up and running. (I did charge them well for building, though). But the whole thing is maybe literally 5000 lines of PHP code and a few hundred lines of Javascript and CSS. It's just structured very cleverly to read/write pages in mysql, and it has a few bells and whistles like drag/drop photo uploading in place. Barely competent PHP coders could (and have) adapted it to their own needs after I left clients. One really doesn't need the bloated structure of WP to do this stuff, just a very skeletal frame.
A couple remaining examples of my CMS in action: https://thebarkerlounge.com https://vickmanassociates.com
ContentEditable first introduced in ie 5.5 in 2000, available in all major browsers in 2007.
The other 90% was all the backend code we had to write to properly synchronize edits across different browsers, each with their own bizarre suite of bugs in their contenteditable implementations :-)
I believe that a lot of problems can be converted into synchronization problems in browsers.
Are there any general synchronization libraries / applications that you suggest within browser / outside browser?
Thanks in advance.
[0]: https://yjs.dev/ [1]: https://automerge.org/
Continue this thread — 3 replies
Continue this thread — 1 reply