From 11281825358a1a2a83c9715e53e00924f7281e26 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 1 Dec 2018 20:52:38 +0000 Subject: [PATCH] Customize lightgallery and use all plugins --- scripts/build.sh | 2 +- static/src/js/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 3f9bcc9..1152f39 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -15,7 +15,7 @@ cp -r $BASEDIR/node_modules/@fortawesome/fontawesome-free/css/all.min.css $STATI cp -r $BASEDIR/node_modules/@fortawesome/fontawesome-free/webfonts $STATIC_BUILD cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.js -cp $BASEDIR/node_modules/lightgallery/dist/js/lightgallery.js $STATIC_BUILD/js/lightgallery.js +cp $BASEDIR/node_modules/lightgallery/dist/js/lightgallery-all.min.js $STATIC_BUILD/js/lightgallery.js cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.js cp $BASEDIR/node_modules/mermaid/dist/mermaid.min.js $STATIC_BUILD/js/mermaid.js diff --git a/static/src/js/index.js b/static/src/js/index.js index 475445e..fdc6dff 100644 --- a/static/src/js/index.js +++ b/static/src/js/index.js @@ -26,10 +26,10 @@ $(document).ready(function() { waitFor($.fn, 'lightGallery', function() { $('#light-gallery').lightGallery({ thumbnail: true, - animateThumb: false, + animateThumb: true, showThumbByDefault: false, - preload: 2, download: false, + share: false, }); });