From cc6c60688eb92f09066db4e4e8020481bc5988ba Mon Sep 17 00:00:00 2001 From: Maxim Kukushkin Date: Sun, 27 Mar 2022 19:28:21 +0100 Subject: [PATCH 1/2] Added support of caption in case the photos need extended description, like a comment --- README.md | 2 ++ index.html | 4 +++- scss/swipebox.scss | 11 ++++++++--- src/css/swipebox.css | 12 ++++++++---- src/css/swipebox.min.css | 2 +- src/js/jquery.swipebox.js | 31 +++++++++++++++++++++++++------ src/js/jquery.swipebox.min.js | 2 +- 7 files changed, 48 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index aad6e779..51aa9b4e 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,8 @@ loopAtEnd: false, // true will return to the first image after the last image is autoplayVideos: false // true will autoplay Youtube and Vimeo videos queryStringData: {} // plain object with custom query string arguments to pass/override for video URLs, toggleClassOnLoad: '' // CSS class that can be toggled when the slide will be loaded (like 'hidden' of Bootstrap) +titleAttribute: 'title' // attribute to take the image title from +captionAttribute: 'data-caption' // attribute to take the image caption from useSVG: true nextSlide: function(){} // called on next slide, works for next button, arrow keys and touch navigation prevSlide: function(){} // called on previous slide, works for previous button, arrow keys and touch navigation diff --git a/index.html b/index.html index 151eaba5..03e18a6e 100644 --- a/index.html +++ b/index.html @@ -61,7 +61,7 @@

Swipebox.