0: https://css-tricks.com/video-screencasts/84-site-walkthrough...
Entire website in a single HTML file
131–140 of 333 posts
Re: Entire website in a single HTML file
#132Here's a todo app with no javascript (not my work:
https://www.mattzeunert.com/2017/10/30/javascript-free-todo-...
Re: Entire website in a single HTML file
#133HTML 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…
Re: Entire website in a single HTML file
#134This is something I've always wanted for virtual textbooks. A single .html file with all the JS, CSS, images as inline data blobs, etc. For most physics, math, CS, etc books, this should be possible. It would make it trivial to download the book for offline use and share it with others. Other than the raster images, the entire content of these types of books would probably fit in a couple MB of text. The use of #anch…
Re: Entire website in a single HTML file
#135HTML 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…
You like to live in hard mode. I like that.
Re: Entire website in a single HTML file
#136Re: Entire website in a single HTML file
#137HTML 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…
> HTML and CSS alone are really powerful https://html.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.
Re: Entire website in a single HTML file
#138Update: maybe element.scrollIntoView()? I'll investigate sometime later
Re: Entire website in a single HTML file
#139But:
- 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 search engines
- And no, you don't need this to avoid Javascript navigation (just use multiple HTML files)
Re: Entire website in a single HTML file
#140This is something I've always wanted for virtual textbooks. A single .html file with all the JS, CSS, images as inline data blobs, etc. For most physics, math, CS, etc books, this should be possible. It would make it trivial to download the book for offline use and share it with others. Other than the raster images, the entire content of these types of books would probably fit in a couple MB of text. The use of #anch…
You're describing PDF files, but unfortunately Adobe didn't invest much time or money into making them interactive with a scripting language.