It is broken for now because I keep getting the thing to crash browsers hardcore. And while that is funny to see happen, it is not the desired goal of this project.
Okay, woot. I got the gathered random-enough entropy passing through some SHA-3 functions and into the Salsa20 stream cipher. Here is an example of the whole thing in action. Does this have crypto-level security? IDUNNOLOL! I would like to see somebody prove that it doesn't. That would be hard though.
I had to put in a lot of work just to wrap my head around the principles of this and figuring out a good way to gather decent entropy from the start was probably the first toughest bit. The next toughest bit will be rigging up the output of this script to some sort of more rigorous statistical analysis methods. I am half tempted to go full monte with this and make my own toy random pool sorta like /dev/urandom here.
I split up a photo collection that was originally all shoved into one big HTML document trying to load like 150+ fullsize images at once and having to scale them all to fit boundaries too.
Anyway, this is actually usable when split up in to simpler, smaller, and generally less unreasonable to even try and load in even the smartest web browser.
Most importantly, I hope this serves as a rudimentary example of a minimalist paginated/segmented image gallery.