Browse Source

shuffle images

master
Cailean Finn 5 months ago
parent
commit
52ed87a967
  1. 4
      build.py
  2. 150
      public/gallery.html

4
build.py

@ -1,4 +1,5 @@
import os import os
import random
import markdown import markdown
import re import re
from jinja2 import Environment, FileSystemLoader from jinja2 import Environment, FileSystemLoader
@ -125,7 +126,8 @@ class Website:
if image_path.startswith("/images/."): if image_path.startswith("/images/."):
image_path = image_path.replace("/images/.", "/images") image_path = image_path.replace("/images/.", "/images")
self.all_images.append(image_path) self.all_images.append(image_path)
random.shuffle(self.all_images)
print(self.all_images)
html_output = template.render( html_output = template.render(
images=self.all_images images=self.all_images
) )

150
public/gallery.html

@ -34,157 +34,157 @@
<div id="image-gallery"> <div id="image-gallery">
<div class="image-container"></div> <div class="image-container"></div>
<img class="gallery-image" src="/images/aixbody.webp" loading="lazy"> <img class="gallery-image" src="/images/dwelling/d_dwelling_6.png" loading="lazy">
<img class="gallery-image" src="/images/beep.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling/dwelling-circle.png" loading="lazy">
<img class="gallery-image" src="/images/data.png" loading="lazy"> <img class="gallery-image" src="/images/latent-mirror/d_latent_02_small.png" loading="lazy">
<img class="gallery-image" src="/images/demo.jpg" loading="lazy"> <img class="gallery-image" src="/images/moloch/moloch_1.jpg" loading="lazy">
<img class="gallery-image" src="/images/dwelling.png" loading="lazy"> <img class="gallery-image" src="/images/undefined-panorama/d_undefined_4.png" loading="lazy">
<img class="gallery-image" src="/images/electronic-image.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_8.jpg" loading="lazy">
<img class="gallery-image" src="/images/latent-mirror.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_5.jpg" loading="lazy">
<img class="gallery-image" src="/images/moloch.png" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_3.png" loading="lazy">
<img class="gallery-image" src="/images/o-machine.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_3.jpg" loading="lazy">
<img class="gallery-image" src="/images/undefined-panorama.png" loading="lazy"> <img class="gallery-image" src="/images/beep.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/beep_multiple_agents.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/treadmill_flip.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/dev.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling/dwelling-dancer.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_1.png" loading="lazy"> <img class="gallery-image" src="/images/demo.jpg" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_2.jpg" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_climbing.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_3.jpg" loading="lazy"> <img class="gallery-image" src="/images/moloch/moloch_4.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_4.jpg" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_2.jpg" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_5.jpg" loading="lazy"> <img class="gallery-image" src="/images/dwelling/d_dwelling_10.JPEG" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_6.jpg" loading="lazy"> <img class="gallery-image" src="/images/o-machine.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_7.jpg" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_9.jpg" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_8.jpg" loading="lazy"> <img class="gallery-image" src="/images/undefined-panorama/d_undefined_2.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_9.jpg" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/walking.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/depth_sensor.gif" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_6.jpg" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/dm_scrambler.gif" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_8.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/dm_walker.gif" loading="lazy"> <img class="gallery-image" src="/images/dwelling/dwelling-32.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_climbing.gif" loading="lazy"> <img class="gallery-image" src="/images/website/lakitu.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_crawling.gif" loading="lazy"> <img class="gallery-image" src="/images/website/mario-sleep-up.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_error.gif" loading="lazy"> <img class="gallery-image" src="/images/website/skybox.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_walk.gif" loading="lazy"> <img class="gallery-image" src="/images/undefined-panorama.png" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/mid-banana.gif" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/depth_sensor.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/mid-getup.gif" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_error.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/mid-struggle.gif" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_4.jpg" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/stairs.gif" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_walk.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/treadmill_flip.gif" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/mid-banana.gif" loading="lazy">
<img class="gallery-image" src="/images/beauty-and-the-beep/gif/walking.gif" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_4.JPG" loading="lazy">
<img class="gallery-image" src="/images/data/d_data_1.webp" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/dm_scrambler.gif" loading="lazy">
<img class="gallery-image" src="/images/data/d_data_2.png" loading="lazy"> <img class="gallery-image" src="/images/data/d_data_2.png" loading="lazy">
<img class="gallery-image" src="/images/data/d_data_5.png" loading="lazy"> <img class="gallery-image" src="/images/favicon/favicon-cf-192x192.png" loading="lazy">
<img class="gallery-image" src="/images/data/d_data_7.png" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_9.png" loading="lazy">
<img class="gallery-image" src="/images/data/d_tsne-data.gif" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/dev.png" loading="lazy">
<img class="gallery-image" src="/images/dwelling/dwelling-31.png" loading="lazy"> <img class="gallery-image" src="/images/favicon/favicon-cf-32x32.png" loading="lazy">
<img class="gallery-image" src="/images/dwelling/dwelling-32.png" loading="lazy"> <img class="gallery-image" src="/images/data/d_data_1.webp" loading="lazy">
<img class="gallery-image" src="/images/dwelling/dwelling-circle.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling.png" loading="lazy">
<img class="gallery-image" src="/images/dwelling/dwelling-dancer.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_7.jpg" loading="lazy">
<img class="gallery-image" src="/images/dwelling/d_dwelling_10.JPEG" loading="lazy"> <img class="gallery-image" src="/images/latent-mirror/d_latent_6.png" loading="lazy">
<img class="gallery-image" src="/images/dwelling/d_dwelling_4.png" loading="lazy"> <img class="gallery-image" src="/images/moloch.png" loading="lazy">
<img class="gallery-image" src="/images/dwelling/d_dwelling_6.png" loading="lazy"> <img class="gallery-image" src="/images/moloch/moloch_3.png" loading="lazy">
<img class="gallery-image" src="/images/dwelling/d_dwelling_8.JPEG" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/mid-getup.gif" loading="lazy">
<img class="gallery-image" src="/images/dwelling/d_dwelling_9.JPEG" loading="lazy"> <img class="gallery-image" src="/images/latent-mirror/d_latent_4.png" loading="lazy">
<img class="gallery-image" src="/images/dwelling/d_monocular.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling/d_dwelling_4.png" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_1.png" loading="lazy"> <img class="gallery-image" src="/images/moloch/moloch_2.png" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_2.png" loading="lazy"> <img class="gallery-image" src="/images/latent-mirror/d_latent_03.png" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_3.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/intial_experimentation_crawling.gif" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_4.JPG" loading="lazy"> <img class="gallery-image" src="/images/data/d_data_5.png" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_6.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/stairs.gif" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_7.png" loading="lazy"> <img class="gallery-image" src="/images/data/d_tsne-data.gif" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_8.png" loading="lazy"> <img class="gallery-image" src="/images/latent-mirror/d_latent_01.png" loading="lazy">
<img class="gallery-image" src="/images/electronic-image/d_electronic-image_9.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling/d_dwelling_8.JPEG" loading="lazy">
<img class="gallery-image" src="/images/favicon/favicon-cf-192x192.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/dm_walker.gif" loading="lazy">
<img class="gallery-image" src="/images/favicon/favicon-cf-32x32.png" loading="lazy"> <img class="gallery-image" src="/images/undefined-panorama/d_undefined_5.png" loading="lazy">
<img class="gallery-image" src="/images/latent-mirror/d_latent_01.png" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_2.png" loading="lazy">
<img class="gallery-image" src="/images/latent-mirror/d_latent_02_small.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling/d_dwelling_9.JPEG" loading="lazy">
<img class="gallery-image" src="/images/latent-mirror/d_latent_03.png" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_6.png" loading="lazy">
<img class="gallery-image" src="/images/latent-mirror/d_latent_4.png" loading="lazy"> <img class="gallery-image" src="/images/latent-mirror.png" loading="lazy">
<img class="gallery-image" src="/images/latent-mirror/d_latent_5.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling/dwelling-31.png" loading="lazy">
<img class="gallery-image" src="/images/latent-mirror/d_latent_6.png" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_1.png" loading="lazy">
<img class="gallery-image" src="/images/moloch/moloch_1.jpg" loading="lazy"> <img class="gallery-image" src="/images/data/d_data_7.png" loading="lazy">
<img class="gallery-image" src="/images/moloch/moloch_2.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/beep_multiple_agents.png" loading="lazy">
<img class="gallery-image" src="/images/moloch/moloch_3.png" loading="lazy"> <img class="gallery-image" src="/images/dwelling/d_monocular.png" loading="lazy">
<img class="gallery-image" src="/images/moloch/moloch_4.png" loading="lazy"> <img class="gallery-image" src="/images/website/checker.png" loading="lazy">
<img class="gallery-image" src="/images/undefined-panorama/d_undefined_2.png" loading="lazy"> <img class="gallery-image" src="/images/latent-mirror/d_latent_5.png" loading="lazy">
<img class="gallery-image" src="/images/undefined-panorama/d_undefined_4.png" loading="lazy"> <img class="gallery-image" src="/images/electronic-image/d_electronic-image_7.png" loading="lazy">
<img class="gallery-image" src="/images/undefined-panorama/d_undefined_5.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/d_beep_1.png" loading="lazy">
<img class="gallery-image" src="/images/website/checker.png" loading="lazy"> <img class="gallery-image" src="/images/aixbody.webp" loading="lazy">
<img class="gallery-image" src="/images/website/lakitu.gif" loading="lazy"> <img class="gallery-image" src="/images/data.png" loading="lazy">
<img class="gallery-image" src="/images/website/mario-sleep-up.gif" loading="lazy"> <img class="gallery-image" src="/images/electronic-image.png" loading="lazy">
<img class="gallery-image" src="/images/website/skybox.png" loading="lazy"> <img class="gallery-image" src="/images/beauty-and-the-beep/gif/mid-struggle.gif" loading="lazy">
<div class="image-container"></div> <div class="image-container"></div>
</div> </div>

Loading…
Cancel
Save