added photoswipe library
This commit is contained in:
1 parent
5b4cc9d83b
commit
522e01979f
8 files changed
+8675
-3
No files matched your search
+13
-1
@@ -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");
|
||||
|
||||
@@ -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 +0,0 @@
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user