j1-template 2021.3.2 → 2022.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +4 -4
  3. data/_includes/themes/j1/layouts/content_generator_post.html +3 -3
  4. data/_includes/themes/j1/modules/navigator/generator.html +9 -11
  5. data/_includes/themes/j1/modules/search/docsearch.html +1 -1
  6. data/_includes/themes/j1/procedures/global/create_bs_button.proc +5 -5
  7. data/_includes/themes/j1/procedures/global/create_word_cloud.proc +3 -1
  8. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  9. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +1 -1
  10. data/_layouts/default.html +66 -22
  11. data/_layouts/home.html +1 -1
  12. data/_layouts/raw.html +2 -1
  13. data/assets/data/article_navigator/index.html +1 -1
  14. data/assets/data/banner.html +6 -12
  15. data/assets/data/cookieconsent.html +11 -11
  16. data/assets/data/{fam.html → fab.html} +41 -24
  17. data/assets/data/gallery_customizer.html +2 -2
  18. data/assets/data/panel.html +12 -18
  19. data/assets/data/private.json +5 -1
  20. data/assets/data/quicklinks.html +4 -5
  21. data/assets/data/themes.bootswatch.json +75 -0
  22. data/assets/data/themes.json +6 -6
  23. data/assets/data/translator.html +15 -15
  24. data/assets/error_pages/HTTP445.html +110 -0
  25. data/assets/themes/j1/adapter/js/bmd.js +1 -1
  26. data/assets/themes/j1/adapter/js/cookieConsent.js +7 -1
  27. data/assets/themes/j1/adapter/js/{fam.js → fab.js} +114 -111
  28. data/assets/themes/j1/adapter/js/j1.js +202 -142
  29. data/assets/themes/j1/adapter/js/mmenu.js +18 -24
  30. data/assets/themes/j1/adapter/js/navigator.js +3 -1
  31. data/assets/themes/j1/adapter/js/toccer.js +37 -76
  32. data/assets/themes/j1/adapter/js/translator.js +6 -0
  33. data/assets/themes/j1/core/country-flags/css/theme/uno.min.css +15 -0
  34. data/assets/themes/j1/core/css/icon-fonts/mdi.css +22307 -0
  35. data/assets/themes/j1/core/css/icon-fonts/mdi.min.css +1 -0
  36. data/assets/themes/j1/core/css/icon-fonts/mdil.css +1222 -0
  37. data/assets/themes/j1/core/css/icon-fonts/mdil.min.css +1 -0
  38. data/assets/themes/j1/core/css/icon-fonts/twemoji.css +4 -0
  39. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +5341 -4730
  40. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +3 -1
  41. data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.css +8301 -0
  42. data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.min.css +3 -0
  43. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +5293 -4702
  44. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +3 -1
  45. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +11929 -12546
  46. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +18 -18
  47. data/assets/themes/j1/core/css/vendor.css +2 -28
  48. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  49. data/assets/themes/j1/core/js/template.js +41 -27
  50. data/assets/themes/j1/core/js/template.min.js +5 -5
  51. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  52. data/assets/themes/j1/modules/bmd/js/bmd.js +2280 -0
  53. data/assets/themes/j1/modules/bmd/js/bmd.min.js +20 -0
  54. data/assets/themes/j1/modules/bootstrap/js/bootstrap.js +5072 -0
  55. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js +7 -0
  56. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js.map +1 -0
  57. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +19 -17
  58. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +1 -1
  59. data/assets/themes/j1/modules/{fam/css/theme/uno/fam.css → fab/css/theme/uno/fab.css} +32 -28
  60. data/assets/themes/j1/modules/{fam/css/theme/uno/fam.min.css → fab/css/theme/uno/fab.min.css} +3 -3
  61. data/assets/themes/j1/modules/{materialize → fab}/js/cash.js +20 -2
  62. data/assets/themes/j1/modules/{fam/js/fam.js → fab/js/fab.js} +4 -2
  63. data/assets/themes/j1/modules/{util → gtag-opt-in}/js/gtag-opt-in.js +15 -1
  64. data/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.min.js +15 -0
  65. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +4 -1
  66. data/assets/themes/j1/modules/materialize/js/bin/materialize.js +12374 -0
  67. data/assets/themes/j1/modules/materialize/js/bin/materialize.min.js +6 -0
  68. data/assets/themes/j1/modules/materialize/js/{tapTarget.js → tapTarget.cash.js} +0 -0
  69. data/assets/themes/j1/modules/materialize/js/tapTarget.jQuery.js +187 -0
  70. data/assets/themes/j1/modules/popper/js/popper.js +1670 -2346
  71. data/assets/themes/j1/modules/popper/js/popper.min.js +6 -4
  72. data/assets/themes/j1/modules/popper/js/popper.min.js.map +1 -1
  73. data/assets/themes/j1/modules/translator/js/translator.js +6 -2
  74. data/assets/themes/j1/modules/translator/js/translator.min.js +1 -1
  75. data/lib/j1/version.rb +1 -1
  76. data/lib/starter_web/Gemfile +1 -1
  77. data/lib/starter_web/_config.yml +21 -24
  78. data/lib/starter_web/_data/blocks/banner.yml +22 -7
  79. data/lib/starter_web/_data/blocks/panel.yml +2 -2
  80. data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +42 -35
  81. data/lib/starter_web/_data/j1_config.yml +1 -1
  82. data/lib/starter_web/_data/layouts/article_navigator.yml +1 -1
  83. data/lib/starter_web/_data/layouts/blog_archive.yml +1 -1
  84. data/lib/starter_web/_data/layouts/collection.yml +1 -1
  85. data/lib/starter_web/_data/layouts/home.yml +5 -5
  86. data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -1
  87. data/lib/starter_web/_data/layouts/page.yml +1 -1
  88. data/lib/starter_web/_data/layouts/post.yml +1 -1
  89. data/lib/starter_web/_data/modules/defaults/{fam.yml → fab.yml} +8 -7
  90. data/lib/starter_web/_data/modules/defaults/navigator.yml +3 -0
  91. data/lib/starter_web/_data/modules/defaults/rtable.yml +2 -1
  92. data/lib/starter_web/_data/modules/defaults/scoller.yml +33 -0
  93. data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
  94. data/lib/starter_web/_data/modules/defaults/toccer.yml +5 -4
  95. data/lib/starter_web/_data/modules/{fam.yml → fab.yml} +31 -31
  96. data/lib/starter_web/_data/modules/scroller.yml +2 -2
  97. data/lib/starter_web/_data/modules/toccer.yml +3 -5
  98. data/lib/starter_web/_data/resources.yml +45 -31
  99. data/lib/starter_web/_includes/attributes.asciidoc +48 -48
  100. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  101. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -4
  102. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +2 -2
  103. data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +2 -2
  104. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +2 -2
  105. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +1 -1
  106. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +1 -1
  107. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +2 -2
  108. data/lib/starter_web/index.html +1 -1
  109. data/lib/starter_web/package.json +1 -1
  110. data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +244 -0
  111. data/lib/starter_web/pages/_test_pages/_includes/attributes.asciidoc +110 -0
  112. data/lib/starter_web/pages/_test_pages/_includes/documents/100_gistblock.asciidoc +28 -0
  113. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +14 -0
  114. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +11 -0
  115. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +11 -0
  116. data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +11 -0
  117. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +11 -0
  118. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +11 -0
  119. data/lib/starter_web/pages/_test_pages/_includes/documents/410_table_bs_modal_examples.asciidoc +47 -0
  120. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +11 -0
  121. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +11 -0
  122. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +11 -0
  123. data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +337 -0
  124. data/lib/starter_web/pages/_test_pages/_includes/documents/tables/bs_modal_examples.asciidoc +47 -0
  125. data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +220 -0
  126. data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +177 -0
  127. data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +148 -0
  128. data/lib/starter_web/pages/_test_pages/attribute-changes-01-tester.adoc +226 -0
  129. data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +109 -0
  130. data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +127 -0
  131. data/lib/starter_web/pages/_test_pages/card-tester.adoc +128 -0
  132. data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +96 -0
  133. data/lib/starter_web/pages/_test_pages/deepl.0.adoc +258 -0
  134. data/lib/starter_web/pages/_test_pages/deepl.adoc +204 -0
  135. data/lib/starter_web/pages/_test_pages/desandro-button.adoc +171 -0
  136. data/lib/starter_web/pages/_test_pages/desandro.adoc +147 -0
  137. data/lib/starter_web/pages/_test_pages/flipcard-1-tester.adoc +308 -0
  138. data/lib/starter_web/pages/_test_pages/formular-01-tester.adoc +167 -0
  139. data/lib/starter_web/pages/_test_pages/formular-02-tester.adoc +727 -0
  140. data/lib/starter_web/pages/_test_pages/google-translate-tester.0.adoc +113 -0
  141. data/lib/starter_web/pages/_test_pages/google-translate-tester.1.adoc +233 -0
  142. data/lib/starter_web/pages/_test_pages/google-translate-tester.3.adoc +149 -0
  143. data/lib/starter_web/pages/_test_pages/google-translate-tester.4.adoc +239 -0
  144. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-2.adoc +183 -0
  145. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-3.adoc +235 -0
  146. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-4.adoc +222 -0
  147. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-5.adoc +119 -0
  148. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.1.adoc +236 -0
  149. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +225 -0
  150. data/lib/starter_web/pages/_test_pages/list-group-tester.adoc +265 -0
  151. data/lib/starter_web/pages/_test_pages/tictok.adoc +127 -0
  152. data/lib/starter_web/pages/public/about/about_site.adoc +1 -1
  153. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +1 -1
  154. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +1 -1
  155. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +1 -1
  156. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.a2p +1 -1
  157. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  158. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  159. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  160. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +5 -5
  161. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +3 -3
  162. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +3 -3
  163. data/lib/starter_web/pages/public/blog/navigator/archive.html +3 -3
  164. data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
  165. data/lib/starter_web/pages/public/learn/quickstart.adoc +2 -2
  166. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
  167. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +2 -2
  168. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +2 -2
  169. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +2 -2
  170. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +2 -2
  171. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +2 -2
  172. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +2 -2
  173. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +2 -2
  174. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +13 -11
  175. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
  176. data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -2
  177. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +2 -2
  178. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +2 -2
  179. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +2 -2
  180. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +2 -2
  181. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +2 -2
  182. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +2 -2
  183. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -2
  184. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -2
  185. data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +1 -1
  186. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +2 -2
  187. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +1578 -666
  188. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  189. data/lib/starter_web/utilsrv/package.json +1 -1
  190. metadata +73 -20
  191. data/assets/themes/j1/modules/bmd/css/bootstrap-material-design.css +0 -12177
  192. data/assets/themes/j1/modules/bmd/css/bootstrap-material-design.min.css +0 -8
  193. data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.full.js +0 -6930
  194. data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.js +0 -6936
  195. data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.js.map +0 -1
  196. data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.min.js +0 -1
  197. data/assets/themes/j1/modules/popper/js/popper.js.map +0 -1
  198. data/assets/themes/j1/modules/util/js/domready.js +0 -146
