From 9ace87e73d48497c940705ca6f30d92c450c7e1d Mon Sep 17 00:00:00 2001 From: Pavel Khoroshkov Date: Tue, 30 Jun 2020 00:40:50 +0300 Subject: [PATCH] Sizing bug fixes, image extensions option --- .gitignore | 6 +++++- README.md | 1 + demo/index.html | 6 +++--- jquery.viewbox.js | 49 +++++++++++++++++++++++++++---------------- jquery.viewbox.min.js | 2 +- viewbox.css | 16 ++++++++++++-- 6 files changed, 55 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 86c090e..d6db2e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ demo/images/Thumbs.db -.vscode \ No newline at end of file +.vscode +node_modules/ +package-lock.json +package.json +gulpfile.js \ No newline at end of file diff --git a/README.md b/README.md index 4e21f5b..79b1435 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ $(function(){ ,closeOnSideClick: true ,nextOnContentClick: false ,useGestures: true + ,imageExt: ['png','jpg','jpeg','webp','gif'] //to determine if a target url is an image file }); }); ``` diff --git a/demo/index.html b/demo/index.html index 506c790..3db667c 100644 --- a/demo/index.html +++ b/demo/index.html @@ -186,9 +186,9 @@

Custom events

© 2018 Pavel Khoroshkov   pgood.space - - - + + +