added photoswipe library

This commit is contained in:
nooahe committed 2022-12-30 11:40:47 +01:00
1 parent 5b4cc9d83b
commit 522e01979f
8 files changed
+8675 -3

No files matched your search

+13 -1
View File
@@ -194,11 +194,23 @@ function ideeAnzeigen(data) {
inhaltErstellen.appendChild(inhaltInhalt);
inhaltErstellen.classList.add("ideeInhalt");
/*
<div class="pswp-gallery pswp-gallery--single-column" id="gallery--getting-started">
<a href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/7/img-2500.jpg"
data-pswp-width="1875"
data-pswp-height="2500"
data-cropped="true"
target="_blank">
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/7/img-200.jpg" alt="" />
</a>
</div> */
if(data.bild != null && data.bild != ""){
let bildContainer = $("<div>").addClass("ImgContainer");
let imgUrlArr = JSON.parse(data.bild);
for (let i = 0; i < imgUrlArr.length; i++) {
//let img = $("<img>").addClass("previewImage");
+10
View File
@@ -0,0 +1,10 @@
import PhotoSwipeLightbox from '/js/photoswipe-lightbox.esm.js';
import PhotoSwipe from '/js/photoswipe.esm.js';
const lightbox = new PhotoSwipeLightbox({
gallery: '#gallery--getting-started',
children: 'a',
pswpModule: PhotoSwipe
});
lightbox.init();
-1
View File
@@ -1 +0,0 @@
File diff suppressed because it is too large. Load diff
+6390
View File
File diff suppressed because it is too large. Load diff