@@ -55,7 +55,10 @@ <h2>Results Gallery</h2>
5555 < div id ="cat-gallery " class ="pswp-gallery ">
5656
5757 < h3 > Flux Pro Result</ h3 >
58- < span class ="image main "> < img src ="../images/cat_zoom/flux.png " alt ="Flux Pro " /> </ span >
58+ < span class ="image main "> < a href ="../images/cat_zoom/flux.png " data-pswp-width ="1392 " data-pswp-height ="752 " data-pswp-caption ="Flux Pro result with optimized configurations " target ="_blank ">
59+ < img src ="../images/cat_zoom/flux.png " alt ="Flux Pro " />
60+ </ a >
61+ </ span >
5962
6063 < h3 > Baseline Configurations</ h3 >
6164 < div class ="row ">
@@ -290,6 +293,10 @@ <h2>Generation Timings</h2>
290293 </ tbody >
291294 </ table >
292295 </ div >
296+ < ul class ="actions ">
297+ < li > < a href ="clay-rider.html " class ="button primary "> Next: Clay Rider</ a > </ li >
298+ < li > < a href ="intro.html " class ="button "> Intro</ a > </ li >
299+ </ ul >
293300 </ section >
294301
295302 </ div >
@@ -341,41 +348,6 @@ <h2>Menu</h2>
341348 < script src ="../assets/js/breakpoints.min.js "> </ script >
342349 < script src ="../assets/js/util.js "> </ script >
343350 < script src ="../assets/js/main.js "> </ script >
351+ < script type ="module " src ="../assets/js/photoswipe-init.js "> </ script >
344352 < script type ="module ">
345- import PhotoSwipeLightbox from 'https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.4.4/photoswipe-lightbox.esm.min.js' ;
346-
347- const options = {
348- gallery : '#cat-gallery' ,
349- children : 'a' ,
350- pswpModule : ( ) => import ( 'https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.4.4/photoswipe.esm.min.js' )
351- } ;
352-
353- const lightbox = new PhotoSwipeLightbox ( options ) ;
354-
355- // Add custom caption support
356- lightbox . on ( 'uiRegister' , function ( ) {
357- lightbox . pswp . ui . registerElement ( {
358- name : 'custom-caption' ,
359- order : 9 ,
360- isButton : false ,
361- appendTo : 'root' ,
362- html : 'Caption text' ,
363- onInit : ( el , pswp ) => {
364- lightbox . pswp . on ( 'change' , ( ) => {
365- const currSlideElement = lightbox . pswp . currSlide . data . element ;
366- let captionHTML = '' ;
367- if ( currSlideElement ) {
368- // Get caption from data-pswp-caption attribute
369- captionHTML = currSlideElement . getAttribute ( 'data-pswp-caption' ) ||
370- currSlideElement . querySelector ( 'img' ) . getAttribute ( 'alt' ) || '' ;
371- }
372- el . innerHTML = captionHTML ;
373- } ) ;
374- }
375- } ) ;
376- } ) ;
377-
378- lightbox . init ( ) ;
379- </ script >
380-
381353
0 commit comments