j1-template 2021.1.0 → 2021.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_metadata_generator.html +54 -39
  3. data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +1 -1
  4. data/_includes/themes/j1/modules/connectors/ads +3 -5
  5. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +9 -5
  6. data/_includes/themes/j1/modules/connectors/analytics +4 -2
  7. data/_includes/themes/j1/modules/connectors/comments +7 -6
  8. data/_includes/themes/j1/modules/connectors/translator +3 -4
  9. data/_includes/themes/j1/modules/navigator/generator.html +4 -40
  10. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +2 -2
  11. data/_includes/themes/j1/procedures/global/create_bs_button.proc +64 -22
  12. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +14 -10
  13. data/_layouts/default.html +4 -7
  14. data/apps/public/cc/index.adoc +13 -4
  15. data/assets/data/authclient.html +234 -228
  16. data/assets/data/banner.html +34 -31
  17. data/assets/data/cookieconsent.html +249 -0
  18. data/assets/data/fam.html +5 -0
  19. data/assets/data/footer.html +4 -0
  20. data/assets/data/gallery_customizer.html +14 -4
  21. data/assets/data/menu.html +7 -2
  22. data/assets/data/mmenu.html +6 -2
  23. data/assets/data/mmenu_sidebar.html +5 -1
  24. data/assets/data/mmenu_toc.html +4 -0
  25. data/assets/data/panel.html +23 -15
  26. data/assets/data/quicklinks.html +24 -17
  27. data/assets/error_pages/HTTP204.html +2 -1
  28. data/assets/error_pages/HTTP400.html +2 -1
  29. data/assets/error_pages/HTTP401.html +2 -1
  30. data/assets/error_pages/HTTP403.html +2 -1
  31. data/assets/error_pages/HTTP404.html +2 -1
  32. data/assets/error_pages/HTTP500.html +2 -1
  33. data/assets/error_pages/HTTP501.html +2 -1
  34. data/assets/error_pages/HTTP502.html +2 -1
  35. data/assets/error_pages/HTTP503.html +2 -1
  36. data/assets/error_pages/HTTP520.html +2 -1
  37. data/assets/error_pages/HTTP521.html +2 -1
  38. data/assets/error_pages/HTTP533.html +2 -1
  39. data/assets/themes/j1/adapter/js/{cookiebar.js → cookieConsent.js} +102 -54
  40. data/assets/themes/j1/adapter/js/j1.js +53 -20
  41. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +3 -2
  42. data/assets/themes/j1/adapter/js/mmenu.js +8 -4
  43. data/assets/themes/j1/adapter/js/navigator.js +77 -22
  44. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +17 -14
  45. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
  46. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +3960 -240
  47. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
  48. data/assets/themes/j1/core/js/template.js +3 -9
  49. data/assets/themes/j1/core/js/template.js.map +1 -1
  50. data/assets/themes/j1/core/js/template.min.js +3 -9
  51. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  52. data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.css +58 -0
  53. data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.min.css +5 -0
  54. data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.css +778 -0
  55. data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.min.css +5 -0
  56. data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.css +981 -0
  57. data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.min.css +5 -0
  58. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.eot +0 -0
  59. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.svg +47 -0
  60. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.ttf +0 -0
  61. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.woff +0 -0
  62. data/assets/themes/j1/modules/_lightGallery/css/img/loading.gif +0 -0
  63. data/assets/themes/j1/modules/_lightGallery/css/img/video-play.png +0 -0
  64. data/assets/themes/j1/modules/_lightGallery/css/img/vimeo-play.png +0 -0
  65. data/assets/themes/j1/modules/_lightGallery/css/img/youtube-play.png +0 -0
  66. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/animation-w.png +0 -0
  67. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/customize-w.png +0 -0
  68. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/dynamic-w.png +0 -0
  69. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/facebook-icon.svg +10 -0
  70. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/googleplus-icon.svg +30 -0
  71. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/html5-w.png +0 -0
  72. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/linked-in.png +0 -0
  73. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/module-w.png +0 -0
  74. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/play-button.png +0 -0
  75. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/responsive-w.png +0 -0
  76. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/thumb-w.png +0 -0
  77. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/touch-w.png +0 -0
  78. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter-icon.svg +15 -0
  79. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter.png +0 -0
  80. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/video1-w.png +0 -0
  81. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom-w.png +0 -0
  82. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom.png +0 -0
  83. data/assets/themes/j1/modules/_lightGallery/css/themes/uno.css +262 -0
  84. data/assets/themes/j1/modules/_lightGallery/css/themes/uno.min.css +15 -0
  85. data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.js +1362 -0
  86. data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.min.js +4 -0
  87. data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.js +402 -0
  88. data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.min.js +8 -0
  89. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.js +206 -0
  90. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.min.js +5 -0
  91. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.js +126 -0
  92. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.min.js +5 -0
  93. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.js +101 -0
  94. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.min.js +5 -0
  95. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.js +105 -0
  96. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.min.js +5 -0
  97. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.js +107 -0
  98. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.min.js +5 -0
  99. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.js +478 -0
  100. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.min.js +5 -0
  101. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.js +342 -0
  102. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.min.js +5 -0
  103. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.js +527 -0
  104. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.min.js +5 -0
  105. data/assets/themes/j1/modules/cookieConsent/LICENSE +21 -0
  106. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +286 -0
  107. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +28 -0
  108. data/assets/themes/j1/modules/iframeResizer/examples/frame.absolute.html +4 -2
  109. data/assets/themes/j1/modules/iframeResizer/examples/frame.content.html +4 -3
  110. data/assets/themes/j1/modules/iframeResizer/examples/frame.hover.html +4 -2
  111. data/assets/themes/j1/modules/iframeResizer/examples/frame.nested.html +4 -2
  112. data/assets/themes/j1/modules/iframeResizer/examples/frame.textarea.html +4 -2
  113. data/assets/themes/j1/modules/iframeResizer/examples/frame.tolerance.html +4 -2
  114. data/assets/themes/j1/modules/iframeResizer/examples/index.html +2 -0
  115. data/assets/themes/j1/modules/iframeResizer/examples/two.html +4 -2
  116. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +1368 -0
  117. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.min.js +10 -0
  118. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +344 -0
  119. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.min.js +7 -0
  120. data/assets/themes/j1/modules/util/js/domready.js +146 -0
  121. data/assets/themes/j1/modules/util/js/gtag-opt-in.js +1 -0
  122. data/lib/j1/version.rb +1 -1
  123. data/lib/starter_web/Gemfile +1 -1
  124. data/lib/starter_web/_config.yml +74 -77
  125. data/lib/starter_web/_data/_defaults/resources.yml +11 -8
  126. data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -0
  127. data/lib/starter_web/_data/blocks/banner.yml +30 -24
  128. data/lib/starter_web/_data/blocks/panel.yml +9 -7
  129. data/lib/starter_web/_data/builder/blog_navigator.yml +6 -1
  130. data/lib/starter_web/_data/j1_config.yml +2 -2
  131. data/lib/starter_web/_data/layouts/blog_archive.yml +9 -0
  132. data/lib/starter_web/_data/layouts/collection.yml +10 -0
  133. data/lib/starter_web/_data/layouts/default.yml +25 -59
  134. data/lib/starter_web/_data/layouts/home.yml +6 -5
  135. data/lib/starter_web/_data/layouts/page.yml +1 -1
  136. data/lib/starter_web/_data/modules/{cookiebar.yml → cookieconsent.yml} +4 -4
  137. data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -0
  138. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +135 -0
  139. data/lib/starter_web/_data/modules/defaults/navigator.yml +5 -2
  140. data/lib/starter_web/_data/modules/navigator.yml +24 -21
  141. data/lib/starter_web/_data/modules/navigator_menu.yml +2 -2
  142. data/lib/starter_web/_data/pages/builder.yml +7 -7
  143. data/lib/starter_web/_data/private.yml +6 -6
  144. data/lib/starter_web/_data/resources.yml +13 -8
  145. data/lib/starter_web/_includes/attributes.asciidoc +10 -1
  146. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  147. data/lib/starter_web/assets/images/modules/attics/christa-dodoo-1920x1280.jpg +0 -0
  148. data/lib/starter_web/assets/images/modules/attics/{cookies-1920x1200-bw.jpg → cookies-1920x1200.jpg} +0 -0
  149. data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
  150. data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
  151. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +3 -9
  152. data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +4 -11
  153. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -8
  154. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +2 -8
  155. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +2 -8
  156. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +2 -9
  157. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +2 -9
  158. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +2 -9
  159. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +3 -1
  160. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +3 -1
  161. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +3 -1
  162. data/lib/starter_web/index.html +7 -13
  163. data/lib/starter_web/package.json +3 -3
  164. data/lib/starter_web/pages/public/asciidoc_skeletons/book/000_intro.adoc +7 -1
  165. data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +5 -1
  166. data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +6 -1
  167. data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +5 -0
  168. data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +6 -1
  169. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +1 -1
  170. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +1 -1
  171. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +6 -1
  172. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +6 -1
  173. data/lib/starter_web/pages/public/blog/navigator/archive.html +40 -24
  174. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +48 -28
  175. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +45 -28
  176. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +41 -13
  177. data/lib/starter_web/pages/public/blog/navigator/index.html +1 -4
  178. data/lib/starter_web/pages/public/cookieConsent.adoc +93 -0
  179. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
  180. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +244 -0
  181. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +1 -1
  182. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
  183. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
  184. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +3 -2
  185. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
  186. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
  187. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
  188. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -1
  189. data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -18
  190. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +7 -5
  191. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +7 -6
  192. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +111 -214
  193. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +7 -5
  194. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +7 -2
  195. data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1 -1
  196. data/lib/starter_web/pages/public/previewer/iframer.adoc +1 -1
  197. data/lib/starter_web/pages/public/previewer/justified_gallery.html +1 -1
  198. data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +1 -1
  199. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +1 -1
  200. data/lib/starter_web/pages/public/previewer/rouge.adoc +1 -1
  201. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +1 -1
  202. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  203. data/lib/starter_web/utilsrv/package.json +1 -1
  204. metadata +74 -14
  205. data/_includes/themes/j1/modules/connectors/analytic/google-analytics-legacy.html +0 -36
  206. data/assets/data/cookiebar.html +0 -281
  207. data/lib/starter_web/_data/_defaults/private.yml +0 -156
  208. data/lib/starter_web/_data/modules/defaults/cookiebar.yml +0 -132
  209. data/lib/starter_web/_data/private@default.yml +0 -119
  210. data/lib/starter_web/_data/private@localhost.yml +0 -156
  211. data/lib/starter_web/collections/posts/public/series/_posts/_includes/attributes.asciidoc +0 -37
  212. data/lib/starter_web/collections/posts/public/series/_posts/_includes/documents/readme +0 -0
  213. data/lib/starter_web/collections/posts/public/series/_posts/_includes/tables/debug_variables.asciidoc +0 -47
@@ -0,0 +1,5 @@
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}()});
@@ -0,0 +1,126 @@
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
+ }));
@@ -0,0 +1,5 @@
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}()});
@@ -0,0 +1,101 @@
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
+ }));
@@ -0,0 +1,5 @@
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}()});
@@ -0,0 +1,105 @@
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
+ }));
@@ -0,0 +1,5 @@
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}()});
@@ -0,0 +1,107 @@
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
+ }));