j1-template 2021.1.8 → 2021.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +4 -4
- data/_includes/themes/j1/modules/connectors/ads +18 -7
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +6 -6
- data/_includes/themes/j1/modules/connectors/analytics +17 -3
- data/_includes/themes/j1/modules/connectors/comments +22 -8
- data/_includes/themes/j1/modules/connectors/translator +20 -6
- data/_includes/themes/j1/procedures/global/select_location.proc +3 -3
- data/assets/error_pages/HTTP204.html +33 -10
- data/assets/error_pages/HTTP400.html +32 -8
- data/assets/error_pages/HTTP401.html +32 -9
- data/assets/error_pages/HTTP403.html +32 -8
- data/assets/error_pages/HTTP404.html +32 -8
- data/assets/error_pages/HTTP500.html +32 -8
- data/assets/error_pages/HTTP501.html +32 -8
- data/assets/error_pages/HTTP502.html +32 -8
- data/assets/error_pages/HTTP503.html +33 -8
- data/assets/themes/j1/adapter/js/cookieConsent.js +64 -59
- data/assets/themes/j1/adapter/js/fam.js +2 -1
- data/assets/themes/j1/adapter/js/j1.js +315 -128
- data/assets/themes/j1/adapter/js/navigator.js +5 -2
- data/assets/themes/j1/adapter/js/themer.js +137 -90
- data/assets/themes/j1/core/js/template.js +24 -4
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +24 -4
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +36 -16
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -3
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -2
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +18 -10
- data/lib/starter_web/_data/_defaults/private.default.yml +119 -0
- data/lib/starter_web/_data/j1_config.yml +1 -1
- data/lib/starter_web/_data/modules/cookieconsent.yml +1 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +11 -9
- data/lib/starter_web/_data/resources.yml +0 -4
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/dot.gitignore +1 -1
- data/lib/starter_web/index.html +3 -3
- data/lib/starter_web/package.json +2 -2
- data/lib/starter_web/pages/public/blog/navigator/archive.html +2 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +3 -2
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +20 -3
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +9 -6
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +3 -65
- data/assets/error_pages/HTTP520.html +0 -68
- data/assets/error_pages/HTTP521.html +0 -68
- data/assets/error_pages/HTTP533.html +0 -68
- data/assets/themes/j1/adapter/js/navigator.1.js +0 -896
- data/assets/themes/j1/adapter/js/navigator.2.js +0 -928
- data/assets/themes/j1/adapter/js/themer.1.js +0 -326
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.css +0 -58
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.min.css +0 -5
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.css +0 -778
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.min.css +0 -5
- data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.css +0 -981
- data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.min.css +0 -5
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.eot +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.svg +0 -47
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.ttf +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.woff +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/loading.gif +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/video-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/vimeo-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/youtube-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/animation-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/customize-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/dynamic-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/facebook-icon.svg +0 -10
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/googleplus-icon.svg +0 -30
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/html5-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/linked-in.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/module-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/play-button.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/responsive-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/thumb-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/touch-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter-icon.svg +0 -15
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/video1-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/uno.css +0 -262
- data/assets/themes/j1/modules/_lightGallery/css/themes/uno.min.css +0 -15
- data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.js +0 -1362
- data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.min.js +0 -4
- data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.js +0 -402
- data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.min.js +0 -8
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.js +0 -206
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.min.js +0 -5
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.js +0 -126
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.min.js +0 -5
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.js +0 -101
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.min.js +0 -5
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.js +0 -105
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.min.js +0 -5
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.js +0 -107
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.min.js +0 -5
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.js +0 -478
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.min.js +0 -5
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.js +0 -342
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.min.js +0 -5
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.js +0 -527
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.min.js +0 -5
- data/assets/themes/j1/modules/util/js/js.cookie.js +0 -163
- data/assets/themes/j1/modules/util/js/lite-url.js +0 -203
- data/assets/themes/j1/modules/util/js/lite-url.min.js +0 -7
- data/assets/themes/j1/modules/util/js/platform.js +0 -1260
@@ -1,5 +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(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,126 +0,0 @@
|
|
1
|
-
/*! lg-fullscreen - v1.1.0 - 2019-02-19
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
3
|
-
* Copyright (c) 2019 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 module === 'object' && module.exports) {
|
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(root["jQuery"]);
|
18
|
-
}
|
19
|
-
}(this, function ($) {
|
20
|
-
|
21
|
-
(function() {
|
22
|
-
|
23
|
-
'use strict';
|
24
|
-
|
25
|
-
var defaults = {
|
26
|
-
fullScreen: true
|
27
|
-
};
|
28
|
-
|
29
|
-
function isFullScreen() {
|
30
|
-
return (
|
31
|
-
document.fullscreenElement ||
|
32
|
-
document.mozFullScreenElement ||
|
33
|
-
document.webkitFullscreenElement ||
|
34
|
-
document.msFullscreenElement
|
35
|
-
);
|
36
|
-
}
|
37
|
-
|
38
|
-
var Fullscreen = function(element) {
|
39
|
-
|
40
|
-
// get lightGallery core plugin data
|
41
|
-
this.core = $(element).data('lightGallery');
|
42
|
-
|
43
|
-
this.$el = $(element);
|
44
|
-
|
45
|
-
// extend module defalut settings with lightGallery core settings
|
46
|
-
this.core.s = $.extend({}, defaults, this.core.s);
|
47
|
-
|
48
|
-
this.init();
|
49
|
-
|
50
|
-
return this;
|
51
|
-
};
|
52
|
-
|
53
|
-
Fullscreen.prototype.init = function() {
|
54
|
-
var fullScreen = '';
|
55
|
-
if (this.core.s.fullScreen) {
|
56
|
-
|
57
|
-
// check for fullscreen browser support
|
58
|
-
if (!document.fullscreenEnabled && !document.webkitFullscreenEnabled &&
|
59
|
-
!document.mozFullScreenEnabled && !document.msFullscreenEnabled) {
|
60
|
-
return;
|
61
|
-
} else {
|
62
|
-
fullScreen = '<span class="lg-fullscreen lg-icon"></span>';
|
63
|
-
this.core.$outer.find('.lg-toolbar').append(fullScreen);
|
64
|
-
this.fullScreen();
|
65
|
-
}
|
66
|
-
}
|
67
|
-
};
|
68
|
-
|
69
|
-
Fullscreen.prototype.requestFullscreen = function() {
|
70
|
-
var el = document.documentElement;
|
71
|
-
if (el.requestFullscreen) {
|
72
|
-
el.requestFullscreen();
|
73
|
-
} else if (el.msRequestFullscreen) {
|
74
|
-
el.msRequestFullscreen();
|
75
|
-
} else if (el.mozRequestFullScreen) {
|
76
|
-
el.mozRequestFullScreen();
|
77
|
-
} else if (el.webkitRequestFullscreen) {
|
78
|
-
el.webkitRequestFullscreen();
|
79
|
-
}
|
80
|
-
};
|
81
|
-
|
82
|
-
Fullscreen.prototype.exitFullscreen = function() {
|
83
|
-
if (document.exitFullscreen) {
|
84
|
-
document.exitFullscreen();
|
85
|
-
} else if (document.msExitFullscreen) {
|
86
|
-
document.msExitFullscreen();
|
87
|
-
} else if (document.mozCancelFullScreen) {
|
88
|
-
document.mozCancelFullScreen();
|
89
|
-
} else if (document.webkitExitFullscreen) {
|
90
|
-
document.webkitExitFullscreen();
|
91
|
-
}
|
92
|
-
};
|
93
|
-
|
94
|
-
// https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode
|
95
|
-
Fullscreen.prototype.fullScreen = function() {
|
96
|
-
var _this = this;
|
97
|
-
|
98
|
-
$(document).on('fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg', function() {
|
99
|
-
_this.core.$outer.toggleClass('lg-fullscreen-on');
|
100
|
-
});
|
101
|
-
|
102
|
-
this.core.$outer.find('.lg-fullscreen').on('click.lg', function() {
|
103
|
-
if (isFullScreen()) {
|
104
|
-
_this.exitFullscreen();
|
105
|
-
} else {
|
106
|
-
_this.requestFullscreen();
|
107
|
-
}
|
108
|
-
});
|
109
|
-
|
110
|
-
};
|
111
|
-
|
112
|
-
Fullscreen.prototype.destroy = function() {
|
113
|
-
|
114
|
-
// exit from fullscreen if activated
|
115
|
-
if(isFullScreen()) {
|
116
|
-
this.exitFullscreen();
|
117
|
-
}
|
118
|
-
|
119
|
-
$(document).off('fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg');
|
120
|
-
};
|
121
|
-
|
122
|
-
$.fn.lightGallery.modules.fullscreen = Fullscreen;
|
123
|
-
|
124
|
-
})();
|
125
|
-
|
126
|
-
}));
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/*! lg-fullscreen - v1.1.0 - 2019-02-19
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
3
|
-
* Copyright (c) 2019 Sachin N; Licensed GPLv3 */
|
4
|
-
|
5
|
-
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}var c={fullScreen:!0},d=function(b){return this.core=a(b).data("lightGallery"),this.$el=a(b),this.core.s=a.extend({},c,this.core.s),this.init(),this};d.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()}},d.prototype.requestFullscreen=function(){var a=document.documentElement;a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()},d.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},d.prototype.fullScreen=function(){var c=this;a(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){c.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){b()?c.exitFullscreen():c.requestFullscreen()})},d.prototype.destroy=function(){b()&&this.exitFullscreen(),a(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},a.fn.lightGallery.modules.fullscreen=d}()});
|
@@ -1,101 +0,0 @@
|
|
1
|
-
/*! lg-hash - v1.0.4 - 2017-12-20
|
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 + window.location.search + '#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,5 +0,0 @@
|
|
1
|
-
/*! lg-hash - v1.0.4 - 2017-12-20
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
3
|
-
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
4
|
-
|
5
|
-
!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+window.location.search+"#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}()});
|
@@ -1,105 +0,0 @@
|
|
1
|
-
/*! lg-pager - v1.0.2 - 2017-01-22
|
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
|
-
pager: false
|
27
|
-
};
|
28
|
-
|
29
|
-
var Pager = function(element) {
|
30
|
-
|
31
|
-
this.core = $(element).data('lightGallery');
|
32
|
-
|
33
|
-
this.$el = $(element);
|
34
|
-
this.core.s = $.extend({}, defaults, this.core.s);
|
35
|
-
if (this.core.s.pager && this.core.$items.length > 1) {
|
36
|
-
this.init();
|
37
|
-
}
|
38
|
-
|
39
|
-
return this;
|
40
|
-
};
|
41
|
-
|
42
|
-
Pager.prototype.init = function() {
|
43
|
-
var _this = this;
|
44
|
-
var pagerList = '';
|
45
|
-
var $pagerCont;
|
46
|
-
var $pagerOuter;
|
47
|
-
var timeout;
|
48
|
-
|
49
|
-
_this.core.$outer.find('.lg').append('<div class="lg-pager-outer"></div>');
|
50
|
-
|
51
|
-
if (_this.core.s.dynamic) {
|
52
|
-
for (var i = 0; i < _this.core.s.dynamicEl.length; i++) {
|
53
|
-
pagerList += '<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="' + _this.core.s.dynamicEl[i].thumb + '" /></div></span>';
|
54
|
-
}
|
55
|
-
} else {
|
56
|
-
_this.core.$items.each(function() {
|
57
|
-
|
58
|
-
if (!_this.core.s.exThumbImage) {
|
59
|
-
pagerList += '<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="' + $(this).find('img').attr('src') + '" /></div></span>';
|
60
|
-
} else {
|
61
|
-
pagerList += '<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="' + $(this).attr(_this.core.s.exThumbImage) + '" /></div></span>';
|
62
|
-
}
|
63
|
-
|
64
|
-
});
|
65
|
-
}
|
66
|
-
|
67
|
-
$pagerOuter = _this.core.$outer.find('.lg-pager-outer');
|
68
|
-
|
69
|
-
$pagerOuter.html(pagerList);
|
70
|
-
|
71
|
-
$pagerCont = _this.core.$outer.find('.lg-pager-cont');
|
72
|
-
$pagerCont.on('click.lg touchend.lg', function() {
|
73
|
-
var _$this = $(this);
|
74
|
-
_this.core.index = _$this.index();
|
75
|
-
_this.core.slide(_this.core.index, false, true, false);
|
76
|
-
});
|
77
|
-
|
78
|
-
$pagerOuter.on('mouseover.lg', function() {
|
79
|
-
clearTimeout(timeout);
|
80
|
-
$pagerOuter.addClass('lg-pager-hover');
|
81
|
-
});
|
82
|
-
|
83
|
-
$pagerOuter.on('mouseout.lg', function() {
|
84
|
-
timeout = setTimeout(function() {
|
85
|
-
$pagerOuter.removeClass('lg-pager-hover');
|
86
|
-
});
|
87
|
-
});
|
88
|
-
|
89
|
-
_this.core.$el.on('onBeforeSlide.lg.tm', function(e, prevIndex, index) {
|
90
|
-
$pagerCont.removeClass('lg-pager-active');
|
91
|
-
$pagerCont.eq(index).addClass('lg-pager-active');
|
92
|
-
});
|
93
|
-
|
94
|
-
};
|
95
|
-
|
96
|
-
Pager.prototype.destroy = function() {
|
97
|
-
|
98
|
-
};
|
99
|
-
|
100
|
-
$.fn.lightGallery.modules.pager = Pager;
|
101
|
-
|
102
|
-
})();
|
103
|
-
|
104
|
-
|
105
|
-
}));
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/*! lg-pager - v1.0.2 - 2017-01-22
|
2
|
-
* http://sachinchoolur.github.io/lightGallery
|
3
|
-
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
|
4
|
-
|
5
|
-
!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={pager:!1},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),this.core.s=a.extend({},b,this.core.s),this.core.s.pager&&this.core.$items.length>1&&this.init(),this};c.prototype.init=function(){var b,c,d,e=this,f="";if(e.core.$outer.find(".lg").append('<div class="lg-pager-outer"></div>'),e.core.s.dynamic)for(var g=0;g<e.core.s.dynamicEl.length;g++)f+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+e.core.s.dynamicEl[g].thumb+'" /></div></span>';else e.core.$items.each(function(){f+=e.core.s.exThumbImage?'<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+a(this).attr(e.core.s.exThumbImage)+'" /></div></span>':'<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+a(this).find("img").attr("src")+'" /></div></span>'});c=e.core.$outer.find(".lg-pager-outer"),c.html(f),b=e.core.$outer.find(".lg-pager-cont"),b.on("click.lg touchend.lg",function(){var b=a(this);e.core.index=b.index(),e.core.slide(e.core.index,!1,!0,!1)}),c.on("mouseover.lg",function(){clearTimeout(d),c.addClass("lg-pager-hover")}),c.on("mouseout.lg",function(){d=setTimeout(function(){c.removeClass("lg-pager-hover")})}),e.core.$el.on("onBeforeSlide.lg.tm",function(a,c,d){b.removeClass("lg-pager-active"),b.eq(d).addClass("lg-pager-active")})},c.prototype.destroy=function(){},a.fn.lightGallery.modules.pager=c}()});
|
@@ -1,107 +0,0 @@
|
|
1
|
-
/*! lg-share - v1.1.0 - 2017-10-03
|
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
|
-
share: true,
|
27
|
-
facebook: true,
|
28
|
-
facebookDropdownText: 'Facebook',
|
29
|
-
twitter: true,
|
30
|
-
twitterDropdownText: 'Twitter',
|
31
|
-
googlePlus: true,
|
32
|
-
googlePlusDropdownText: 'GooglePlus',
|
33
|
-
pinterest: true,
|
34
|
-
pinterestDropdownText: 'Pinterest'
|
35
|
-
};
|
36
|
-
|
37
|
-
var Share = function(element) {
|
38
|
-
|
39
|
-
this.core = $(element).data('lightGallery');
|
40
|
-
|
41
|
-
this.core.s = $.extend({}, defaults, this.core.s);
|
42
|
-
if (this.core.s.share) {
|
43
|
-
this.init();
|
44
|
-
}
|
45
|
-
|
46
|
-
return this;
|
47
|
-
};
|
48
|
-
|
49
|
-
Share.prototype.init = function() {
|
50
|
-
var _this = this;
|
51
|
-
var shareHtml = '<span id="lg-share" class="lg-icon">' +
|
52
|
-
'<ul class="lg-dropdown" style="position: absolute;">';
|
53
|
-
shareHtml += _this.core.s.facebook ? '<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">' + this.core.s.facebookDropdownText + '</span></a></li>' : '';
|
54
|
-
shareHtml += _this.core.s.twitter ? '<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">' + this.core.s.twitterDropdownText + '</span></a></li>' : '';
|
55
|
-
shareHtml += _this.core.s.googlePlus ? '<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">' + this.core.s.googlePlusDropdownText + '</span></a></li>' : '';
|
56
|
-
shareHtml += _this.core.s.pinterest ? '<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">' + this.core.s.pinterestDropdownText + '</span></a></li>' : '';
|
57
|
-
shareHtml += '</ul></span>';
|
58
|
-
|
59
|
-
this.core.$outer.find('.lg-toolbar').append(shareHtml);
|
60
|
-
this.core.$outer.find('.lg').append('<div id="lg-dropdown-overlay"></div>');
|
61
|
-
$('#lg-share').on('click.lg', function(){
|
62
|
-
_this.core.$outer.toggleClass('lg-dropdown-active');
|
63
|
-
});
|
64
|
-
|
65
|
-
$('#lg-dropdown-overlay').on('click.lg', function(){
|
66
|
-
_this.core.$outer.removeClass('lg-dropdown-active');
|
67
|
-
});
|
68
|
-
|
69
|
-
_this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex, index) {
|
70
|
-
|
71
|
-
setTimeout(function() {
|
72
|
-
|
73
|
-
$('#lg-share-facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + (encodeURIComponent(_this.getSahreProps(index, 'facebookShareUrl') || window.location.href)));
|
74
|
-
|
75
|
-
$('#lg-share-twitter').attr('href', 'https://twitter.com/intent/tweet?text=' + _this.getSahreProps(index, 'tweetText') + '&url=' + (encodeURIComponent(_this.getSahreProps(index, 'twitterShareUrl') || window.location.href)));
|
76
|
-
|
77
|
-
$('#lg-share-googleplus').attr('href', 'https://plus.google.com/share?url=' + (encodeURIComponent(_this.getSahreProps(index, 'googleplusShareUrl') || window.location.href)));
|
78
|
-
|
79
|
-
$('#lg-share-pinterest').attr('href', 'http://www.pinterest.com/pin/create/button/?url=' + (encodeURIComponent(_this.getSahreProps(index, 'pinterestShareUrl') || window.location.href)) + '&media=' + encodeURIComponent(_this.getSahreProps(index, 'src')) + '&description=' + _this.getSahreProps(index, 'pinterestText'));
|
80
|
-
|
81
|
-
}, 100);
|
82
|
-
});
|
83
|
-
};
|
84
|
-
|
85
|
-
Share.prototype.getSahreProps = function(index, prop){
|
86
|
-
var shareProp = '';
|
87
|
-
if(this.core.s.dynamic) {
|
88
|
-
shareProp = this.core.s.dynamicEl[index][prop];
|
89
|
-
} else {
|
90
|
-
var _href = this.core.$items.eq(index).attr('href');
|
91
|
-
var _prop = this.core.$items.eq(index).data(prop);
|
92
|
-
shareProp = prop === 'src' ? _href || _prop : _prop;
|
93
|
-
}
|
94
|
-
return shareProp;
|
95
|
-
};
|
96
|
-
|
97
|
-
Share.prototype.destroy = function() {
|
98
|
-
|
99
|
-
};
|
100
|
-
|
101
|
-
$.fn.lightGallery.modules.share = Share;
|
102
|
-
|
103
|
-
})();
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
}));
|