diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 12:42:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 12:42:56 +0200 |
| commit | 631547a75142326a7c71bdf123e1475217a5ad73 (patch) | |
| tree | f3cfef6b3c5b42bf626fc823ddcf63b8dcf4cdbb /assets/js/lightbox.js | |
| parent | 77ccbe72fad5a4870185fff374f75471c16a9043 (diff) | |
| download | danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.tar.gz danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.zip | |
chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)
Diffstat (limited to 'assets/js/lightbox.js')
| -rw-r--r-- | assets/js/lightbox.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/assets/js/lightbox.js b/assets/js/lightbox.js deleted file mode 100644 index 81c3613..0000000 --- a/assets/js/lightbox.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * lightbox.js - * Photo lightbox initialization - */ - -(function() { - 'use strict'; - - if (typeof PhotoUtils === 'undefined') return; - - const photoGrid = document.querySelector('.photo-grid[data-lightbox="true"]'); - if (!photoGrid) return; - - const photoCards = photoGrid.querySelectorAll('.photo-card'); - const photosData = []; - - photoCards.forEach((card, index) => { - const figure = card.querySelector('figure'); - const img = card.querySelector('img'); - photosData.push({ - index, - src: figure.getAttribute('data-src') || img.src, - alt: figure.getAttribute('data-alt') || img.alt, - caption: figure.getAttribute('data-caption'), - location: figure.getAttribute('data-location'), - }); - }); - - // Initialize lightbox with PhotoUtils - PhotoUtils.initLightbox('.photo-grid', photosData); -})(); |
