gent_styleguide 2.9.2 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codeclimate.yml +51 -14
- package/CHANGELOG.md +15 -1
- package/CONTRIBUTING.md +8 -1
- package/README.md +23 -6
- package/build/styleguide/js/base-min.js +68 -1
- package/build/styleguide/js/breadcrumbs.binding-min.js +13 -1
- package/build/styleguide/js/breadcrumbs.functions-min.js +131 -1
- package/build/styleguide/js/button-drop-min.js +38 -1
- package/build/styleguide/js/button-drop.binding-min.js +13 -1
- package/build/styleguide/js/button-drop.functions-min.js +48 -1
- package/build/styleguide/js/gallery.binding-min.js +12 -1
- package/build/styleguide/js/gallery.functions-min.js +29 -1
- package/build/styleguide/js/hamburger-menu.binding-min.js +17 -1
- package/build/styleguide/js/hamburger-menu.functions-min.js +166 -1
- package/build/styleguide/js/header.binding-min.js +18 -1
- package/build/styleguide/js/header.functions-min.js +73 -1
- package/build/styleguide/js/input-date.binding-min.js +8 -1
- package/build/styleguide/js/input-date.functions-min.js +27 -1
- package/build/styleguide/js/input-multiselect-chosen.binding-min.js +31 -1
- package/build/styleguide/js/input-multiselect-chosen.functions-min.js +24 -1
- package/build/styleguide/js/teaser-collection.binding-min.js +14 -1
- package/build/styleguide/sass/00-settings/_vars.scss +2 -3
- package/build/styleguide/sass/01-mixins/grid/_default_classes.scss +8 -6
- package/build/styleguide/sass/01-mixins/grid/_mixins.scss +22 -20
- package/build/styleguide/sass/11-base/forms/_forms.scss +3 -0
- package/build/styleguide/sass/11-base/grid/_grid.scss +2 -2
- package/build/styleguide/sass/21-atoms/fieldset/_fieldset.scss +1 -1
- package/build/styleguide/sass/21-atoms/inputs/input-multiselect-chosen/_input-multiselect-chosen.scss +1 -1
- package/build/styleguide/sass/21-atoms/tag/_tag.scss +0 -5
- package/build/styleguide/sass/31-molecules/building-blocks/breadcrumbs/_breadcrumbs.scss +33 -37
- package/build/styleguide/sass/31-molecules/building-blocks/hamburger-menu/_hamburger-menu.scss +1 -1
- package/build/styleguide/sass/31-molecules/status-message/_status-message.scss +1 -0
- package/build/styleguide/sass/41-organisms/header/_header.scss +2 -2
- package/build/styleguide/sass/main_cli.scss +12 -11
- package/nbproject/private/private.properties +1 -0
- package/nbproject/private/private.xml +8 -0
- package/nbproject/project.properties +5 -0
- package/nbproject/project.xml +9 -0
- package/package.json +7 -9
- package/.github/ISSUE_TEMPLATE.md +0 -32
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -30
- package/.mdl.style.rb +0 -9
- package/.mdlrc +0 -1
- package/.travis.yml +0 -27
- package/build/styleguide/vendor/chosen-js/README.md +0 -47
- package/build/styleguide/vendor/chosen-js/chosen-sprite.png +0 -0
- package/build/styleguide/vendor/chosen-js/chosen-sprite@2x.png +0 -0
- package/build/styleguide/vendor/chosen-js/chosen.css +0 -490
- package/build/styleguide/vendor/chosen-js/chosen.jquery.js +0 -1349
- package/build/styleguide/vendor/chosen-js/chosen.jquery.min.js +0 -3
- package/build/styleguide/vendor/chosen-js/chosen.min.css +0 -11
- package/build/styleguide/vendor/chosen-js/chosen.proto.js +0 -1389
- package/build/styleguide/vendor/chosen-js/chosen.proto.min.js +0 -3
- package/build/styleguide/vendor/jquery/AUTHORS.txt +0 -301
- package/build/styleguide/vendor/jquery/LICENSE.txt +0 -36
- package/build/styleguide/vendor/jquery/README.md +0 -67
- package/build/styleguide/vendor/jquery/dist/core.js +0 -476
- package/build/styleguide/vendor/jquery/dist/jquery.js +0 -10253
- package/build/styleguide/vendor/jquery/dist/jquery.min.js +0 -4
- package/build/styleguide/vendor/jquery/dist/jquery.min.map +0 -1
- package/build/styleguide/vendor/jquery/dist/jquery.slim.js +0 -8160
- package/build/styleguide/vendor/jquery/dist/jquery.slim.min.js +0 -4
- package/build/styleguide/vendor/jquery/dist/jquery.slim.min.map +0 -1
- package/build/styleguide/vendor/jquery/external/sizzle/LICENSE.txt +0 -36
- package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.js +0 -2272
- package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.min.js +0 -3
- package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.min.map +0 -1
- package/build/styleguide/vendor/jquery/package.json +0 -97
- package/build/styleguide/vendor/jquery/src/.eslintrc.json +0 -5
- package/build/styleguide/vendor/jquery/src/ajax/jsonp.js +0 -102
- package/build/styleguide/vendor/jquery/src/ajax/load.js +0 -76
- package/build/styleguide/vendor/jquery/src/ajax/parseXML.js +0 -30
- package/build/styleguide/vendor/jquery/src/ajax/script.js +0 -77
- package/build/styleguide/vendor/jquery/src/ajax/var/location.js +0 -5
- package/build/styleguide/vendor/jquery/src/ajax/var/nonce.js +0 -7
- package/build/styleguide/vendor/jquery/src/ajax/var/rquery.js +0 -5
- package/build/styleguide/vendor/jquery/src/ajax/xhr.js +0 -169
- package/build/styleguide/vendor/jquery/src/ajax.js +0 -855
- package/build/styleguide/vendor/jquery/src/attributes/attr.js +0 -141
- package/build/styleguide/vendor/jquery/src/attributes/classes.js +0 -174
- package/build/styleguide/vendor/jquery/src/attributes/prop.js +0 -143
- package/build/styleguide/vendor/jquery/src/attributes/support.js +0 -33
- package/build/styleguide/vendor/jquery/src/attributes/val.js +0 -190
- package/build/styleguide/vendor/jquery/src/attributes.js +0 -13
- package/build/styleguide/vendor/jquery/src/callbacks.js +0 -234
- package/build/styleguide/vendor/jquery/src/core/DOMEval.js +0 -16
- package/build/styleguide/vendor/jquery/src/core/access.js +0 -70
- package/build/styleguide/vendor/jquery/src/core/init.js +0 -128
- package/build/styleguide/vendor/jquery/src/core/nodeName.js +0 -13
- package/build/styleguide/vendor/jquery/src/core/parseHTML.js +0 -65
- package/build/styleguide/vendor/jquery/src/core/ready-no-deferred.js +0 -96
- package/build/styleguide/vendor/jquery/src/core/ready.js +0 -86
- package/build/styleguide/vendor/jquery/src/core/readyException.js +0 -13
- package/build/styleguide/vendor/jquery/src/core/stripAndCollapse.js +0 -14
- package/build/styleguide/vendor/jquery/src/core/support.js +0 -20
- package/build/styleguide/vendor/jquery/src/core/var/rsingleTag.js +0 -6
- package/build/styleguide/vendor/jquery/src/core.js +0 -476
- package/build/styleguide/vendor/jquery/src/css/addGetHookIf.js +0 -26
- package/build/styleguide/vendor/jquery/src/css/adjustCSS.js +0 -71
- package/build/styleguide/vendor/jquery/src/css/curCSS.js +0 -65
- package/build/styleguide/vendor/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- package/build/styleguide/vendor/jquery/src/css/showHide.js +0 -105
- package/build/styleguide/vendor/jquery/src/css/support.js +0 -89
- package/build/styleguide/vendor/jquery/src/css/var/cssExpand.js +0 -5
- package/build/styleguide/vendor/jquery/src/css/var/getStyles.js +0 -17
- package/build/styleguide/vendor/jquery/src/css/var/isHiddenWithinTree.js +0 -34
- package/build/styleguide/vendor/jquery/src/css/var/rmargin.js +0 -5
- package/build/styleguide/vendor/jquery/src/css/var/rnumnonpx.js +0 -7
- package/build/styleguide/vendor/jquery/src/css/var/swap.js +0 -26
- package/build/styleguide/vendor/jquery/src/css.js +0 -438
- package/build/styleguide/vendor/jquery/src/data/Data.js +0 -161
- package/build/styleguide/vendor/jquery/src/data/var/acceptData.js +0 -19
- package/build/styleguide/vendor/jquery/src/data/var/dataPriv.js +0 -7
- package/build/styleguide/vendor/jquery/src/data/var/dataUser.js +0 -7
- package/build/styleguide/vendor/jquery/src/data.js +0 -179
- package/build/styleguide/vendor/jquery/src/deferred/exceptionHook.js +0 -21
- package/build/styleguide/vendor/jquery/src/deferred.js +0 -391
- package/build/styleguide/vendor/jquery/src/deprecated.js +0 -40
- package/build/styleguide/vendor/jquery/src/dimensions.js +0 -56
- package/build/styleguide/vendor/jquery/src/effects/Tween.js +0 -123
- package/build/styleguide/vendor/jquery/src/effects/animatedSelector.js +0 -15
- package/build/styleguide/vendor/jquery/src/effects.js +0 -699
- package/build/styleguide/vendor/jquery/src/event/ajax.js +0 -22
- package/build/styleguide/vendor/jquery/src/event/alias.js +0 -29
- package/build/styleguide/vendor/jquery/src/event/focusin.js +0 -55
- package/build/styleguide/vendor/jquery/src/event/support.js +0 -11
- package/build/styleguide/vendor/jquery/src/event/trigger.js +0 -185
- package/build/styleguide/vendor/jquery/src/event.js +0 -746
- package/build/styleguide/vendor/jquery/src/exports/amd.js +0 -26
- package/build/styleguide/vendor/jquery/src/exports/global.js +0 -34
- package/build/styleguide/vendor/jquery/src/jquery.js +0 -41
- package/build/styleguide/vendor/jquery/src/manipulation/_evalUrl.js +0 -23
- package/build/styleguide/vendor/jquery/src/manipulation/buildFragment.js +0 -104
- package/build/styleguide/vendor/jquery/src/manipulation/getAll.js +0 -32
- package/build/styleguide/vendor/jquery/src/manipulation/setGlobalEval.js +0 -22
- package/build/styleguide/vendor/jquery/src/manipulation/support.js +0 -35
- package/build/styleguide/vendor/jquery/src/manipulation/var/rcheckableType.js +0 -5
- package/build/styleguide/vendor/jquery/src/manipulation/var/rscriptType.js +0 -5
- package/build/styleguide/vendor/jquery/src/manipulation/var/rtagName.js +0 -5
- package/build/styleguide/vendor/jquery/src/manipulation/wrapMap.js +0 -29
- package/build/styleguide/vendor/jquery/src/manipulation.js +0 -488
- package/build/styleguide/vendor/jquery/src/offset.js +0 -229
- package/build/styleguide/vendor/jquery/src/queue/delay.js +0 -24
- package/build/styleguide/vendor/jquery/src/queue.js +0 -145
- package/build/styleguide/vendor/jquery/src/selector-native.js +0 -237
- package/build/styleguide/vendor/jquery/src/selector-sizzle.js +0 -19
- package/build/styleguide/vendor/jquery/src/selector.js +0 -3
- package/build/styleguide/vendor/jquery/src/serialize.js +0 -130
- package/build/styleguide/vendor/jquery/src/traversing/findFilter.js +0 -106
- package/build/styleguide/vendor/jquery/src/traversing/var/dir.js +0 -22
- package/build/styleguide/vendor/jquery/src/traversing/var/rneedsContext.js +0 -8
- package/build/styleguide/vendor/jquery/src/traversing/var/siblings.js +0 -17
- package/build/styleguide/vendor/jquery/src/traversing.js +0 -191
- package/build/styleguide/vendor/jquery/src/var/ObjectFunctionString.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/arr.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/class2type.js +0 -6
- package/build/styleguide/vendor/jquery/src/var/concat.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/document.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/documentElement.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/fnToString.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/getProto.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/hasOwn.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/indexOf.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/pnum.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/push.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/rcssNum.js +0 -9
- package/build/styleguide/vendor/jquery/src/var/rnothtmlwhite.js +0 -8
- package/build/styleguide/vendor/jquery/src/var/slice.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/support.js +0 -6
- package/build/styleguide/vendor/jquery/src/var/toString.js +0 -7
- package/build/styleguide/vendor/jquery/src/wrap.js +0 -77
- package/build/styleguide/vendor/lightgallery/.editorconfig +0 -16
- package/build/styleguide/vendor/lightgallery/.gitattributes +0 -1
- package/build/styleguide/vendor/lightgallery/.jscsrc +0 -7
- package/build/styleguide/vendor/lightgallery/.jshintrc +0 -18
- package/build/styleguide/vendor/lightgallery/.travis.yml +0 -9
- package/build/styleguide/vendor/lightgallery/Gruntfile.js +0 -208
- package/build/styleguide/vendor/lightgallery/LICENSE.md +0 -686
- package/build/styleguide/vendor/lightgallery/README.md +0 -191
- package/build/styleguide/vendor/lightgallery/contributing.md +0 -34
- package/build/styleguide/vendor/lightgallery/demo/img/1-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/1-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/1-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/1.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-1.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-13.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-2.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-4.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/index.html +0 -162
- package/build/styleguide/vendor/lightgallery/dist/css/lg-fb-comment-box.css +0 -57
- package/build/styleguide/vendor/lightgallery/dist/css/lg-fb-comment-box.min.css +0 -1
- package/build/styleguide/vendor/lightgallery/dist/css/lg-transitions.css +0 -779
- package/build/styleguide/vendor/lightgallery/dist/css/lg-transitions.min.css +0 -1
- package/build/styleguide/vendor/lightgallery/dist/css/lightgallery.css +0 -982
- package/build/styleguide/vendor/lightgallery/dist/css/lightgallery.min.css +0 -1
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.eot +0 -0
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.svg +0 -47
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.ttf +0 -0
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.woff +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/loading.gif +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/video-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/vimeo-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/youtube-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery-all.js +0 -3331
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery-all.min.js +0 -5
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery.js +0 -1364
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/lib/jquery.mousewheel.min.js +0 -8
- package/build/styleguide/vendor/lightgallery/lib/lg.png +0 -0
- package/build/styleguide/vendor/lightgallery/lib/picturefill.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/lightGallery.jquery.json +0 -27
- package/build/styleguide/vendor/lightgallery/modules/lg-autoplay.js +0 -206
- package/build/styleguide/vendor/lightgallery/modules/lg-autoplay.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-fullscreen.js +0 -116
- package/build/styleguide/vendor/lightgallery/modules/lg-fullscreen.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-hash.js +0 -101
- package/build/styleguide/vendor/lightgallery/modules/lg-hash.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-pager.js +0 -105
- package/build/styleguide/vendor/lightgallery/modules/lg-pager.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-share.js +0 -107
- package/build/styleguide/vendor/lightgallery/modules/lg-share.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-thumbnail.js +0 -478
- package/build/styleguide/vendor/lightgallery/modules/lg-thumbnail.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-video.js +0 -317
- package/build/styleguide/vendor/lightgallery/modules/lg-video.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-zoom.js +0 -527
- package/build/styleguide/vendor/lightgallery/modules/lg-zoom.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/package.json +0 -60
- package/build/styleguide/vendor/lightgallery/selection.json +0 -407
- package/build/styleguide/vendor/lightgallery/src/css/lg-fb-comment-box.css +0 -54
- package/build/styleguide/vendor/lightgallery/src/css/lg-fb-comment-box.css.map +0 -7
- package/build/styleguide/vendor/lightgallery/src/css/lg-transitions.css +0 -776
- package/build/styleguide/vendor/lightgallery/src/css/lg-transitions.css.map +0 -7
- package/build/styleguide/vendor/lightgallery/src/css/lightgallery.css +0 -979
- package/build/styleguide/vendor/lightgallery/src/css/lightgallery.css.map +0 -7
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.eot +0 -0
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.svg +0 -47
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.ttf +0 -0
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.woff +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/loading.gif +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/video-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/vimeo-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/youtube-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/src/js/.jshintrc +0 -22
- package/build/styleguide/vendor/lightgallery/src/js/lightgallery.js +0 -1342
- package/build/styleguide/vendor/lightgallery/src/sass/lg-animations.scss +0 -714
- package/build/styleguide/vendor/lightgallery/src/sass/lg-autoplay.scss +0 -36
- package/build/styleguide/vendor/lightgallery/src/sass/lg-core.scss +0 -272
- package/build/styleguide/vendor/lightgallery/src/sass/lg-fb-comment-box.scss +0 -52
- package/build/styleguide/vendor/lightgallery/src/sass/lg-fonts.scss +0 -22
- package/build/styleguide/vendor/lightgallery/src/sass/lg-fullscreen.scss +0 -9
- package/build/styleguide/vendor/lightgallery/src/sass/lg-mixins.scss +0 -330
- package/build/styleguide/vendor/lightgallery/src/sass/lg-pager.scss +0 -89
- package/build/styleguide/vendor/lightgallery/src/sass/lg-share.scss +0 -135
- package/build/styleguide/vendor/lightgallery/src/sass/lg-theme-default.scss +0 -208
- package/build/styleguide/vendor/lightgallery/src/sass/lg-thumbnail.scss +0 -111
- package/build/styleguide/vendor/lightgallery/src/sass/lg-transitions.scss +0 -766
- package/build/styleguide/vendor/lightgallery/src/sass/lg-variables.scss +0 -57
- package/build/styleguide/vendor/lightgallery/src/sass/lg-video.scss +0 -110
- package/build/styleguide/vendor/lightgallery/src/sass/lg-zoom.scss +0 -69
- package/build/styleguide/vendor/lightgallery/src/sass/lightgallery.scss +0 -15
- package/build/styleguide/vendor/lightgallery/src/sass/prepros.cfg +0 -530
- package/build/styleguide/vendor/lightgallery/test/.jshintrc +0 -33
- package/build/styleguide/vendor/lightgallery/test/lightgallery.html +0 -27
- package/build/styleguide/vendor/lightgallery/test/lightgallery_test.js +0 -16
- package/build/styleguide/vendor/masonry-layout/README.md +0 -80
- package/build/styleguide/vendor/masonry-layout/dist/masonry.pkgd.js +0 -2499
- package/build/styleguide/vendor/masonry-layout/dist/masonry.pkgd.min.js +0 -9
- package/build/styleguide/vendor/masonry-layout/masonry.js +0 -239
- package/postinstall.sh +0 -76
- package/version_tag.sh +0 -99
- package/yarn.lock +0 -7827
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! lightgallery - v1.6.2 - 2017-10-03
|
|
2
|
-
* http://sachinchoolur.github.io/lightGallery/
|
|
3
|
-
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
|
4
|
-
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(b,d){if(this.el=b,this.$el=a(b),this.s=a.extend({},c,d),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=a(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(a(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var c={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};b.prototype.init=function(){var b=this;b.s.preload>b.$items.length&&(b.s.preload=b.$items.length);var c=window.location.hash;c.indexOf("lg="+this.s.galleryId)>0&&(b.index=parseInt(c.split("&slide=")[1],10),a("body").addClass("lg-from-hash"),a("body").hasClass("lg-on")||(setTimeout(function(){b.build(b.index)}),a("body").addClass("lg-on"))),b.s.dynamic?(b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||0,a("body").hasClass("lg-on")||setTimeout(function(){b.build(b.index),a("body").addClass("lg-on")})):b.$items.on("click.lgcustom",function(c){try{c.preventDefault(),c.preventDefault()}catch(a){c.returnValue=!1}b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||b.$items.index(this),a("body").hasClass("lg-on")||(b.build(b.index),a("body").addClass("lg-on"))})},b.prototype.build=function(b){var c=this;c.structure(),a.each(a.fn.lightGallery.modules,function(b){c.modules[b]=new a.fn.lightGallery.modules[b](c.el)}),c.slide(b,!1,!1,!1),c.s.keyPress&&c.keyPress(),c.$items.length>1?(c.arrow(),setTimeout(function(){c.enableDrag(),c.enableSwipe()},50),c.s.mousewheel&&c.mousewheel()):c.$slide.on("click.lg",function(){c.$el.trigger("onSlideClick.lg")}),c.counter(),c.closeGallery(),c.$el.trigger("onAfterOpen.lg"),c.$outer.on("mousemove.lg click.lg touchstart.lg",function(){c.$outer.removeClass("lg-hide-items"),clearTimeout(c.hideBartimeout),c.hideBartimeout=setTimeout(function(){c.$outer.addClass("lg-hide-items")},c.s.hideBarsDelay)}),c.$outer.trigger("mousemove.lg")},b.prototype.structure=function(){var b,c="",d="",e=0,f="",g=this;for(a("body").append('<div class="lg-backdrop"></div>'),a(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),e=0;e<this.$items.length;e++)c+='<div class="lg-item"></div>';if(this.s.controls&&this.$items.length>1&&(d='<div class="lg-actions"><button class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(f='<div class="lg-sub-html"></div>'),b='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+c+'</div><div class="lg-toolbar lg-group"><span class="lg-close lg-icon"></span></div>'+d+f+"</div></div>",a("body").append(b),this.$outer=a(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),g.setTop(),a(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){g.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var h=this.$outer.find(".lg-inner");h.css("transition-timing-function",this.s.cssEasing),h.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){a(".lg-backdrop").addClass("in")}),setTimeout(function(){g.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=a(window).scrollTop()},b.prototype.setTop=function(){if("100%"!==this.s.height){var b=a(window).height(),c=(b-parseInt(this.s.height,10))/2,d=this.$outer.find(".lg");b>=parseInt(this.s.height,10)?d.css("top",c+"px"):d.css("top","0px")}},b.prototype.doCss=function(){var a=function(){var a=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],b=document.documentElement,c=0;for(c=0;c<a.length;c++)if(a[c]in b.style)return!0};return!!a()},b.prototype.isVideo=function(a,b){var c;if(c=this.s.dynamic?this.s.dynamicEl[b].html:this.$items.eq(b).attr("data-html"),!a)return c?{html5:!0}:(console.error("lightGallery :- data-src is not pvovided on slide item "+(b+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var d=a.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),e=a.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),f=a.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),g=a.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return d?{youtube:d}:e?{vimeo:e}:f?{dailymotion:f}:g?{vk:g}:void 0},b.prototype.counter=function(){this.s.counter&&a(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},b.prototype.addHtml=function(b){var c,d,e=null;if(this.s.dynamic?this.s.dynamicEl[b].subHtmlUrl?c=this.s.dynamicEl[b].subHtmlUrl:e=this.s.dynamicEl[b].subHtml:(d=this.$items.eq(b),d.attr("data-sub-html-url")?c=d.attr("data-sub-html-url"):(e=d.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!e&&(e=d.attr("title")||d.find("img").first().attr("alt")))),!c)if("undefined"!=typeof e&&null!==e){var f=e.substring(0,1);"."!==f&&"#"!==f||(e=this.s.subHtmlSelectorRelative&&!this.s.dynamic?d.find(e).html():a(e).html())}else e="";".lg-sub-html"===this.s.appendSubHtmlTo?c?this.$outer.find(this.s.appendSubHtmlTo).load(c):this.$outer.find(this.s.appendSubHtmlTo).html(e):c?this.$slide.eq(b).load(c):this.$slide.eq(b).append(e),"undefined"!=typeof e&&null!==e&&(""===e?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[b])},b.prototype.preload=function(a){var b=1,c=1;for(b=1;b<=this.s.preload&&!(b>=this.$items.length-a);b++)this.loadContent(a+b,!1,0);for(c=1;c<=this.s.preload&&!(a-c<0);c++)this.loadContent(a-c,!1,0)},b.prototype.loadContent=function(b,c,d){var e,f,g,h,i,j,k=this,l=!1,m=function(b){for(var c=[],d=[],e=0;e<b.length;e++){var g=b[e].split(" ");""===g[0]&&g.splice(0,1),d.push(g[0]),c.push(g[1])}for(var h=a(window).width(),i=0;i<c.length;i++)if(parseInt(c[i],10)>h){f=d[i];break}};if(k.s.dynamic){if(k.s.dynamicEl[b].poster&&(l=!0,g=k.s.dynamicEl[b].poster),j=k.s.dynamicEl[b].html,f=k.s.dynamicEl[b].src,k.s.dynamicEl[b].responsive){var n=k.s.dynamicEl[b].responsive.split(",");m(n)}h=k.s.dynamicEl[b].srcset,i=k.s.dynamicEl[b].sizes}else{if(k.$items.eq(b).attr("data-poster")&&(l=!0,g=k.$items.eq(b).attr("data-poster")),j=k.$items.eq(b).attr("data-html"),f=k.$items.eq(b).attr("href")||k.$items.eq(b).attr("data-src"),k.$items.eq(b).attr("data-responsive")){var o=k.$items.eq(b).attr("data-responsive").split(",");m(o)}h=k.$items.eq(b).attr("data-srcset"),i=k.$items.eq(b).attr("data-sizes")}var p=!1;k.s.dynamic?k.s.dynamicEl[b].iframe&&(p=!0):"true"===k.$items.eq(b).attr("data-iframe")&&(p=!0);var q=k.isVideo(f,b);if(!k.$slide.eq(b).hasClass("lg-loaded")){if(p)k.$slide.eq(b).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+k.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+f+'" allowfullscreen="true"></iframe></div></div>');else if(l){var r="";r=q&&q.youtube?"lg-has-youtube":q&&q.vimeo?"lg-has-vimeo":"lg-has-html5",k.$slide.eq(b).prepend('<div class="lg-video-cont '+r+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+g+'" /></div></div>')}else q?(k.$slide.eq(b).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),k.$el.trigger("hasVideo.lg",[b,f,j])):k.$slide.eq(b).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+f+'" /></div>');if(k.$el.trigger("onAferAppendSlide.lg",[b]),e=k.$slide.eq(b).find(".lg-object"),i&&e.attr("sizes",i),h){e.attr("srcset",h);try{picturefill({elements:[e[0]]})}catch(a){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&k.addHtml(b),k.$slide.eq(b).addClass("lg-loaded")}k.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){var c=0;d&&!a("body").hasClass("lg-from-hash")&&(c=d),setTimeout(function(){k.$slide.eq(b).addClass("lg-complete"),k.$el.trigger("onSlideItemLoad.lg",[b,d||0])},c)}),q&&q.html5&&!l&&k.$slide.eq(b).addClass("lg-complete"),c===!0&&(k.$slide.eq(b).hasClass("lg-complete")?k.preload(b):k.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){k.preload(b)}))},b.prototype.slide=function(b,c,d,e){var f=this.$outer.find(".lg-current").index(),g=this;if(!g.lGalleryOn||f!==b){var h=this.$slide.length,i=g.lGalleryOn?this.s.speed:0;if(!g.lgBusy){if(this.s.download){var j;j=g.s.dynamic?g.s.dynamicEl[b].downloadUrl!==!1&&(g.s.dynamicEl[b].downloadUrl||g.s.dynamicEl[b].src):"false"!==g.$items.eq(b).attr("data-download-url")&&(g.$items.eq(b).attr("data-download-url")||g.$items.eq(b).attr("href")||g.$items.eq(b).attr("data-src")),j?(a("#lg-download").attr("href",j),g.$outer.removeClass("lg-hide-download")):g.$outer.addClass("lg-hide-download")}if(this.$el.trigger("onBeforeSlide.lg",[f,b,c,d]),g.lgBusy=!0,clearTimeout(g.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){g.addHtml(b)},i),this.arrowDisable(b),e||(b<f?e="prev":b>f&&(e="next")),c){this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide");var k,l;h>2?(k=b-1,l=b+1,0===b&&f===h-1?(l=0,k=h-1):b===h-1&&0===f&&(l=0,k=h-1)):(k=0,l=1),"prev"===e?g.$slide.eq(l).addClass("lg-next-slide"):g.$slide.eq(k).addClass("lg-prev-slide"),g.$slide.eq(b).addClass("lg-current")}else g.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(f).addClass("lg-next-slide")):(this.$slide.eq(b).addClass("lg-next-slide"),this.$slide.eq(f).addClass("lg-prev-slide")),setTimeout(function(){g.$slide.removeClass("lg-current"),g.$slide.eq(b).addClass("lg-current"),g.$outer.removeClass("lg-no-trans")},50);g.lGalleryOn?(setTimeout(function(){g.loadContent(b,!0,0)},this.s.speed+50),setTimeout(function(){g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])},this.s.speed)):(g.loadContent(b,!0,g.s.backdropDuration),g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])),g.lGalleryOn=!0,this.s.counter&&a("#lg-counter-current").text(b+1)}g.index=b}},b.prototype.goToNextSlide=function(a){var b=this,c=b.s.loop;a&&b.$slide.length<3&&(c=!1),b.lgBusy||(b.index+1<b.$slide.length?(b.index++,b.$el.trigger("onBeforeNextSlide.lg",[b.index]),b.slide(b.index,a,!1,"next")):c?(b.index=0,b.$el.trigger("onBeforeNextSlide.lg",[b.index]),b.slide(b.index,a,!1,"next")):b.s.slideEndAnimatoin&&!a&&(b.$outer.addClass("lg-right-end"),setTimeout(function(){b.$outer.removeClass("lg-right-end")},400)))},b.prototype.goToPrevSlide=function(a){var b=this,c=b.s.loop;a&&b.$slide.length<3&&(c=!1),b.lgBusy||(b.index>0?(b.index--,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):c?(b.index=b.$items.length-1,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):b.s.slideEndAnimatoin&&!a&&(b.$outer.addClass("lg-left-end"),setTimeout(function(){b.$outer.removeClass("lg-left-end")},400)))},b.prototype.keyPress=function(){var b=this;this.$items.length>1&&a(window).on("keyup.lg",function(a){b.$items.length>1&&(37===a.keyCode&&(a.preventDefault(),b.goToPrevSlide()),39===a.keyCode&&(a.preventDefault(),b.goToNextSlide()))}),a(window).on("keydown.lg",function(a){b.s.escKey===!0&&27===a.keyCode&&(a.preventDefault(),b.$outer.hasClass("lg-thumb-open")?b.$outer.removeClass("lg-thumb-open"):b.destroy())})},b.prototype.arrow=function(){var a=this;this.$outer.find(".lg-prev").on("click.lg",function(){a.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){a.goToNextSlide()})},b.prototype.arrowDisable=function(a){!this.s.loop&&this.s.hideControlOnEnd&&(a+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),a>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},b.prototype.setTranslate=function(a,b,c){this.s.useLeft?a.css("left",b):a.css({transform:"translate3d("+b+"px, "+c+"px, 0px)"})},b.prototype.touchMove=function(b,c){var d=c-b;Math.abs(d)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),d,0),this.setTranslate(a(".lg-prev-slide"),-this.$slide.eq(this.index).width()+d,0),this.setTranslate(a(".lg-next-slide"),this.$slide.eq(this.index).width()+d,0))},b.prototype.touchEnd=function(a){var b=this;"lg-slide"!==b.s.mode&&b.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){b.$outer.removeClass("lg-dragging"),a<0&&Math.abs(a)>b.s.swipeThreshold?b.goToNextSlide(!0):a>0&&Math.abs(a)>b.s.swipeThreshold?b.goToPrevSlide(!0):Math.abs(a)<5&&b.$el.trigger("onSlideClick.lg"),b.$slide.removeAttr("style")}),setTimeout(function(){b.$outer.hasClass("lg-dragging")||"lg-slide"===b.s.mode||b.$outer.removeClass("lg-slide")},b.s.speed+100)},b.prototype.enableSwipe=function(){var a=this,b=0,c=0,d=!1;a.s.enableSwipe&&a.doCss()&&(a.$slide.on("touchstart.lg",function(c){a.$outer.hasClass("lg-zoomed")||a.lgBusy||(c.preventDefault(),a.manageSwipeClass(),b=c.originalEvent.targetTouches[0].pageX)}),a.$slide.on("touchmove.lg",function(e){a.$outer.hasClass("lg-zoomed")||(e.preventDefault(),c=e.originalEvent.targetTouches[0].pageX,a.touchMove(b,c),d=!0)}),a.$slide.on("touchend.lg",function(){a.$outer.hasClass("lg-zoomed")||(d?(d=!1,a.touchEnd(c-b)):a.$el.trigger("onSlideClick.lg"))}))},b.prototype.enableDrag=function(){var b=this,c=0,d=0,e=!1,f=!1;b.s.enableDrag&&b.doCss()&&(b.$slide.on("mousedown.lg",function(d){b.$outer.hasClass("lg-zoomed")||(a(d.target).hasClass("lg-object")||a(d.target).hasClass("lg-video-play"))&&(d.preventDefault(),b.lgBusy||(b.manageSwipeClass(),c=d.pageX,e=!0,b.$outer.scrollLeft+=1,b.$outer.scrollLeft-=1,b.$outer.removeClass("lg-grab").addClass("lg-grabbing"),b.$el.trigger("onDragstart.lg")))}),a(window).on("mousemove.lg",function(a){e&&(f=!0,d=a.pageX,b.touchMove(c,d),b.$el.trigger("onDragmove.lg"))}),a(window).on("mouseup.lg",function(g){f?(f=!1,b.touchEnd(d-c),b.$el.trigger("onDragend.lg")):(a(g.target).hasClass("lg-object")||a(g.target).hasClass("lg-video-play"))&&b.$el.trigger("onSlideClick.lg"),e&&(e=!1,b.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},b.prototype.manageSwipeClass=function(){var a=this.index+1,b=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?b=this.$slide.length-1:this.index===this.$slide.length-1&&(a=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),b>-1&&this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(a).addClass("lg-next-slide")},b.prototype.mousewheel=function(){var a=this;a.$outer.on("mousewheel.lg",function(b){b.deltaY&&(b.deltaY>0?a.goToPrevSlide():a.goToNextSlide(),b.preventDefault())})},b.prototype.closeGallery=function(){var b=this,c=!1;this.$outer.find(".lg-close").on("click.lg",function(){b.destroy()}),b.s.closable&&(b.$outer.on("mousedown.lg",function(b){c=!!(a(b.target).is(".lg-outer")||a(b.target).is(".lg-item ")||a(b.target).is(".lg-img-wrap"))}),b.$outer.on("mouseup.lg",function(d){(a(d.target).is(".lg-outer")||a(d.target).is(".lg-item ")||a(d.target).is(".lg-img-wrap")&&c)&&(b.$outer.hasClass("lg-dragging")||b.destroy())}))},b.prototype.destroy=function(b){var c=this;b||(c.$el.trigger("onBeforeClose.lg"),a(window).scrollTop(c.prevScrollTop)),b&&(c.s.dynamic||this.$items.off("click.lg click.lgcustom"),a.removeData(c.el,"lightGallery")),this.$el.off(".lg.tm"),a.each(a.fn.lightGallery.modules,function(a){c.modules[a]&&c.modules[a].destroy()}),this.lGalleryOn=!1,clearTimeout(c.hideBartimeout),this.hideBartimeout=!1,a(window).off(".lg"),a("body").removeClass("lg-on lg-from-hash"),c.$outer&&c.$outer.removeClass("lg-visible"),a(".lg-backdrop").removeClass("in"),setTimeout(function(){c.$outer&&c.$outer.remove(),a(".lg-backdrop").remove(),b||c.$el.trigger("onCloseAfter.lg")},c.s.backdropDuration+50)},a.fn.lightGallery=function(c){return this.each(function(){if(a.data(this,"lightGallery"))try{a(this).data("lightGallery").init()}catch(a){console.error("lightGallery has not initiated properly")}else a.data(this,"lightGallery",new b(this,c))})},a.fn.lightGallery.modules={}}()});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
|
2
|
-
* Licensed under the MIT License (LICENSE.txt).
|
|
3
|
-
*
|
|
4
|
-
* Version: 3.1.12
|
|
5
|
-
*
|
|
6
|
-
* Requires: jQuery 1.2.2+
|
|
7
|
-
*/
|
|
8
|
-
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! Picturefill - v2.3.1 - 2015-04-09
|
|
2
|
-
* http://scottjehl.github.io/picturefill
|
|
3
|
-
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */
|
|
4
|
-
window.matchMedia||(window.matchMedia=function(){"use strict";var a=window.styleMedia||window.media;if(!a){var b=document.createElement("style"),c=document.getElementsByTagName("script")[0],d=null;b.type="text/css",b.id="matchmediajs-test",c.parentNode.insertBefore(b,c),d="getComputedStyle"in window&&window.getComputedStyle(b,null)||b.currentStyle,a={matchMedium:function(a){var c="@media "+a+"{ #matchmediajs-test { width: 1px; } }";return b.styleSheet?b.styleSheet.cssText=c:b.textContent=c,"1px"===d.width}}}return function(b){return{matches:a.matchMedium(b||"all"),media:b||"all"}}}()),function(a,b,c){"use strict";function d(b){"object"==typeof module&&"object"==typeof module.exports?module.exports=b:"function"==typeof define&&define.amd&&define("picturefill",function(){return b}),"object"==typeof a&&(a.picturefill=b)}function e(a){var b,c,d,e,f,i=a||{};b=i.elements||g.getAllElements();for(var j=0,k=b.length;k>j;j++)if(c=b[j],d=c.parentNode,e=void 0,f=void 0,"IMG"===c.nodeName.toUpperCase()&&(c[g.ns]||(c[g.ns]={}),i.reevaluate||!c[g.ns].evaluated)){if(d&&"PICTURE"===d.nodeName.toUpperCase()){if(g.removeVideoShim(d),e=g.getMatch(c,d),e===!1)continue}else e=void 0;(d&&"PICTURE"===d.nodeName.toUpperCase()||!g.sizesSupported&&c.srcset&&h.test(c.srcset))&&g.dodgeSrcset(c),e?(f=g.processSourceSet(e),g.applyBestCandidate(f,c)):(f=g.processSourceSet(c),(void 0===c.srcset||c[g.ns].srcset)&&g.applyBestCandidate(f,c)),c[g.ns].evaluated=!0}}function f(){function c(){clearTimeout(d),d=setTimeout(h,60)}g.initTypeDetects(),e();var d,f=setInterval(function(){return e(),/^loaded|^i|^c/.test(b.readyState)?void clearInterval(f):void 0},250),h=function(){e({reevaluate:!0})};a.addEventListener?a.addEventListener("resize",c,!1):a.attachEvent&&a.attachEvent("onresize",c)}if(a.HTMLPictureElement)return void d(function(){});b.createElement("picture");var g=a.picturefill||{},h=/\s+\+?\d+(e\d+)?w/;g.ns="picturefill",function(){g.srcsetSupported="srcset"in c,g.sizesSupported="sizes"in c,g.curSrcSupported="currentSrc"in c}(),g.trim=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")},g.makeUrl=function(){var a=b.createElement("a");return function(b){return a.href=b,a.href}}(),g.restrictsMixedContent=function(){return"https:"===a.location.protocol},g.matchesMedia=function(b){return a.matchMedia&&a.matchMedia(b).matches},g.getDpr=function(){return a.devicePixelRatio||1},g.getWidthFromLength=function(a){var c;if(!a||a.indexOf("%")>-1!=!1||!(parseFloat(a)>0||a.indexOf("calc(")>-1))return!1;a=a.replace("vw","%"),g.lengthEl||(g.lengthEl=b.createElement("div"),g.lengthEl.style.cssText="border:0;display:block;font-size:1em;left:0;margin:0;padding:0;position:absolute;visibility:hidden",g.lengthEl.className="helper-from-picturefill-js"),g.lengthEl.style.width="0px";try{g.lengthEl.style.width=a}catch(d){}return b.body.appendChild(g.lengthEl),c=g.lengthEl.offsetWidth,0>=c&&(c=!1),b.body.removeChild(g.lengthEl),c},g.detectTypeSupport=function(b,c){var d=new a.Image;return d.onerror=function(){g.types[b]=!1,e()},d.onload=function(){g.types[b]=1===d.width,e()},d.src=c,"pending"},g.types=g.types||{},g.initTypeDetects=function(){g.types["image/jpeg"]=!0,g.types["image/gif"]=!0,g.types["image/png"]=!0,g.types["image/svg+xml"]=b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),g.types["image/webp"]=g.detectTypeSupport("image/webp","data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")},g.verifyTypeSupport=function(a){var b=a.getAttribute("type");if(null===b||""===b)return!0;var c=g.types[b];return"string"==typeof c&&"pending"!==c?(g.types[b]=g.detectTypeSupport(b,c),"pending"):"function"==typeof c?(c(),"pending"):c},g.parseSize=function(a){var b=/(\([^)]+\))?\s*(.+)/g.exec(a);return{media:b&&b[1],length:b&&b[2]}},g.findWidthFromSourceSize=function(c){for(var d,e=g.trim(c).split(/\s*,\s*/),f=0,h=e.length;h>f;f++){var i=e[f],j=g.parseSize(i),k=j.length,l=j.media;if(k&&(!l||g.matchesMedia(l))&&(d=g.getWidthFromLength(k)))break}return d||Math.max(a.innerWidth||0,b.documentElement.clientWidth)},g.parseSrcset=function(a){for(var b=[];""!==a;){a=a.replace(/^\s+/g,"");var c,d=a.search(/\s/g),e=null;if(-1!==d){c=a.slice(0,d);var f=c.slice(-1);if((","===f||""===c)&&(c=c.replace(/,+$/,""),e=""),a=a.slice(d+1),null===e){var g=a.indexOf(",");-1!==g?(e=a.slice(0,g),a=a.slice(g+1)):(e=a,a="")}}else c=a,a="";(c||e)&&b.push({url:c,descriptor:e})}return b},g.parseDescriptor=function(a,b){var c,d=b||"100vw",e=a&&a.replace(/(^\s+|\s+$)/g,""),f=g.findWidthFromSourceSize(d);if(e)for(var h=e.split(" "),i=h.length-1;i>=0;i--){var j=h[i],k=j&&j.slice(j.length-1);if("h"!==k&&"w"!==k||g.sizesSupported){if("x"===k){var l=j&&parseFloat(j,10);c=l&&!isNaN(l)?l:1}}else c=parseFloat(parseInt(j,10)/f)}return c||1},g.getCandidatesFromSourceSet=function(a,b){for(var c=g.parseSrcset(a),d=[],e=0,f=c.length;f>e;e++){var h=c[e];d.push({url:h.url,resolution:g.parseDescriptor(h.descriptor,b)})}return d},g.dodgeSrcset=function(a){a.srcset&&(a[g.ns].srcset=a.srcset,a.srcset="",a.setAttribute("data-pfsrcset",a[g.ns].srcset))},g.processSourceSet=function(a){var b=a.getAttribute("srcset"),c=a.getAttribute("sizes"),d=[];return"IMG"===a.nodeName.toUpperCase()&&a[g.ns]&&a[g.ns].srcset&&(b=a[g.ns].srcset),b&&(d=g.getCandidatesFromSourceSet(b,c)),d},g.backfaceVisibilityFix=function(a){var b=a.style||{},c="webkitBackfaceVisibility"in b,d=b.zoom;c&&(b.zoom=".999",c=a.offsetWidth,b.zoom=d)},g.setIntrinsicSize=function(){var c={},d=function(a,b,c){b&&a.setAttribute("width",parseInt(b/c,10))};return function(e,f){var h;e[g.ns]&&!a.pfStopIntrinsicSize&&(void 0===e[g.ns].dims&&(e[g.ns].dims=e.getAttribute("width")||e.getAttribute("height")),e[g.ns].dims||(f.url in c?d(e,c[f.url],f.resolution):(h=b.createElement("img"),h.onload=function(){if(c[f.url]=h.width,!c[f.url])try{b.body.appendChild(h),c[f.url]=h.width||h.offsetWidth,b.body.removeChild(h)}catch(a){}e.src===f.url&&d(e,c[f.url],f.resolution),e=null,h.onload=null,h=null},h.src=f.url)))}}(),g.applyBestCandidate=function(a,b){var c,d,e;a.sort(g.ascendingSort),d=a.length,e=a[d-1];for(var f=0;d>f;f++)if(c=a[f],c.resolution>=g.getDpr()){e=c;break}e&&(e.url=g.makeUrl(e.url),b.src!==e.url&&(g.restrictsMixedContent()&&"http:"===e.url.substr(0,"http:".length).toLowerCase()?void 0!==window.console&&console.warn("Blocked mixed content image "+e.url):(b.src=e.url,g.curSrcSupported||(b.currentSrc=b.src),g.backfaceVisibilityFix(b))),g.setIntrinsicSize(b,e))},g.ascendingSort=function(a,b){return a.resolution-b.resolution},g.removeVideoShim=function(a){var b=a.getElementsByTagName("video");if(b.length){for(var c=b[0],d=c.getElementsByTagName("source");d.length;)a.insertBefore(d[0],c);c.parentNode.removeChild(c)}},g.getAllElements=function(){for(var a=[],c=b.getElementsByTagName("img"),d=0,e=c.length;e>d;d++){var f=c[d];("PICTURE"===f.parentNode.nodeName.toUpperCase()||null!==f.getAttribute("srcset")||f[g.ns]&&null!==f[g.ns].srcset)&&a.push(f)}return a},g.getMatch=function(a,b){for(var c,d=b.childNodes,e=0,f=d.length;f>e;e++){var h=d[e];if(1===h.nodeType){if(h===a)return c;if("SOURCE"===h.nodeName.toUpperCase()){null!==h.getAttribute("src")&&void 0!==typeof console&&console.warn("The `src` attribute is invalid on `picture` `source` element; instead, use `srcset`.");var i=h.getAttribute("media");if(h.getAttribute("srcset")&&(!i||g.matchesMedia(i))){var j=g.verifyTypeSupport(h);if(j===!0){c=h;break}if("pending"===j)return!1}}}}return c},f(),e._=g,d(e)}(window,window.document,new window.Image);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "lightgallery",
|
|
3
|
-
"title": "jQuery lightgallery",
|
|
4
|
-
"description": "JQuery lightGallery is a lightweight jQuery lightbox gallery for displaying image and video gallery",
|
|
5
|
-
"version": "1.4.0",
|
|
6
|
-
"homepage": "https://github.com/sachinchoolur/lightGallery",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sachin N",
|
|
9
|
-
"url": "https://github.com/sachinchoolur"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/sachinchoolur/lightGallery"
|
|
14
|
-
},
|
|
15
|
-
"bugs": "",
|
|
16
|
-
"licenses": [
|
|
17
|
-
{
|
|
18
|
-
"type": "GPLv3"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"jquery": ">=1.7.0"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"jquery-plugin"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
/*! lg-autoplay - v1.0.4 - 2017-03-28
|
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
|
3
|
-
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
|
4
|
-
|
|
5
|
-
(function (root, factory) {
|
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
|
7
|
-
// AMD. Register as an anonymous module unless amdModuleId is set
|
|
8
|
-
define(['jquery'], function (a0) {
|
|
9
|
-
return (factory(a0));
|
|
10
|
-
});
|
|
11
|
-
} else if (typeof exports === 'object') {
|
|
12
|
-
// Node. Does not work with strict CommonJS, but
|
|
13
|
-
// only CommonJS-like environments that support module.exports,
|
|
14
|
-
// like Node.
|
|
15
|
-
module.exports = factory(require('jquery'));
|
|
16
|
-
} else {
|
|
17
|
-
factory(jQuery);
|
|
18
|
-
}
|
|
19
|
-
}(this, function ($) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(function() {
|
|
23
|
-
|
|
24
|
-
'use strict';
|
|
25
|
-
|
|
26
|
-
var defaults = {
|
|
27
|
-
autoplay: false,
|
|
28
|
-
pause: 5000,
|
|
29
|
-
progressBar: true,
|
|
30
|
-
fourceAutoplay: false,
|
|
31
|
-
autoplayControls: true,
|
|
32
|
-
appendAutoplayControlsTo: '.lg-toolbar'
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Creates the autoplay plugin.
|
|
37
|
-
* @param {object} element - lightGallery element
|
|
38
|
-
*/
|
|
39
|
-
var Autoplay = function(element) {
|
|
40
|
-
|
|
41
|
-
this.core = $(element).data('lightGallery');
|
|
42
|
-
|
|
43
|
-
this.$el = $(element);
|
|
44
|
-
|
|
45
|
-
// Execute only if items are above 1
|
|
46
|
-
if (this.core.$items.length < 2) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
this.core.s = $.extend({}, defaults, this.core.s);
|
|
51
|
-
this.interval = false;
|
|
52
|
-
|
|
53
|
-
// Identify if slide happened from autoplay
|
|
54
|
-
this.fromAuto = true;
|
|
55
|
-
|
|
56
|
-
// Identify if autoplay canceled from touch/drag
|
|
57
|
-
this.canceledOnTouch = false;
|
|
58
|
-
|
|
59
|
-
// save fourceautoplay value
|
|
60
|
-
this.fourceAutoplayTemp = this.core.s.fourceAutoplay;
|
|
61
|
-
|
|
62
|
-
// do not allow progress bar if browser does not support css3 transitions
|
|
63
|
-
if (!this.core.doCss()) {
|
|
64
|
-
this.core.s.progressBar = false;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
this.init();
|
|
68
|
-
|
|
69
|
-
return this;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
Autoplay.prototype.init = function() {
|
|
73
|
-
var _this = this;
|
|
74
|
-
|
|
75
|
-
// append autoplay controls
|
|
76
|
-
if (_this.core.s.autoplayControls) {
|
|
77
|
-
_this.controls();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Create progress bar
|
|
81
|
-
if (_this.core.s.progressBar) {
|
|
82
|
-
_this.core.$outer.find('.lg').append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// set progress
|
|
86
|
-
_this.progress();
|
|
87
|
-
|
|
88
|
-
// Start autoplay
|
|
89
|
-
if (_this.core.s.autoplay) {
|
|
90
|
-
_this.$el.one('onSlideItemLoad.lg.tm', function() {
|
|
91
|
-
_this.startlAuto();
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// cancel interval on touchstart and dragstart
|
|
96
|
-
_this.$el.on('onDragstart.lg.tm touchstart.lg.tm', function() {
|
|
97
|
-
if (_this.interval) {
|
|
98
|
-
_this.cancelAuto();
|
|
99
|
-
_this.canceledOnTouch = true;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
// restore autoplay if autoplay canceled from touchstart / dragstart
|
|
104
|
-
_this.$el.on('onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm', function() {
|
|
105
|
-
if (!_this.interval && _this.canceledOnTouch) {
|
|
106
|
-
_this.startlAuto();
|
|
107
|
-
_this.canceledOnTouch = false;
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
Autoplay.prototype.progress = function() {
|
|
114
|
-
|
|
115
|
-
var _this = this;
|
|
116
|
-
var _$progressBar;
|
|
117
|
-
var _$progress;
|
|
118
|
-
|
|
119
|
-
_this.$el.on('onBeforeSlide.lg.tm', function() {
|
|
120
|
-
|
|
121
|
-
// start progress bar animation
|
|
122
|
-
if (_this.core.s.progressBar && _this.fromAuto) {
|
|
123
|
-
_$progressBar = _this.core.$outer.find('.lg-progress-bar');
|
|
124
|
-
_$progress = _this.core.$outer.find('.lg-progress');
|
|
125
|
-
if (_this.interval) {
|
|
126
|
-
_$progress.removeAttr('style');
|
|
127
|
-
_$progressBar.removeClass('lg-start');
|
|
128
|
-
setTimeout(function() {
|
|
129
|
-
_$progress.css('transition', 'width ' + (_this.core.s.speed + _this.core.s.pause) + 'ms ease 0s');
|
|
130
|
-
_$progressBar.addClass('lg-start');
|
|
131
|
-
}, 20);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// Remove setinterval if slide is triggered manually and fourceautoplay is false
|
|
136
|
-
if (!_this.fromAuto && !_this.core.s.fourceAutoplay) {
|
|
137
|
-
_this.cancelAuto();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
_this.fromAuto = false;
|
|
141
|
-
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
// Manage autoplay via play/stop buttons
|
|
146
|
-
Autoplay.prototype.controls = function() {
|
|
147
|
-
var _this = this;
|
|
148
|
-
var _html = '<span class="lg-autoplay-button lg-icon"></span>';
|
|
149
|
-
|
|
150
|
-
// Append autoplay controls
|
|
151
|
-
$(this.core.s.appendAutoplayControlsTo).append(_html);
|
|
152
|
-
|
|
153
|
-
_this.core.$outer.find('.lg-autoplay-button').on('click.lg', function() {
|
|
154
|
-
if ($(_this.core.$outer).hasClass('lg-show-autoplay')) {
|
|
155
|
-
_this.cancelAuto();
|
|
156
|
-
_this.core.s.fourceAutoplay = false;
|
|
157
|
-
} else {
|
|
158
|
-
if (!_this.interval) {
|
|
159
|
-
_this.startlAuto();
|
|
160
|
-
_this.core.s.fourceAutoplay = _this.fourceAutoplayTemp;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
// Autostart gallery
|
|
167
|
-
Autoplay.prototype.startlAuto = function() {
|
|
168
|
-
var _this = this;
|
|
169
|
-
|
|
170
|
-
_this.core.$outer.find('.lg-progress').css('transition', 'width ' + (_this.core.s.speed + _this.core.s.pause) + 'ms ease 0s');
|
|
171
|
-
_this.core.$outer.addClass('lg-show-autoplay');
|
|
172
|
-
_this.core.$outer.find('.lg-progress-bar').addClass('lg-start');
|
|
173
|
-
|
|
174
|
-
_this.interval = setInterval(function() {
|
|
175
|
-
if (_this.core.index + 1 < _this.core.$items.length) {
|
|
176
|
-
_this.core.index++;
|
|
177
|
-
} else {
|
|
178
|
-
_this.core.index = 0;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
_this.fromAuto = true;
|
|
182
|
-
_this.core.slide(_this.core.index, false, false, 'next');
|
|
183
|
-
}, _this.core.s.speed + _this.core.s.pause);
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
// cancel Autostart
|
|
187
|
-
Autoplay.prototype.cancelAuto = function() {
|
|
188
|
-
clearInterval(this.interval);
|
|
189
|
-
this.interval = false;
|
|
190
|
-
this.core.$outer.find('.lg-progress').removeAttr('style');
|
|
191
|
-
this.core.$outer.removeClass('lg-show-autoplay');
|
|
192
|
-
this.core.$outer.find('.lg-progress-bar').removeClass('lg-start');
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
Autoplay.prototype.destroy = function() {
|
|
196
|
-
|
|
197
|
-
this.cancelAuto();
|
|
198
|
-
this.core.$outer.find('.lg-progress-bar').remove();
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
$.fn.lightGallery.modules.autoplay = Autoplay;
|
|
202
|
-
|
|
203
|
-
})();
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! lg-autoplay - v1.0.4 - 2017-03-28
|
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
|
3
|
-
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
|
4
|
-
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),!(this.core.$items.length<2)&&(this.core.s=a.extend({},b,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)};c.prototype.init=function(){var a=this;a.core.s.autoplayControls&&a.controls(),a.core.s.progressBar&&a.core.$outer.find(".lg").append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>'),a.progress(),a.core.s.autoplay&&a.$el.one("onSlideItemLoad.lg.tm",function(){a.startlAuto()}),a.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){a.interval&&(a.cancelAuto(),a.canceledOnTouch=!0)}),a.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!a.interval&&a.canceledOnTouch&&(a.startlAuto(),a.canceledOnTouch=!1)})},c.prototype.progress=function(){var a,b,c=this;c.$el.on("onBeforeSlide.lg.tm",function(){c.core.s.progressBar&&c.fromAuto&&(a=c.core.$outer.find(".lg-progress-bar"),b=c.core.$outer.find(".lg-progress"),c.interval&&(b.removeAttr("style"),a.removeClass("lg-start"),setTimeout(function(){b.css("transition","width "+(c.core.s.speed+c.core.s.pause)+"ms ease 0s"),a.addClass("lg-start")},20))),c.fromAuto||c.core.s.fourceAutoplay||c.cancelAuto(),c.fromAuto=!1})},c.prototype.controls=function(){var b=this,c='<span class="lg-autoplay-button lg-icon"></span>';a(this.core.s.appendAutoplayControlsTo).append(c),b.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){a(b.core.$outer).hasClass("lg-show-autoplay")?(b.cancelAuto(),b.core.s.fourceAutoplay=!1):b.interval||(b.startlAuto(),b.core.s.fourceAutoplay=b.fourceAutoplayTemp)})},c.prototype.startlAuto=function(){var a=this;a.core.$outer.find(".lg-progress").css("transition","width "+(a.core.s.speed+a.core.s.pause)+"ms ease 0s"),a.core.$outer.addClass("lg-show-autoplay"),a.core.$outer.find(".lg-progress-bar").addClass("lg-start"),a.interval=setInterval(function(){a.core.index+1<a.core.$items.length?a.core.index++:a.core.index=0,a.fromAuto=!0,a.core.slide(a.core.index,!1,!1,"next")},a.core.s.speed+a.core.s.pause)},c.prototype.cancelAuto=function(){clearInterval(this.interval),this.interval=!1,this.core.$outer.find(".lg-progress").removeAttr("style"),this.core.$outer.removeClass("lg-show-autoplay"),this.core.$outer.find(".lg-progress-bar").removeClass("lg-start")},c.prototype.destroy=function(){this.cancelAuto(),this.core.$outer.find(".lg-progress-bar").remove()},a.fn.lightGallery.modules.autoplay=c}()});
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/*! lg-fullscreen - v1.0.1 - 2016-09-30
|
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
|
3
|
-
* Copyright (c) 2016 Sachin N; Licensed GPLv3 */
|
|
4
|
-
|
|
5
|
-
(function (root, factory) {
|
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
|
7
|
-
// AMD. Register as an anonymous module unless amdModuleId is set
|
|
8
|
-
define(['jquery'], function (a0) {
|
|
9
|
-
return (factory(a0));
|
|
10
|
-
});
|
|
11
|
-
} else if (typeof exports === 'object') {
|
|
12
|
-
// Node. Does not work with strict CommonJS, but
|
|
13
|
-
// only CommonJS-like environments that support module.exports,
|
|
14
|
-
// like Node.
|
|
15
|
-
module.exports = factory(require('jquery'));
|
|
16
|
-
} else {
|
|
17
|
-
factory(jQuery);
|
|
18
|
-
}
|
|
19
|
-
}(this, function ($) {
|
|
20
|
-
|
|
21
|
-
(function() {
|
|
22
|
-
|
|
23
|
-
'use strict';
|
|
24
|
-
|
|
25
|
-
var defaults = {
|
|
26
|
-
fullScreen: true
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var Fullscreen = function(element) {
|
|
30
|
-
|
|
31
|
-
// get lightGallery core plugin data
|
|
32
|
-
this.core = $(element).data('lightGallery');
|
|
33
|
-
|
|
34
|
-
this.$el = $(element);
|
|
35
|
-
|
|
36
|
-
// extend module defalut settings with lightGallery core settings
|
|
37
|
-
this.core.s = $.extend({}, defaults, this.core.s);
|
|
38
|
-
|
|
39
|
-
this.init();
|
|
40
|
-
|
|
41
|
-
return this;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
Fullscreen.prototype.init = function() {
|
|
45
|
-
var fullScreen = '';
|
|
46
|
-
if (this.core.s.fullScreen) {
|
|
47
|
-
|
|
48
|
-
// check for fullscreen browser support
|
|
49
|
-
if (!document.fullscreenEnabled && !document.webkitFullscreenEnabled &&
|
|
50
|
-
!document.mozFullScreenEnabled && !document.msFullscreenEnabled) {
|
|
51
|
-
return;
|
|
52
|
-
} else {
|
|
53
|
-
fullScreen = '<span class="lg-fullscreen lg-icon"></span>';
|
|
54
|
-
this.core.$outer.find('.lg-toolbar').append(fullScreen);
|
|
55
|
-
this.fullScreen();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
Fullscreen.prototype.requestFullscreen = function() {
|
|
61
|
-
var el = document.documentElement;
|
|
62
|
-
if (el.requestFullscreen) {
|
|
63
|
-
el.requestFullscreen();
|
|
64
|
-
} else if (el.msRequestFullscreen) {
|
|
65
|
-
el.msRequestFullscreen();
|
|
66
|
-
} else if (el.mozRequestFullScreen) {
|
|
67
|
-
el.mozRequestFullScreen();
|
|
68
|
-
} else if (el.webkitRequestFullscreen) {
|
|
69
|
-
el.webkitRequestFullscreen();
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
Fullscreen.prototype.exitFullscreen = function() {
|
|
74
|
-
if (document.exitFullscreen) {
|
|
75
|
-
document.exitFullscreen();
|
|
76
|
-
} else if (document.msExitFullscreen) {
|
|
77
|
-
document.msExitFullscreen();
|
|
78
|
-
} else if (document.mozCancelFullScreen) {
|
|
79
|
-
document.mozCancelFullScreen();
|
|
80
|
-
} else if (document.webkitExitFullscreen) {
|
|
81
|
-
document.webkitExitFullscreen();
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode
|
|
86
|
-
Fullscreen.prototype.fullScreen = function() {
|
|
87
|
-
var _this = this;
|
|
88
|
-
|
|
89
|
-
$(document).on('fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg', function() {
|
|
90
|
-
_this.core.$outer.toggleClass('lg-fullscreen-on');
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
this.core.$outer.find('.lg-fullscreen').on('click.lg', function() {
|
|
94
|
-
if (!document.fullscreenElement &&
|
|
95
|
-
!document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement) {
|
|
96
|
-
_this.requestFullscreen();
|
|
97
|
-
} else {
|
|
98
|
-
_this.exitFullscreen();
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
Fullscreen.prototype.destroy = function() {
|
|
105
|
-
|
|
106
|
-
// exit from fullscreen if activated
|
|
107
|
-
this.exitFullscreen();
|
|
108
|
-
|
|
109
|
-
$(document).off('fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg');
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
$.fn.lightGallery.modules.fullscreen = Fullscreen;
|
|
113
|
-
|
|
114
|
-
})();
|
|
115
|
-
|
|
116
|
-
}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! lg-fullscreen - v1.0.1 - 2016-09-30
|
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
|
3
|
-
* Copyright (c) 2016 Sachin N; Licensed GPLv3 */
|
|
4
|
-
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b={fullScreen:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),this.core.s=a.extend({},b,this.core.s),this.init(),this};c.prototype.init=function(){var a="";if(this.core.s.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;a='<span class="lg-fullscreen lg-icon"></span>',this.core.$outer.find(".lg-toolbar").append(a),this.fullScreen()}},c.prototype.requestFullscreen=function(){var a=document.documentElement;a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()},c.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},c.prototype.fullScreen=function(){var b=this;a(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){b.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?b.exitFullscreen():b.requestFullscreen()})},c.prototype.destroy=function(){this.exitFullscreen(),a(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},a.fn.lightGallery.modules.fullscreen=c}()});
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/*! lg-hash - v1.0.3 - 2017-10-19
|
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
|
3
|
-
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
|
4
|
-
|
|
5
|
-
(function (root, factory) {
|
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
|
7
|
-
// AMD. Register as an anonymous module unless amdModuleId is set
|
|
8
|
-
define(['jquery'], function (a0) {
|
|
9
|
-
return (factory(a0));
|
|
10
|
-
});
|
|
11
|
-
} else if (typeof exports === 'object') {
|
|
12
|
-
// Node. Does not work with strict CommonJS, but
|
|
13
|
-
// only CommonJS-like environments that support module.exports,
|
|
14
|
-
// like Node.
|
|
15
|
-
module.exports = factory(require('jquery'));
|
|
16
|
-
} else {
|
|
17
|
-
factory(jQuery);
|
|
18
|
-
}
|
|
19
|
-
}(this, function ($) {
|
|
20
|
-
|
|
21
|
-
(function() {
|
|
22
|
-
|
|
23
|
-
'use strict';
|
|
24
|
-
|
|
25
|
-
var defaults = {
|
|
26
|
-
hash: true
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var Hash = function(element) {
|
|
30
|
-
|
|
31
|
-
this.core = $(element).data('lightGallery');
|
|
32
|
-
|
|
33
|
-
this.core.s = $.extend({}, defaults, this.core.s);
|
|
34
|
-
|
|
35
|
-
if (this.core.s.hash) {
|
|
36
|
-
this.oldHash = window.location.hash;
|
|
37
|
-
this.init();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return this;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
Hash.prototype.init = function() {
|
|
44
|
-
var _this = this;
|
|
45
|
-
var _hash;
|
|
46
|
-
|
|
47
|
-
// Change hash value on after each slide transition
|
|
48
|
-
_this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex, index) {
|
|
49
|
-
if (history.replaceState) {
|
|
50
|
-
history.replaceState(null, null, window.location.pathname + '#lg=' + _this.core.s.galleryId + '&slide=' + index);
|
|
51
|
-
} else {
|
|
52
|
-
window.location.hash = 'lg=' + _this.core.s.galleryId + '&slide=' + index;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
// Listen hash change and change the slide according to slide value
|
|
57
|
-
$(window).on('hashchange.lg.hash', function() {
|
|
58
|
-
_hash = window.location.hash;
|
|
59
|
-
var _idx = parseInt(_hash.split('&slide=')[1], 10);
|
|
60
|
-
|
|
61
|
-
// it galleryId doesn't exist in the url close the gallery
|
|
62
|
-
if ((_hash.indexOf('lg=' + _this.core.s.galleryId) > -1)) {
|
|
63
|
-
_this.core.slide(_idx, false, false);
|
|
64
|
-
} else if (_this.core.lGalleryOn) {
|
|
65
|
-
_this.core.destroy();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
Hash.prototype.destroy = function() {
|
|
72
|
-
|
|
73
|
-
if (!this.core.s.hash) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Reset to old hash value
|
|
78
|
-
if (this.oldHash && this.oldHash.indexOf('lg=' + this.core.s.galleryId) < 0) {
|
|
79
|
-
if (history.replaceState) {
|
|
80
|
-
history.replaceState(null, null, this.oldHash);
|
|
81
|
-
} else {
|
|
82
|
-
window.location.hash = this.oldHash;
|
|
83
|
-
}
|
|
84
|
-
} else {
|
|
85
|
-
if (history.replaceState) {
|
|
86
|
-
history.replaceState(null, document.title, window.location.pathname + window.location.search);
|
|
87
|
-
} else {
|
|
88
|
-
window.location.hash = '';
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
this.core.$el.off('.lg.hash');
|
|
93
|
-
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
$.fn.lightGallery.modules.hash = Hash;
|
|
97
|
-
|
|
98
|
-
})();
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! lg-hash - v1.0.3 - 2017-10-19
|
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
|
3
|
-
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
|
4
|
-
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b={hash:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this};c.prototype.init=function(){var b,c=this;c.core.$el.on("onAfterSlide.lg.tm",function(a,b,d){history.replaceState?history.replaceState(null,null,window.location.pathname+"#lg="+c.core.s.galleryId+"&slide="+d):window.location.hash="lg="+c.core.s.galleryId+"&slide="+d}),a(window).on("hashchange.lg.hash",function(){b=window.location.hash;var a=parseInt(b.split("&slide=")[1],10);b.indexOf("lg="+c.core.s.galleryId)>-1?c.core.slide(a,!1,!1):c.core.lGalleryOn&&c.core.destroy()})},c.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},a.fn.lightGallery.modules.hash=c}()});
|