Entire website in a single HTML file
191–200 of 333 posts
Re: Entire website in a single HTML file
#192Earlier quoted context omitted.
The problem with PDF's has always been the layman can't create them without some expensive Adobe program.
This is categorically false. There have always been other tools for producing PDF (E.g. TeX) and there are also tons of free converters, print-to-PDF drivers, etc.
Re: Entire website in a single HTML file
#193Earlier quoted context omitted.
It makes sense from a DRM standpoint - PDFs and ePub are easy to crack if you offer it at all, so the only way to fix this is to go web-only and assume nobody will want to dig into turning that into a sharable PDF. Bonus points if you make it a SaaS test platform and get universities to buy into it, forcing every student to purchase the 'book' to receive grades.
> Bonus points if you make it a SaaS test platform and get universities to buy into it Surely this exists already? It's good and obvious an idea to not be taken already.
Re: Entire website in a single HTML file
#194Earlier quoted context omitted.
A decade ago we have this niche vBulletin forum where members would self-publish news article regarding the hobby. vBulletin BBCode is pretty limited, but then the admin started to add more and more styling support via custom BBCode. At one point we were able to create "interactive" content entirely in our heavily customized BBCode without a single line of JS, and this #target is one of the more used tricks.
That sounds like a pretty cool BBCode hack (and ultra-permissive by the admin considering...admins), I'd like to see it in action in 10-years-ago form.
But people made big “clubs” and then created these really cool semi-interactive posts using just CSS. It was really awesome what people can do.
Re: Entire website in a single HTML file
#195Re: Entire website in a single HTML file
#196Anyone here absolutely godsmacked that this is the top news on HN? The hell happened? Did I get cryogenically frozen and just woke up?
I had the same reaction. It would be like telling someone who has been using an IDE: did you know you can compile your code from the command line? And having that person genuinely be blown away.
Re: Entire website in a single HTML file
#197So to sum what I'm reading, it's a neat little demonstration of the :target pseudoclass. But: - No, the entire website isn't a single HTML file (it's also images and a CSS file) - So no, you can't download a single file and have it work offline - And no, this won't work well with screenreaders and other non-standard clients - And no, this doesn't scale well to larger sites - And no, this won't be indexed well by sear…
Edit: I just read tyingq's explanation. Is there anything else?
Re: Entire website in a single HTML file
#198My gut instinct is that these CSS tricks may be bad for accessibility. Does anyone know how well a screen reader would deal with it?
i recently read that display:none elements are hidden from screen readers
Re: Entire website in a single HTML file
#199HTML and CSS alone are really powerful. I decided not to use any JS on my personal site, but you can still have: + collapsible sections with `details` and `summary`[0] + footnotes, with navigation to/from with anchor tags. You can even apply CSS on the currently selected footnote.[1] + Semantic web that is compatible with everything and has sensible defaults so you can focus on what you're actually doing! + Tiny depl…
I have never understood why footnotes are added to the bottom when we have an interactive medium available at hand? Why not leverage and to show them in-place without breaking the flow and without listing them all at bottom? See your comment as an example. Why list all links at the bottom rather than in-place?
Re: Entire website in a single HTML file
#200Earlier quoted context omitted.
> HTML and CSS alone are really powerful https://html.energy/
> Written in pure, raw HTML. Can you feel the energy? Has several CSS files (one 2.5 Kb) and a 13Kb minified js file ( https://www.statcounter.com/counter/counter.js ) that does... something related to user tracking. I don't get it.