From b6fdb82ed0b5b635c0943098f3046581a02ead77 Mon Sep 17 00:00:00 2001 From: Dmitry Semenov Date: Wed, 5 Apr 2017 19:33:03 +0300 Subject: [PATCH] build (js) --- Gruntfile.js | 4 ++-- component.json | 2 +- dist/default-skin/default-skin.css | 3 +-- dist/photoswipe-ui-default.js | 4 ++-- dist/photoswipe-ui-default.min.js | 6 +++--- dist/photoswipe.css | 3 ++- dist/photoswipe.js | 24 ++++++++++++++++++++---- dist/photoswipe.min.js | 6 +++--- package.json | 2 +- photoswipe.json | 2 +- website/index.html | 2 +- 11 files changed, 37 insertions(+), 21 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f374e2691..a636cbf7f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -140,10 +140,10 @@ module.exports = function(grunt) { 'dist/photoswipe.min.js': ['dist/photoswipe.js'], 'dist/photoswipe-ui-default.min.js': ['dist/photoswipe-ui-default.js'] }, - preserveComments: 'some' + preserveComments: /^!/i }, options: { - preserveComments: 'some' + preserveComments: /^!/i } }, diff --git a/component.json b/component.json index 1dbf7fec3..64757c408 100644 --- a/component.json +++ b/component.json @@ -3,7 +3,7 @@ "repository": "dimsemenov/PhotoSwipe", "description": "JavaScript gallery", "main": "dist/photoswipe.js", - "version": "4.1.1", + "version": "4.1.2", "keywords": [ "gallery", "lightbox", diff --git a/dist/default-skin/default-skin.css b/dist/default-skin/default-skin.css index f99db1be6..c96163266 100644 --- a/dist/default-skin/default-skin.css +++ b/dist/default-skin/default-skin.css @@ -35,8 +35,7 @@ transition: opacity 0.2s; -webkit-box-shadow: none; box-shadow: none; } - .pswp__button:focus, - .pswp__button:hover { + .pswp__button:focus, .pswp__button:hover { opacity: 1; } .pswp__button:active { outline: none; diff --git a/dist/photoswipe-ui-default.js b/dist/photoswipe-ui-default.js index 7f3a71a0f..9799dd457 100644 --- a/dist/photoswipe-ui-default.js +++ b/dist/photoswipe-ui-default.js @@ -1,6 +1,6 @@ -/*! PhotoSwipe Default UI - 4.1.1 - 2015-12-24 +/*! PhotoSwipe Default UI - 4.1.2 - 2017-04-05 * http://photoswipe.com -* Copyright (c) 2015 Dmitry Semenov; */ +* Copyright (c) 2017 Dmitry Semenov; */ /** * * UI on top of main sliding area (caption, arrows, close button, etc.). diff --git a/dist/photoswipe-ui-default.min.js b/dist/photoswipe-ui-default.min.js index 64b19c3f3..79115c5fc 100644 --- a/dist/photoswipe-ui-default.min.js +++ b/dist/photoswipe-ui-default.min.js @@ -1,4 +1,4 @@ -/*! PhotoSwipe Default UI - 4.1.1 - 2015-12-24 +/*! PhotoSwipe Default UI - 4.1.2 - 2017-04-05 * http://photoswipe.com -* Copyright (c) 2015 Dmitry Semenov; */ -!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipeUI_Default=b()}(this,function(){"use strict";var a=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=this,w=!1,x=!0,y=!0,z={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(a,b){return a.title?(b.children[0].innerHTML=a.title,!0):(b.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return a.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return a.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},A=function(a){if(r)return!0;a=a||window.event,q.timeToIdle&&q.mouseUsed&&!k&&K();for(var c,d,e=a.target||a.srcElement,f=e.getAttribute("class")||"",g=0;g-1&&(c.onTap(),d=!0);if(d){a.stopPropagation&&a.stopPropagation(),r=!0;var h=b.features.isOldAndroid?600:30;s=setTimeout(function(){r=!1},h)}},B=function(){return!a.likelyTouchDevice||q.mouseUsed||screen.width>q.fitControlsWidth},C=function(a,c,d){b[(d?"add":"remove")+"Class"](a,"pswp__"+c)},D=function(){var a=1===q.getNumItemsFn();a!==p&&(C(d,"ui--one-slide",a),p=a)},E=function(){C(i,"share-modal--hidden",y)},F=function(){return y=!y,y?(b.removeClass(i,"pswp__share-modal--fade-in"),setTimeout(function(){y&&E()},300)):(E(),setTimeout(function(){y||b.addClass(i,"pswp__share-modal--fade-in")},30)),y||H(),!1},G=function(b){b=b||window.event;var c=b.target||b.srcElement;return a.shout("shareLinkClick",b,c),c.href?c.hasAttribute("download")?!0:(window.open(c.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),y||F(),!1):!1},H=function(){for(var a,b,c,d,e,f="",g=0;g