@@ -24,7 +24,6 @@
24
24
  # outside of J1 Template!
25
25
  # -----------------------------------------------------------------------------
26
26
  */
27
- //'use strict';
28
27
 
29
28
  // -----------------------------------------------------------------------------
30
29
  // ESLint shimming
@@ -37,6 +36,7 @@
37
36
  /* eslint JSUnfilteredForInLoop: "off" */
38
37
  // -----------------------------------------------------------------------------
39
38
 
39
+ 'use strict';
40
40
  function CookieConsent(props) {
41
41
  var logger = log4javascript.getLogger('j1.core.bsCookieConsent');
42
42
  var self = this;
@@ -89,8 +89,8 @@ function CookieConsent(props) {
89
89
  var Cookie = {
90
90
  set: function (name, value, days, cookieSameSite, cookieSecure) {
91
91
  var value_encoded = window.btoa(value);
92
- var expires = "";
93
- if (days) {
92
+ var expires = '; expires=Thu, 01 Jan 1970 00:00:00 UTC';
93
+ if (days>0) {
94
94
  var date = new Date();
95
95
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
96
96
  expires = "; expires=" + date.toUTCString();
@@ -188,8 +188,11 @@ function CookieConsent(props) {
188
188
  self.modal = document.getElementById(self.props.dialogContainerID);
189
189
  if (!self.modal) {
190
190
  logger.info('\n' + 'load consent modal');
191
+
191
192
  self.modal = document.createElement("div");
192
193
  self.modal.id = self.props.dialogContainerID;
194
+ self.modal.style.display = 'none';
195
+
193
196
  self.modal.setAttribute("class", "modal fade");
194
197
  self.modal.setAttribute("tabindex", "-1");
195
198
  self.modal.setAttribute("role", "dialog");
@@ -215,8 +218,9 @@ function CookieConsent(props) {
215
218
  $.get(templateUrl)
216
219
  .done(function (data) {
217
220
  logger.info('\n' + 'loading consent modal: successfully');
218
- self.modal.innerHTML = data;
219
- self.modal.innerHTML = $('#' + self.props.xhrDataElement).eq(0).html();
221
+ self.modal.innerHTML = data;
222
+ self.modal.innerHTML = $('#' + self.props.xhrDataElement).eq(0).html();
223
+ self.modal.style.display = 'block';
220
224
 
221
225
  $(self.modal).modal({
222
226
  backdrop: "static",
@@ -259,6 +263,8 @@ function CookieConsent(props) {
259
263
  agreeAll();
260
264
  updateOptionsFromCookie();
261
265
  });
266
+
267
+ self.$modal.modal('show');
262
268
  })
263
269
  .fail(function () {
264
270
  logger.error('\n' + 'loading consent modal: failed');
@@ -318,16 +324,11 @@ function CookieConsent(props) {
318
324
  }
319
325
 
320
326
  function doNotAgree() {
321
- Cookie.set(self.props.cookieName, JSON.stringify(gatherOptions(false)), self.props.cookieStorageDays, self.props.cookieSameSite, cookieSecure);
322
-
323
- // jadams, 2021-07-15: all cookies NOT longer supported by j1.expireCookie
324
- // TODO: Create loop over all cookies found in page
325
- //
326
- // logger.warn('expire all cookies');
327
- // j1.expireCookie('all');
328
-
327
+ // Remove consent cookie
328
+ Cookie.set(self.props.cookieName, JSON.stringify(gatherOptions(false)), 0, self.props.cookieSameSite, cookieSecure);
329
329
  self.$modal.modal('hide');
330
- j1.goHome();
330
+ // redirect to error page: blocked site
331
+ window.location.href = '/445.html';
331
332
  }
332
333
 
333
334
  function saveSettings() {
@@ -335,10 +336,11 @@ function CookieConsent(props) {
335
336
  self.$modal.modal('hide');
336
337
  }
337
338
 
338
- // call consent dialog if no cookie found (except pages whitelisted)
339
+ // call consent dialog if no cookie found or cookie NOT accepted (except whitelisted pages)
339
340
  //
340
- whitelisted = (this.props.whitelisted.indexOf(window.location.pathname) > -1);
341
- if (Cookie.get(this.props.cookieName) === undefined && this.props.autoShowDialog && !whitelisted) {
341
+ whitelisted = (this.props.whitelisted.indexOf(window.location.pathname) > -1);
342
+ var consentCookie = Cookie.get(this.props.cookieName);
343
+ if ((consentCookie === undefined || consentCookie === "false") && this.props.autoShowDialog && !whitelisted) {
342
344
  showDialog();
343
345
  }
344
346
 
@@ -24,4 +24,4 @@
24
24
  # outside of J1 Template!
25
25
  # -----------------------------------------------------------------------------
26
26
  */
27
- function CookieConsent(o){function e(o,e){for(var t=Array.prototype.slice.call(arguments,2),n=o.split("."),i=n.pop(),a=0;a<n.length;a++)e=e[n[a]];return e[i].apply(e,t)}function t(o){b.documentReady(function(){if(p.modal=document.getElementById(p.props.dialogContainerID),p.modal)p.$modal.modal("show");else{d.info("\nload consent modal"),p.modal=document.createElement("div"),p.modal.id=p.props.dialogContainerID,p.modal.setAttribute("class","modal fade"),p.modal.setAttribute("tabindex","-1"),p.modal.setAttribute("role","dialog"),p.modal.setAttribute("aria-labelledby",p.props.dialogContainerID),document.body.append(p.modal),p.$modal=$(p.modal),p.$modal.on("hidden.bs.modal",function(){e(p.props.postSelectionCallback,window)});var o=p.props.contentURL+"/index.html";$.get(o).done(function(o){d.info("\nloading consent modal: successfully"),p.modal.innerHTML=o,p.modal.innerHTML=$("#"+p.props.xhrDataElement).eq(0).html(),$(p.modal).modal({backdrop:"static",keyboard:!1}),p.$buttonDoNotAgree=$("#bccs-buttonDoNotAgree"),p.$buttonAgree=$("#bccs-buttonAgree"),p.$buttonSave=$("#bccs-buttonSave"),p.$buttonAgreeAll=$("#bccs-buttonAgreeAll"),d.info("\nload/initialze options from cookie"),i(),n(),$("#bccs-options").on("hide.bs.collapse",function(){g=!1,i()}).on("show.bs.collapse",function(){g=!0,i()}),d.info("\ninitialze event handler"),p.$buttonDoNotAgree.click(function(){r()}),p.$buttonAgree.click(function(){s()}),p.$buttonSave.click(function(){$("#bccs-options").collapse("hide"),c(),n()}),p.$buttonAgreeAll.click(function(){$("#bccs-options").collapse("hide"),s(),n()})}).fail(function(){d.error("\nloading consent modal: failed"),d.warn("\nprobably no `contentURL` set")})}}.bind(this))}function n(){var o=p.getSettings();if(o)for(var e in o){var t=p.$modal.find("#bccs-options .bccs-option[data-name='"+e+"'] input[type='checkbox']");t.prop("checked",o[e])}}function i(){g?(p.$buttonDoNotAgree.hide(),p.$buttonAgree.hide(),p.$buttonSave.show(),p.$buttonAgreeAll.show()):(p.$buttonDoNotAgree.show(),p.$buttonAgree.show(),p.$buttonSave.hide(),p.$buttonAgreeAll.hide())}function a(o){for(var e=p.$modal.find("#bccs-options .bccs-option"),t={},n=0;n<e.length;n++){var i=e[n],a=i.getAttribute("data-name");if("necessary"===a)t[a]=!0;else if(void 0===o){var s=$(i).find("input[type='checkbox']");t[a]=s.prop("checked")}else t[a]=!!o}return t}function s(){f.set(p.props.cookieName,JSON.stringify(a(!0)),p.props.cookieStorageDays,p.props.cookieSameSite,m),p.$modal.modal("hide")}function r(){f.set(p.props.cookieName,JSON.stringify(a(!1)),p.props.cookieStorageDays,p.props.cookieSameSite,m),p.$modal.modal("hide"),j1.goHome()}function c(){f.set(p.props.cookieName,JSON.stringify(a()),p.props.cookieStorageDays,p.props.cookieSameSite,m),p.$modal.modal("hide")}var l,d=log4javascript.getLogger("j1.core.bsCookieConsent"),p=this,g=!1,u=new liteURL(window.location.href),m=u.protocol.includes("https")?!0:!1;d.info("\ninitializing core module: started"),d.info("\nstate: started"),this.props={autoShowDialog:!0,dialogLanguage:"content",dialogLanguages:["en","de"],contentURL:"/assets/data/cookieconsent",cookieName:"j1.user.translate",cookieStorageDays:365,postSelectionCallback:"",whitelisted:[],xhrDataElement:"consent-data",dialogContainerID:"consent-modal",cookieSameSite:"Strict",cookieSecure:!0};for(var h in o)this.props[h]=o[h];-1!==this.props.dialogLanguage.indexOf("-")&&(this.props.dialogLanguage=this.props.dialogLanguage.split("-")[0]),this.props.dialogLanguages.includes(this.props.dialogLanguage)||(this.props.dialogLanguage=this.props.dialogLanguages[0]),this.props.xhrDataElement=this.props.xhrDataElement+"-"+this.props.dialogLanguage,this.props.cookieSecure=m;var f={set:function(o,e,t,n,i){var a=window.btoa(e),s="";if(t){var r=new Date;r.setTime(r.getTime()+24*t*60*60*1e3),s="; expires="+r.toUTCString()}i?document.cookie=o+"="+(a||"")+s+"; Path=/; cookieSameSite="+n+"; cookieSecure="+i+";":document.cookie=o+"="+(a||"")+s+"; Path=/; cookieSameSite="+n+";"},get:function(o){for(var e=o+"=",t=document.cookie.split(";"),n=0;n<t.length;n++){for(var i=t[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e)){var a=i.substring(e.length,i.length),s=window.atob(a);return s}}return void 0}},b={documentReady:function(o){"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)}};l=this.props.whitelisted.indexOf(window.location.pathname)>-1,void 0===f.get(this.props.cookieName)&&this.props.autoShowDialog&&!l&&t(),d.info("\ninitializing core module finished"),d.info("\nstate: finished"),this.showDialog=function(){l=this.props.whitelisted.indexOf(window.location.pathname)>-1,l||t()},this.getSettings=function(o){var e=f.get(p.props.cookieName);if(e){var t=JSON.parse(f.get(p.props.cookieName));return void 0===o?t:t?t[o]:!1}return void 0}}
27
+ "use strict";function CookieConsent(d){var v=log4javascript.getLogger("j1.core.bsCookieConsent");var p=this;var q=false;var e=new liteURL(window.location.href);var c=(e.protocol.includes("https"))?true:false;var j;var g;var t;v.info("\ninitializing core module: started");v.info("\nstate: started");this.props={autoShowDialog:true,dialogLanguage:"content",dialogLanguages:["en","de"],contentURL:"/assets/data/cookieconsent",cookieName:"j1.user.translate",cookieStorageDays:365,postSelectionCallback:"",whitelisted:[],xhrDataElement:"consent-data",dialogContainerID:"consent-modal",cookieSameSite:"Strict",cookieSecure:true};for(var f in d){this.props[f]=d[f]}if(this.props.dialogLanguage.indexOf("-")!==-1){this.props.dialogLanguage=this.props.dialogLanguage.split("-")[0]}if(!this.props.dialogLanguages.includes(this.props.dialogLanguage)){this.props.dialogLanguage=this.props.dialogLanguages[0]}this.props.xhrDataElement=this.props.xhrDataElement+"-"+this.props.dialogLanguage;this.props.cookieSecure=c;var h={set:function(z,B,D,A,x){var C=window.btoa(B);var w="; expires=Thu, 01 Jan 1970 00:00:00 UTC";if(D>0){var y=new Date();y.setTime(y.getTime()+(D*24*60*60*1000));w="; expires="+y.toUTCString()}if(x){document.cookie=z+"="+(C||"")+w+"; Path=/; cookieSameSite="+A+"; cookieSecure="+x+";"}else{document.cookie=z+"="+(C||"")+w+"; Path=/; cookieSameSite="+A+";"}},get:function(x){var A=x+"=";var w=document.cookie.split(";");for(var y=0;y<w.length;y++){var C=w[y];while(C.charAt(0)===" "){C=C.substring(1,C.length)}if(C.indexOf(A)===0){var B=C.substring(A.length,C.length);var z=window.atob(B);return z}}return undefined}};var n={documentReady:function(w){if(document.readyState!=="loading"){w()}else{document.addEventListener("DOMContentLoaded",w)}}};function u(){var w={};var x=false;var y=0;var z=arguments.length;if(Object.prototype.toString.call(arguments[0])==="[object Boolean]"){x=arguments[0];y++}var B=function(C){for(var D in C){if(Object.prototype.hasOwnProperty.call(C,D)){if(x&&Object.prototype.toString.call(C[D])==="[object Object]"){w[D]=u(true,w[D],C[D])}else{w[D]=C[D]}}}};for(;y<z;y++){var A=arguments[y];B(A)}return w}function i(B,y){var w=Array.prototype.slice.call(arguments,2);var A=B.split(".");var z=A.pop();for(var x=0;x<A.length;x++){y=y[A[x]]}return y[z].apply(y,w)}function m(w){n.documentReady(function(){p.modal=document.getElementById(p.props.dialogContainerID);if(!p.modal){v.info("\nload consent modal");p.modal=document.createElement("div");p.modal.id=p.props.dialogContainerID;p.modal.style.display="none";p.modal.setAttribute("class","modal fade");p.modal.setAttribute("tabindex","-1");p.modal.setAttribute("role","dialog");p.modal.setAttribute("aria-labelledby",p.props.dialogContainerID);document.body.append(p.modal);p.$modal=$(p.modal);p.$modal.on("hidden.bs.modal",function(){i(p.props.postSelectionCallback,window)});var x=p.props.contentURL+"/index.html";$.get(x).done(function(y){v.info("\nloading consent modal: successfully");p.modal.innerHTML=y;p.modal.innerHTML=$("#"+p.props.xhrDataElement).eq(0).html();p.modal.style.display="block";$(p.modal).modal({backdrop:"static",keyboard:false});p.$buttonDoNotAgree=$("#bccs-buttonDoNotAgree");p.$buttonAgree=$("#bccs-buttonAgree");p.$buttonSave=$("#bccs-buttonSave");p.$buttonAgreeAll=$("#bccs-buttonAgreeAll");v.info("\nload/initialze options from cookie");l();k();$("#bccs-options").on("hide.bs.collapse",function(){q=false;l()}).on("show.bs.collapse",function(){q=true;l()});v.info("\ninitialze event handler");p.$buttonDoNotAgree.click(function(){b()});p.$buttonAgree.click(function(){o()});p.$buttonSave.click(function(){$("#bccs-options").collapse("hide");s();k()});p.$buttonAgreeAll.click(function(){$("#bccs-options").collapse("hide");o();k()});p.$modal.modal("show")}).fail(function(){v.error("\nloading consent modal: failed");v.warn("\nprobably no `contentURL` set")})}else{p.$modal.modal("show")}}.bind(this))}function k(){var y=p.getSettings();if(y){for(var x in y){var w=p.$modal.find("#bccs-options .bccs-option[data-name='"+x+"'] input[type='checkbox']");w.prop("checked",y[x])}}}function l(){if(q){p.$buttonDoNotAgree.hide();p.$buttonAgree.hide();p.$buttonSave.show();p.$buttonAgreeAll.show()}else{p.$buttonDoNotAgree.show();p.$buttonAgree.show();p.$buttonSave.hide();p.$buttonAgreeAll.hide()}}function a(x){var w=p.$modal.find("#bccs-options .bccs-option");var z={};for(var A=0;A<w.length;A++){var C=w[A];var y=C.getAttribute("data-name");if(y==="necessary"){z[y]=true}else{if(x===undefined){var B=$(C).find("input[type='checkbox']");z[y]=B.prop("checked")}else{z[y]=!!x}}}return z}function o(){h.set(p.props.cookieName,JSON.stringify(a(true)),p.props.cookieStorageDays,p.props.cookieSameSite,c);p.$modal.modal("hide")}function b(){h.set(p.props.cookieName,JSON.stringify(a(false)),0,p.props.cookieSameSite,c);p.$modal.modal("hide");window.location.href="/445.html"}function s(){h.set(p.props.cookieName,JSON.stringify(a()),p.props.cookieStorageDays,p.props.cookieSameSite,c);p.$modal.modal("hide")}t=(this.props.whitelisted.indexOf(window.location.pathname)>-1);var r=h.get(this.props.cookieName);if((r===undefined||r==="false")&&this.props.autoShowDialog&&!t){m()}v.info("\ninitializing core module finished");v.info("\nstate: finished");this.showDialog=function(){t=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(!t){m()}};this.getSettings=function(x){var w=h.get(p.props.cookieName);if(w){var y=JSON.parse(h.get(p.props.cookieName));if(x===undefined){return y}else{if(y){return y[x]}else{return false}}}else{return undefined}}};
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/fam/css/fam.css
4
- # Provides styles for J1 Module FAM (Floating Button Menu)
3
+ # ~/assets/themes/j1/modules/fab/css/fab.css
4
+ # Provides styles for J1 Module FAB (Floating Action Button)
5
5
  #
6
6
  # Product/Info:
7
7
  # https://jekyll.one
@@ -13,7 +13,11 @@
13
13
  # -----------------------------------------------------------------------------
14
14
  */
15
15
 
16
- .fam-btn ul {
16
+ .btn.bmd-btn-fab, .btn.bmd-btn-icon {
17
+ overflow: visible;
18
+ }
19
+
20
+ .fab-btn ul {
17
21
  left: 0;
18
22
  right: 0;
19
23
  text-align: center;
@@ -125,7 +129,7 @@
125
129
  display: inline-block;
126
130
  color: #fff;
127
131
  position: relative;
128
- overflow: hidden;
132
+ /* overflow: hidden; */
129
133
  z-index: 1;
130
134
  width: 40px;
131
135
  height: 40px;
@@ -194,7 +198,7 @@ button.btn-fab-floating {
194
198
  border: none
195
199
  }
196
200
 
197
- .fam-btn {
201
+ .fab-btn {
198
202
  position: fixed;
199
203
  right: 1rem;
200
204
  bottom: 1rem;
@@ -203,17 +207,17 @@ button.btn-fab-floating {
203
207
  z-index: 9;
204
208
  }
205
209
 
206
- .fam-btn.active ul {
210
+ .fab-btn.active ul {
207
211
  visibility: visible
208
212
  }
209
213
 
210
- .fam-btn.direction-left,
211
- .fam-btn.direction-right {
214
+ .fab-btn.direction-left,
215
+ .fab-btn.direction-right {
212
216
  padding: 0 0 0 15px
213
217
  }
214
218
 
215
- .fam-btn.direction-left ul,
216
- .fam-btn.direction-right ul {
219
+ .fab-btn.direction-left ul,
220
+ .fab-btn.direction-right ul {
217
221
  text-align: right;
218
222
  right: 64px;
219
223
  top: 50%;
@@ -224,32 +228,32 @@ button.btn-fab-floating {
224
228
  width: 500px
225
229
  }
226
230
 
227
- .fam-btn.direction-left ul li,
228
- .fam-btn.direction-right ul li {
231
+ .fab-btn.direction-left ul li,
232
+ .fab-btn.direction-right ul li {
229
233
  display: inline-block;
230
234
  margin: 7.5px 15px 0 0
231
235
  }
232
236
 
233
- .fam-btn.direction-right {
237
+ .fab-btn.direction-right {
234
238
  padding: 0 15px 0 0
235
239
  }
236
240
 
237
- .fam-btn.direction-right ul {
241
+ .fab-btn.direction-right ul {
238
242
  text-align: left;
239
243
  direction: rtl;
240
244
  left: 64px;
241
245
  right: auto
242
246
  }
243
247
 
244
- .fam-btn.direction-right ul li {
248
+ .fab-btn.direction-right ul li {
245
249
  margin: 7.5px 0 0 15px
246
250
  }
247
251
 
248
- .fam-btn.direction-bottom {
252
+ .fab-btn.direction-bottom {
249
253
  padding: 0 0 15px 0
250
254
  }
251
255
 
252
- .fam-btn.direction-bottom ul {
256
+ .fab-btn.direction-bottom ul {
253
257
  top: 64px;
254
258
  bottom: auto;
255
259
  display: -webkit-box;
@@ -263,20 +267,20 @@ button.btn-fab-floating {
263
267
  flex-direction: column-reverse
264
268
  }
265
269
 
266
- .fam-btn.direction-bottom ul li {
270
+ .fab-btn.direction-bottom ul li {
267
271
  margin: 15px 0 0 0
268
272
  }
269
273
 
270
- .fam-btn.toolbar {
274
+ .fab-btn.toolbar {
271
275
  padding: 0;
272
276
  height: 56px
273
277
  }
274
278
 
275
- .fam-btn.toolbar.active>a i {
279
+ .fab-btn.toolbar.active>a i {
276
280
  opacity: 0
277
281
  }
278
282
 
279
- .fam-btn.toolbar ul {
283
+ .fab-btn.toolbar ul {
280
284
  display: -webkit-box;
281
285
  display: -webkit-flex;
282
286
  display: -ms-flexbox;
@@ -286,7 +290,7 @@ button.btn-fab-floating {
286
290
  z-index: 1
287
291
  }
288
292
 
289
- .fam-btn.toolbar ul li {
293
+ .fab-btn.toolbar ul li {
290
294
  -webkit-box-flex: 1;
291
295
  -webkit-flex: 1;
292
296
  -ms-flex: 1;
@@ -298,7 +302,7 @@ button.btn-fab-floating {
298
302
  transition: none
299
303
  }
300
304
 
301
- .fam-btn.toolbar ul li a {
305
+ .fab-btn.toolbar ul li a {
302
306
  display: block;
303
307
  overflow: hidden;
304
308
  position: relative;
@@ -312,11 +316,11 @@ button.btn-fab-floating {
312
316
  z-index: 1
313
317
  }
314
318
 
315
- .fam-btn.toolbar ul li a i {
319
+ .fab-btn.toolbar ul li a i {
316
320
  line-height: inherit
317
321
  }
318
322
 
319
- .fam-btn ul {
323
+ .fab-btn ul {
320
324
  left: 0;
321
325
  right: 0;
322
326
  text-align: center;
@@ -326,15 +330,15 @@ button.btn-fab-floating {
326
330
  visibility: hidden
327
331
  }
328
332
 
329
- .fam-btn ul li {
333
+ .fab-btn ul li {
330
334
  margin-bottom: 15px
331
335
  }
332
336
 
333
- .fam-btn ul a.btn-fab-floating {
337
+ .fab-btn ul a.btn-fab-floating {
334
338
  opacity: 0
335
339
  }
336
340
 
337
- .fam-btn .fam-btn-backdrop {
341
+ .fab-btn .fab-btn-backdrop {
338
342
  position: absolute;
339
343
  top: 0;
340
344
  left: 0;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/fam/css/fam.min.css
4
- # Provides styles for J1 Module FAM (Floating Button Menu)
3
+ # ~/assets/themes/j1/modules/fab/css/fab.min.css
4
+ # Provides styles for J1 Module FAB (Floating Action Button)
5
5
  #
6
6
  # Product/Info:
7
7
  # https://jekyll.one
@@ -12,4 +12,4 @@
12
12
  # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
13
  # -----------------------------------------------------------------------------
14
14
  */
15
- .fam-btn ul{left:0;right:0;text-align:center;position:absolute;bottom:64px;margin:0;visibility:hidden;padding-left:0;list-style-type:none}.btn-large,.btn-small{border:0;border-radius:2px;display:inline-block;height:36px;line-height:36px;padding:0 16px;text-transform:uppercase;vertical-align:middle;-webkit-tap-highlight-color:transparent}.disabled.btn-large,.disabled.btn-small,.btn-fab-floating.disabled,.btn-large.disabled,.btn-small.disabled,.btn-large:disabled,.btn-small:disabled,.btn-fab-floating:disabled,.btn-large:disabled,.btn-small:disabled,[disabled].btn-large,[disabled].btn-small,.btn-fab-floating[disabled],.btn-large[disabled],.btn-small[disabled]{pointer-events:none;background-color:#dfdfdf!important;-webkit-box-shadow:none;box-shadow:none;color:#9f9f9f!important;cursor:default}.disabled.btn-large:hover,.disabled.btn-small:hover,.btn-fab-floating.disabled:hover,.btn-large.disabled:hover,.btn-small.disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-fab-floating:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,[disabled].btn-large:hover,[disabled].btn-small:hover,.btn-fab-floating[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover{background-color:#dfdfdf!important;color:#9f9f9f!important}.btn-large,.btn-small,.btn-fab-floating{font-size:14px;outline:0}.btn-large i,.btn-small i,.btn-fab-floating i{font-size:1.3rem;line-height:inherit}.btn-large:focus,.btn-small:focus,.btn-fab-floating:focus{background-color:#1d7d74}.btn-large,.btn-small{text-decoration:none;color:#fff;background-color:#26a69a;text-align:center;letter-spacing:.5px;-webkit-transition:background-color .2s ease-out;transition:background-color .2s ease-out;cursor:pointer}.btn-large:hover,.btn-small:hover{background-color:#424242!important}.btn-fab-floating:hover{background-color:#424242!important}.btn-fab-floating{display:inline-block;color:#fff;position:relative;overflow:hidden;z-index:1;width:40px;height:40px;line-height:40px;padding:0;background-color:#26a69a;border-radius:50%;-webkit-transition:background-color .3s;transition:background-color .3s;cursor:pointer;vertical-align:middle}.btn-fab-floating:before{border-radius:0}.btn-fab-floating.btn-large{width:56px;height:56px;padding:0}.btn-fab-floating.btn-large.halfway-fab{bottom:-28px}.btn-fab-floating.btn-large i{line-height:56px}.btn-fab-floating.btn-small{width:32.4px;height:32.4px}.btn-fab-floating.btn-small.halfway-fab{bottom:-16.2px}.btn-fab-floating.btn-small i{line-height:32.4px}.btn-fab-floating.halfway-fab{position:absolute;right:24px;bottom:-20px}.btn-fab-floating.halfway-fab.left{right:auto;left:24px}.btn-fab-floating i{width:inherit;display:inline-block;text-align:center;color:#fff;font-size:1.6rem;line-height:40px}button.btn-fab-floating{border:0}.fam-btn{position:fixed;right:1rem;bottom:1rem;padding-top:4rem;margin-bottom:0;z-index:9}.fam-btn.active ul{visibility:visible}.fam-btn.direction-left,.fam-btn.direction-right{padding:0 0 0 15px}.fam-btn.direction-left ul,.fam-btn.direction-right ul{text-align:right;right:64px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:100%;left:auto;width:500px}.fam-btn.direction-left ul li,.fam-btn.direction-right ul li{display:inline-block;margin:7.5px 15px 0 0}.fam-btn.direction-right{padding:0 15px 0 0}.fam-btn.direction-right ul{text-align:left;direction:rtl;left:64px;right:auto}.fam-btn.direction-right ul li{margin:7.5px 0 0 15px}.fam-btn.direction-bottom{padding:0 0 15px 0}.fam-btn.direction-bottom ul{top:64px;bottom:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.fam-btn.direction-bottom ul li{margin:15px 0 0 0}.fam-btn.toolbar{padding:0;height:56px}.fam-btn.toolbar.active>a i{opacity:0}.fam-btn.toolbar ul{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;top:0;bottom:0;z-index:1}.fam-btn.toolbar ul li{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:inline-block;margin:0;height:100%;-webkit-transition:none;transition:none}.fam-btn.toolbar ul li a{display:block;overflow:hidden;position:relative;width:100%;height:100%;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff;line-height:56px;z-index:1}.fam-btn.toolbar ul li a i{line-height:inherit}.fam-btn ul{left:0;right:0;text-align:center;position:absolute;bottom:64px;margin:0;visibility:hidden}.fam-btn ul li{margin-bottom:15px}.fam-btn ul a.btn-fab-floating{opacity:0}.fam-btn .fam-btn-backdrop{position:absolute;top:0;left:0;z-index:-1;width:40px;height:40px;background-color:#26a69a;border-radius:50%;-webkit-transform:scale(0);transform:scale(0)}.btn-large{height:54px;line-height:54px;font-size:15px;padding:0 28px}.btn-large i{font-size:1.6rem}.btn-small{height:32.4px;line-height:32.4px;font-size:13px}.btn-small i{font-size:1.2rem}
15
+ .fab-btn ul{left:0;right:0;text-align:center;position:absolute;bottom:64px;margin:0;visibility:hidden;padding-left:0;list-style-type:none}.btn-large,.btn-small{border:0;border-radius:2px;display:inline-block;height:36px;line-height:36px;padding:0 16px;text-transform:uppercase;vertical-align:middle;-webkit-tap-highlight-color:transparent}.disabled.btn-large,.disabled.btn-small,.btn-fab-floating.disabled,.btn-large.disabled,.btn-small.disabled,.btn-large:disabled,.btn-small:disabled,.btn-fab-floating:disabled,.btn-large:disabled,.btn-small:disabled,[disabled].btn-large,[disabled].btn-small,.btn-fab-floating[disabled],.btn-large[disabled],.btn-small[disabled]{pointer-events:none;background-color:#dfdfdf!important;-webkit-box-shadow:none;box-shadow:none;color:#9f9f9f!important;cursor:default}.disabled.btn-large:hover,.disabled.btn-small:hover,.btn-fab-floating.disabled:hover,.btn-large.disabled:hover,.btn-small.disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-fab-floating:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,[disabled].btn-large:hover,[disabled].btn-small:hover,.btn-fab-floating[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover{background-color:#dfdfdf!important;color:#9f9f9f!important}.btn-large,.btn-small,.btn-fab-floating{font-size:14px;outline:0}.btn-large i,.btn-small i,.btn-fab-floating i{font-size:1.3rem;line-height:inherit}.btn-large:focus,.btn-small:focus,.btn-fab-floating:focus{background-color:#1d7d74}.btn-large,.btn-small{text-decoration:none;color:#fff;background-color:#26a69a;text-align:center;letter-spacing:.5px;-webkit-transition:background-color .2s ease-out;transition:background-color .2s ease-out;cursor:pointer}.btn-large:hover,.btn-small:hover{background-color:#424242!important}.btn-fab-floating:hover{background-color:#424242!important}.btn-fab-floating{display:inline-block;color:#fff;position:relative;overflow:hidden;z-index:1;width:40px;height:40px;line-height:40px;padding:0;background-color:#26a69a;border-radius:50%;-webkit-transition:background-color .3s;transition:background-color .3s;cursor:pointer;vertical-align:middle}.btn-fab-floating:before{border-radius:0}.btn-fab-floating.btn-large{width:56px;height:56px;padding:0}.btn-fab-floating.btn-large.halfway-fab{bottom:-28px}.btn-fab-floating.btn-large i{line-height:56px}.btn-fab-floating.btn-small{width:32.4px;height:32.4px}.btn-fab-floating.btn-small.halfway-fab{bottom:-16.2px}.btn-fab-floating.btn-small i{line-height:32.4px}.btn-fab-floating.halfway-fab{position:absolute;right:24px;bottom:-20px}.btn-fab-floating.halfway-fab.left{right:auto;left:24px}.btn-fab-floating i{width:inherit;display:inline-block;text-align:center;color:#fff;font-size:1.6rem;line-height:40px}button.btn-fab-floating{border:0}.fab-btn{position:fixed;right:1rem;bottom:1rem;padding-top:4rem;margin-bottom:0;z-index:9}.fab-btn.active ul{visibility:visible}.fab-btn.direction-left,.fab-btn.direction-right{padding:0 0 0 15px}.fab-btn.direction-left ul,.fab-btn.direction-right ul{text-align:right;right:64px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:100%;left:auto;width:500px}.fab-btn.direction-left ul li,.fab-btn.direction-right ul li{display:inline-block;margin:7.5px 15px 0 0}.fab-btn.direction-right{padding:0 15px 0 0}.fab-btn.direction-right ul{text-align:left;direction:rtl;left:64px;right:auto}.fab-btn.direction-right ul li{margin:7.5px 0 0 15px}.fab-btn.direction-bottom{padding:0 0 15px 0}.fab-btn.direction-bottom ul{top:64px;bottom:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.fab-btn.direction-bottom ul li{margin:15px 0 0 0}.fab-btn.toolbar{padding:0;height:56px}.fab-btn.toolbar.active>a i{opacity:0}.fab-btn.toolbar ul{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;top:0;bottom:0;z-index:1}.fab-btn.toolbar ul li{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:inline-block;margin:0;height:100%;-webkit-transition:none;transition:none}.fab-btn.toolbar ul li a{display:block;overflow:hidden;position:relative;width:100%;height:100%;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff;line-height:56px;z-index:1}.fab-btn.toolbar ul li a i{line-height:inherit}.fab-btn ul{left:0;right:0;text-align:center;position:absolute;bottom:64px;margin:0;visibility:hidden}.fab-btn ul li{margin-bottom:15px}.fab-btn ul a.btn-fab-floating{opacity:0}.fab-btn .fab-btn-backdrop{position:absolute;top:0;left:0;z-index:-1;width:40px;height:40px;background-color:#26a69a;border-radius:50%;-webkit-transform:scale(0);transform:scale(0)}.btn-large{height:54px;line-height:54px;font-size:15px;padding:0 28px}.btn-large i{font-size:1.6rem}.btn-small{height:32.4px;line-height:32.4px;font-size:13px}.btn-small i{font-size:1.2rem}
@@ -1,4 +1,22 @@
1
- /*! cash-dom 1.3.5, https://github.com/kenwheeler/cash @license MIT */
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/modules/fam/js/cash.js
4
+ # MODIFIED old Cash version 1.3.5 from Materialize used by J1 Module FAM
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ # https://github.com/fabiospampinato/cash
9
+ #
10
+ # Copyright (C) 2021 Juergen Adams
11
+ #
12
+ # Cash is licensed under the MIT License.
13
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
14
+ # J1 Template is licensed under the MIT License.
15
+ # See: https://github.com/fabiospampinato/cash/blob/master/LICENSE.md
16
+ # -----------------------------------------------------------------------------
17
+ # NOTE: cash-dom 1.3.5, https://github.com/kenwheeler/cash
18
+ # -----------------------------------------------------------------------------
19
+ */
2
20
  (function (factory) {
3
21
  window.cash = factory();
4
22
  })(function () {
@@ -592,7 +610,7 @@
592
610
  */
593
611
  trigger: function (eventName, data) {
594
612
  if (document.createEvent) {
595
- let evt = document.createEvent('HTMLEvents');
613
+ var evt = document.createEvent('HTMLEvents');
596
614
  evt.initEvent(eventName, true, false);
597
615
  evt = this.extend(evt, data);
598
616
  return this.each(function (v) {
@@ -1,10 +1,12 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
3
  # ~/assets/themes/j1/modules/fam/js/fam.js
4
- # Provides JS Core for J1 Module FAM (Floating Button Menu)
4
+ # MODIFIED FAM JS from project Materialize
5
+ # Provides JS Core funtions for the J1 FAM Module (Floating Button Menu)
5
6
  #
6
7
  # Product/Info:
7
8
  # https://jekyll.one
9
+ # https://github.com/Dogfalo/materialize
8
10
  #
9
11
  # Copyright (C) 2021 Juergen Adams
10
12
  #
@@ -449,7 +451,7 @@
449
451
  // jadams, 2020-10-10: moved to j1 name space
450
452
  //
451
453
  // M.FloatingActionButton = FloatingActionButton;
452
- j1.fam = FloatingActionButton;
454
+ j1.fab = FloatingActionButton;
453
455
 
454
456
  // jadams, 2020-10-10: check how to transform to jQuery
455
457
  //
@@ -1 +1,15 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GTagOptIn=t():e.GTagOptIn=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return i})),n.d(t,"optIn",(function(){return f})),n.d(t,"optOut",(function(){return a}));let r=!1,o=void 0;const i=e=>{u(e),o=e},u=e=>{if(!e)throw new Error("gtag-opt-in: invalid value passed to `register` method. Make sure to use a valid Analytics ID.")},a=()=>{d(),window["ga-disable-"+o]=!0},f=()=>{d(),c(),window["ga-disable-"+o]=!1},d=()=>{if(!o)throw new Error("gtag-opt-in: no value found for Analytics ID. Make sure to register before by calling the `register` method.")},c=()=>{r||(l(),r=!0)},l=()=>{const e=s();p(e)},s=()=>(window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}),p=e=>{e("js",new Date),e("config",o,{anonymize_ip:!0})}}])}));
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js
4
+ # J1 module for Google Analytics OptIn
5
+ #
6
+ # Product/Info:
7
+ # https://github.com/luciomartinez/gtag-opt-in
8
+ #
9
+ # Copyright (C) 2020 Lucio Martinez
10
+ #
11
+ # Google Analytics OptIn is licensed under the MIT License.
12
+ # For details, see https://github.com/luciomartinez/gtag-opt-in/blob/main/LICENSE
13
+ # -----------------------------------------------------------------------------
14
+ */
15
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GTagOptIn=t():e.GTagOptIn=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return i})),n.d(t,"optIn",(function(){return f})),n.d(t,"optOut",(function(){return a}));let r=!1,o=void 0;const i=e=>{u(e),o=e},u=e=>{if(!e)throw new Error("gtag-opt-in: invalid value passed to `register` method. Make sure to use a valid Analytics ID.")},a=()=>{d(),window["ga-disable-"+o]=!0},f=()=>{d(),c(),window["ga-disable-"+o]=!1},d=()=>{if(!o)throw new Error("gtag-opt-in: no value found for Analytics ID. Make sure to register before by calling the `register` method.")},c=()=>{r||(l(),r=!0)},l=()=>{const e=s();p(e)},s=()=>(window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}),p=e=>{e("js",new Date),e("config",o,{anonymize_ip:!0})}}])}));
@@ -0,0 +1,15 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js
4
+ # J1 module for Google Analytics OptIn
5
+ #
6
+ # Product/Info:
7
+ # https://github.com/luciomartinez/gtag-opt-in
8
+ #
9
+ # Copyright (C) 2020 Lucio Martinez
10
+ #
11
+ # Google Analytics OptIn is licensed under the MIT License.
12
+ # For details, see https://github.com/luciomartinez/gtag-opt-in/blob/main/LICENSE
13
+ # -----------------------------------------------------------------------------
14
+ */
15
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GTagOptIn=t():e.GTagOptIn=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return i})),n.d(t,"optIn",(function(){return f})),n.d(t,"optOut",(function(){return a}));let r=!1,o=void 0;const i=e=>{u(e),o=e},u=e=>{if(!e)throw new Error("gtag-opt-in: invalid value passed to `register` method. Make sure to use a valid Analytics ID.")},a=()=>{d(),window["ga-disable-"+o]=!0},f=()=>{d(),c(),window["ga-disable-"+o]=!1},d=()=>{if(!o)throw new Error("gtag-opt-in: no value found for Analytics ID. Make sure to register before by calling the `register` method.")},c=()=>{r||(l(),r=!0)},l=()=>{const e=s();p(e)},s=()=>(window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}),p=e=>{e("js",new Date),e("config",o,{anonymize_ip:!0})}}])}));
@@ -1,5 +1,8 @@
1
1
  /*! lg-thumbnail - v1.1.0 - 2017-08-08
2
2
  * http://sachinchoolur.github.io/lightGallery
3
3
  * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
+ /*! lg-thumbnail - v1.1.0 - 2017-08-08
5
+ * http://sachinchoolur.github.io/lightGallery
6
+ * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
7
 
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={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbHeight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.$el=a(c),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.core.s.animateThumb&&(this.core.s.thumbHeight="100%"),this.left=0,this.init(),this};c.prototype.init=function(){var a=this;this.core.s.thumbnail&&this.core.$items.length>1&&(this.core.s.showThumbByDefault&&setTimeout(function(){a.core.$outer.addClass("lg-thumb-open")},700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb&&this.core.doCss()?(this.core.s.enableThumbDrag&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},c.prototype.build=function(){function b(a,b,c){var g,h=d.core.isVideo(a,c)||{},i="";h.youtube||h.vimeo||h.dailymotion?h.youtube?g=d.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+h.youtube[1]+"/"+d.core.s.youtubeThumbSize+".jpg":b:h.vimeo?d.core.s.loadVimeoThumbnail?(g="//i.vimeocdn.com/video/error_"+f+".jpg",i=h.vimeo[1]):g=b:h.dailymotion&&(g=d.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+h.dailymotion[1]:b):g=b,e+='<div data-vimeo-id="'+i+'" class="lg-thumb-item" style="width:'+d.core.s.thumbWidth+"px; height: "+d.core.s.thumbHeight+"; margin-right: "+d.core.s.thumbMargin+'px"><img src="'+g+'" /></div>',i=""}var c,d=this,e="",f="",g='<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>';switch(this.core.s.vimeoThumbSize){case"thumbnail_large":f="640";break;case"thumbnail_medium":f="200x150";break;case"thumbnail_small":f="100x75"}if(d.core.$outer.addClass("lg-has-thumb"),d.core.$outer.find(".lg").append(g),d.$thumbOuter=d.core.$outer.find(".lg-thumb-outer"),d.thumbOuterWidth=d.$thumbOuter.width(),d.core.s.animateThumb&&d.core.$outer.find(".lg-thumb").css({width:d.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&d.$thumbOuter.css("height",d.core.s.thumbContHeight+"px"),d.core.s.dynamic)for(var h=0;h<d.core.s.dynamicEl.length;h++)b(d.core.s.dynamicEl[h].src,d.core.s.dynamicEl[h].thumb,h);else d.core.$items.each(function(c){d.core.s.exThumbImage?b(a(this).attr("href")||a(this).attr("data-src"),a(this).attr(d.core.s.exThumbImage),c):b(a(this).attr("href")||a(this).attr("data-src"),a(this).find("img").attr("src"),c)});d.core.$outer.find(".lg-thumb").html(e),c=d.core.$outer.find(".lg-thumb-item"),c.each(function(){var b=a(this),c=b.attr("data-vimeo-id");c&&a.getJSON("//www.vimeo.com/api/v2/video/"+c+".json?callback=?",{format:"json"},function(a){b.find("img").attr("src",a[0][d.core.s.vimeoThumbSize])})}),c.eq(d.core.index).addClass("active"),d.core.$el.on("onBeforeSlide.lg.tm",function(){c.removeClass("active"),c.eq(d.core.index).addClass("active")}),c.on("click.lg touchend.lg",function(){var b=a(this);setTimeout(function(){(d.thumbClickable&&!d.core.lgBusy||!d.core.doCss())&&(d.core.index=b.index(),d.core.slide(d.core.index,!1,!0,!1))},50)}),d.core.$el.on("onBeforeSlide.lg.tm",function(){d.animateThumb(d.core.index)}),a(window).on("resize.lg.thumb orientationchange.lg.thumb",function(){setTimeout(function(){d.animateThumb(d.core.index),d.thumbOuterWidth=d.$thumbOuter.width()},200)})},c.prototype.setTranslate=function(a){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+a+"px, 0px, 0px)"})},c.prototype.animateThumb=function(a){var b=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){var c;switch(this.core.s.currentPagerPosition){case"left":c=0;break;case"middle":c=this.thumbOuterWidth/2-this.core.s.thumbWidth/2;break;case"right":c=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=(this.core.s.thumbWidth+this.core.s.thumbMargin)*a-1-c,this.left>this.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(b.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||b.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||b.css("left",-this.left+"px"),this.setTranslate(this.left)}},c.prototype.enableThumbDrag=function(){var b=this,c=0,d=0,e=!1,f=!1,g=0;b.$thumbOuter.addClass("lg-grab"),b.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(a){b.thumbTotalWidth>b.thumbOuterWidth&&(a.preventDefault(),c=a.pageX,e=!0,b.core.$outer.scrollLeft+=1,b.core.$outer.scrollLeft-=1,b.thumbClickable=!1,b.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.thumb",function(a){e&&(g=b.left,f=!0,d=a.pageX,b.$thumbOuter.addClass("lg-dragging"),g-=d-c,g>b.thumbTotalWidth-b.thumbOuterWidth&&(g=b.thumbTotalWidth-b.thumbOuterWidth),g<0&&(g=0),b.setTranslate(g))}),a(window).on("mouseup.lg.thumb",function(){f?(f=!1,b.$thumbOuter.removeClass("lg-dragging"),b.left=g,Math.abs(d-c)<b.core.s.swipeThreshold&&(b.thumbClickable=!0)):b.thumbClickable=!0,e&&(e=!1,b.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))})},c.prototype.enableThumbSwipe=function(){var a=this,b=0,c=0,d=!1,e=0;a.core.$outer.find(".lg-thumb").on("touchstart.lg",function(c){a.thumbTotalWidth>a.thumbOuterWidth&&(c.preventDefault(),b=c.originalEvent.targetTouches[0].pageX,a.thumbClickable=!1)}),a.core.$outer.find(".lg-thumb").on("touchmove.lg",function(f){a.thumbTotalWidth>a.thumbOuterWidth&&(f.preventDefault(),c=f.originalEvent.targetTouches[0].pageX,d=!0,a.$thumbOuter.addClass("lg-dragging"),e=a.left,e-=c-b,e>a.thumbTotalWidth-a.thumbOuterWidth&&(e=a.thumbTotalWidth-a.thumbOuterWidth),e<0&&(e=0),a.setTranslate(e))}),a.core.$outer.find(".lg-thumb").on("touchend.lg",function(){a.thumbTotalWidth>a.thumbOuterWidth&&d?(d=!1,a.$thumbOuter.removeClass("lg-dragging"),Math.abs(c-b)<a.core.s.swipeThreshold&&(a.thumbClickable=!0),a.left=e):a.thumbClickable=!0})},c.prototype.toogle=function(){var a=this;a.core.s.toogleThumb&&(a.core.$outer.addClass("lg-can-toggle"),a.$thumbOuter.append('<span class="lg-toogle-thumb lg-icon"></span>'),a.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){a.core.$outer.toggleClass("lg-thumb-open")}))},c.prototype.thumbkeyPress=function(){var b=this;a(window).on("keydown.lg.thumb",function(a){38===a.keyCode?(a.preventDefault(),b.core.$outer.addClass("lg-thumb-open")):40===a.keyCode&&(a.preventDefault(),b.core.$outer.removeClass("lg-thumb-open"))})},c.prototype.destroy=function(){this.core.s.thumbnail&&this.core.$items.length>1&&(a(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},a.fn.lightGallery.modules.Thumbnail=c}()});
8
+ (function(a,b){if(typeof define==="function"&&define.amd){define(["jquery"],function(c){return(b(c))})}else{if(typeof exports==="object"){module.exports=b(require("jquery"))}else{b(jQuery)}}}(this,function(a){(function(){var b={thumbnail:true,animateThumb:true,currentPagerPosition:"middle",thumbWidth:100,thumbHeight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:false,showThumbByDefault:true,toogleThumb:true,pullCaptionUp:true,enableThumbDrag:true,enableThumbSwipe:true,swipeThreshold:50,loadYoutubeThumbnail:true,youtubeThumbSize:1,loadVimeoThumbnail:true,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:true};var c=function(d){this.core=a(d).data("lightGallery");this.core.s=a.extend({},b,this.core.s);this.$el=a(d);this.$thumbOuter=null;this.thumbOuterWidth=0;this.thumbTotalWidth=(this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin));this.thumbIndex=this.core.index;if(this.core.s.animateThumb){this.core.s.thumbHeight="100%"}this.left=0;this.init();return this};c.prototype.init=function(){var d=this;if(this.core.s.thumbnail&&this.core.$items.length>1){if(this.core.s.showThumbByDefault){setTimeout(function(){d.core.$outer.addClass("lg-thumb-open")},700)}if(this.core.s.pullCaptionUp){this.core.$outer.addClass("lg-pull-caption-up")}this.build();if(this.core.s.animateThumb&&this.core.doCss()){if(this.core.s.enableThumbDrag){this.enableThumbDrag()}if(this.core.s.enableThumbSwipe){this.enableThumbSwipe()}this.thumbClickable=false}else{this.thumbClickable=true}this.toogle();this.thumbkeyPress()}};c.prototype.build=function(){var k=this;var g="";var d="";var j;var f='<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>';switch(this.core.s.vimeoThumbSize){case"thumbnail_large":d="640";break;case"thumbnail_medium":d="200x150";break;case"thumbnail_small":d="100x75"}k.core.$outer.addClass("lg-has-thumb");k.core.$outer.find(".lg").append(f);k.$thumbOuter=k.core.$outer.find(".lg-thumb-outer");k.thumbOuterWidth=k.$thumbOuter.width();if(k.core.s.animateThumb){k.core.$outer.find(".lg-thumb").css({width:k.thumbTotalWidth+"px",position:"relative"})}if(this.core.s.animateThumb){k.$thumbOuter.css("height",k.core.s.thumbContHeight+"px")}function h(p,i,l){var n=k.core.isVideo(p,l)||{};var o;var m="";if(n.youtube||n.vimeo||n.dailymotion){if(n.youtube){if(k.core.s.loadYoutubeThumbnail){o=i}else{o=i}}else{if(n.vimeo){if(k.core.s.loadVimeoThumbnail){o=i}else{o=i}}else{if(n.dailymotion){if(k.core.s.loadDailymotionThumbnail){o=i}else{o=i}}}}}else{o=i}g+='<div class="lg-thumb-item" style="width:'+k.core.s.thumbWidth+"px; height: "+k.core.s.thumbHeight+"; margin-right: "+k.core.s.thumbMargin+'px"><img src="'+o+'" /></div>';m=""}if(k.core.s.dynamic){for(var e=0;e<k.core.s.dynamicEl.length;e++){h(k.core.s.dynamicEl[e].src,k.core.s.dynamicEl[e].thumb,e)}}else{k.core.$items.each(function(l){if(!k.core.s.exThumbImage){h(a(this).attr("href")||a(this).attr("data-src"),a(this).find("img").attr("src"),l)}else{h(a(this).attr("href")||a(this).attr("data-src"),a(this).attr(k.core.s.exThumbImage),l)}})}k.core.$outer.find(".lg-thumb").html(g);j=k.core.$outer.find(".lg-thumb-item");j.each(function(){var l=a(this);var i=l.attr("data-vimeo-id");if(i){a.getJSON("//www.vimeo.com/api/v2/video/"+i+".json?callback=?",{format:"json"},function(m){l.find("img").attr("src",m[0][k.core.s.vimeoThumbSize])})}});j.eq(k.core.index).addClass("active");k.core.$el.on("onBeforeSlide.lg.tm",function(){j.removeClass("active");j.eq(k.core.index).addClass("active")});j.on("click.lg touchend.lg",function(){var i=a(this);setTimeout(function(){if((k.thumbClickable&&!k.core.lgBusy)||!k.core.doCss()){k.core.index=i.index();k.core.slide(k.core.index,false,true,false)}},50)});k.core.$el.on("onBeforeSlide.lg.tm",function(){k.animateThumb(k.core.index)});a(window).on("resize.lg.thumb orientationchange.lg.thumb",function(){setTimeout(function(){k.animateThumb(k.core.index);k.thumbOuterWidth=k.$thumbOuter.width()},200)})};c.prototype.setTranslate=function(d){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+(d)+"px, 0px, 0px)"})};c.prototype.animateThumb=function(e){var f=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){var d;switch(this.core.s.currentPagerPosition){case"left":d=0;break;case"middle":d=(this.thumbOuterWidth/2)-(this.core.s.thumbWidth/2);break;case"right":d=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=((this.core.s.thumbWidth+this.core.s.thumbMargin)*e-1)-d;if(this.left>(this.thumbTotalWidth-this.thumbOuterWidth)){this.left=this.thumbTotalWidth-this.thumbOuterWidth}if(this.left<0){this.left=0}if(this.core.lGalleryOn){if(!f.hasClass("on")){this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms")}if(!this.core.doCss()){f.animate({left:-this.left+"px"},this.core.s.speed)}}else{if(!this.core.doCss()){f.css("left",-this.left+"px")}}this.setTranslate(this.left)}};c.prototype.enableThumbDrag=function(){var i=this;var g=0;var e=0;var d=false;var f=false;var h=0;i.$thumbOuter.addClass("lg-grab");i.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(j){if(i.thumbTotalWidth>i.thumbOuterWidth){j.preventDefault();g=j.pageX;d=true;i.core.$outer.scrollLeft+=1;i.core.$outer.scrollLeft-=1;i.thumbClickable=false;i.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing")}});a(window).on("mousemove.lg.thumb",function(j){if(d){h=i.left;f=true;e=j.pageX;i.$thumbOuter.addClass("lg-dragging");h=h-(e-g);if(h>(i.thumbTotalWidth-i.thumbOuterWidth)){h=i.thumbTotalWidth-i.thumbOuterWidth}if(h<0){h=0}i.setTranslate(h)}});a(window).on("mouseup.lg.thumb",function(){if(f){f=false;i.$thumbOuter.removeClass("lg-dragging");i.left=h;if(Math.abs(e-g)<i.core.s.swipeThreshold){i.thumbClickable=true}}else{i.thumbClickable=true}if(d){d=false;i.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")}})};c.prototype.enableThumbSwipe=function(){var h=this;var f=0;var d=0;var e=false;var g=0;h.core.$outer.find(".lg-thumb").on("touchstart.lg",function(i){if(h.thumbTotalWidth>h.thumbOuterWidth){i.preventDefault();f=i.originalEvent.targetTouches[0].pageX;h.thumbClickable=false}});h.core.$outer.find(".lg-thumb").on("touchmove.lg",function(i){if(h.thumbTotalWidth>h.thumbOuterWidth){i.preventDefault();d=i.originalEvent.targetTouches[0].pageX;e=true;h.$thumbOuter.addClass("lg-dragging");g=h.left;g=g-(d-f);if(g>(h.thumbTotalWidth-h.thumbOuterWidth)){g=h.thumbTotalWidth-h.thumbOuterWidth}if(g<0){g=0}h.setTranslate(g)}});h.core.$outer.find(".lg-thumb").on("touchend.lg",function(){if(h.thumbTotalWidth>h.thumbOuterWidth){if(e){e=false;h.$thumbOuter.removeClass("lg-dragging");if(Math.abs(d-f)<h.core.s.swipeThreshold){h.thumbClickable=true}h.left=g}else{h.thumbClickable=true}}else{h.thumbClickable=true}})};c.prototype.toogle=function(){var d=this;if(d.core.s.toogleThumb){d.core.$outer.addClass("lg-can-toggle");d.$thumbOuter.append('<span class="lg-toogle-thumb lg-icon"></span>');d.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){d.core.$outer.toggleClass("lg-thumb-open")})}};c.prototype.thumbkeyPress=function(){var d=this;a(window).on("keydown.lg.thumb",function(f){if(f.keyCode===38){f.preventDefault();d.core.$outer.addClass("lg-thumb-open")}else{if(f.keyCode===40){f.preventDefault();d.core.$outer.removeClass("lg-thumb-open")}}})};c.prototype.destroy=function(){if(this.core.s.thumbnail&&this.core.$items.length>1){a(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb");this.$thumbOuter.remove();this.core.$outer.removeClass("lg-has-thumb")}};a.fn.lightGallery.modules.Thumbnail=c})()}));