j1-template 2023.2.6 → 2023.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (373) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +2 -1
  3. data/_includes/themes/j1/layouts/content_generator_post.html +2 -2
  4. data/_includes/themes/j1/layouts/layout_metadata_generator.html +41 -38
  5. data/_includes/themes/j1/procedures/blocks/footer/boxes/about_box.proc +1 -1
  6. data/_includes/themes/j1/procedures/blocks/footer/boxes/contacts_box.proc +1 -1
  7. data/_includes/themes/j1/procedures/blocks/footer/boxes/issue.proc +1 -1
  8. data/_includes/themes/j1/procedures/blocks/footer/boxes/links_box.proc +1 -1
  9. data/_includes/themes/j1/procedures/blocks/footer/boxes/news_box.proc +1 -1
  10. data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -3
  11. data/_includes/themes/j1/procedures/layouts/module_writer.proc +7 -23
  12. data/_includes/themes/j1/procedures/layouts/resource_writer.proc +8 -8
  13. data/_layouts/compress.html +26 -21
  14. data/_layouts/default.html +36 -30
  15. data/assets/data/banner.html +5 -2
  16. data/assets/data/footer.html +15 -3
  17. data/assets/data/masterslider.html +1 -0
  18. data/assets/data/menu.html +4 -4
  19. data/assets/data/panel.html +6 -3
  20. data/assets/data/quicklinks.html +138 -149
  21. data/assets/error_pages/HTTP204.html +3 -3
  22. data/assets/error_pages/HTTP400.html +3 -3
  23. data/assets/error_pages/HTTP401.html +3 -3
  24. data/assets/error_pages/HTTP403.html +3 -3
  25. data/assets/error_pages/HTTP404.html +3 -3
  26. data/assets/error_pages/HTTP444.html +3 -3
  27. data/assets/error_pages/HTTP445.html +3 -3
  28. data/assets/error_pages/HTTP446.html +5 -5
  29. data/assets/error_pages/HTTP447.html +7 -7
  30. data/assets/error_pages/HTTP448.html +7 -7
  31. data/assets/error_pages/HTTP500.html +3 -3
  32. data/assets/error_pages/HTTP501.html +3 -3
  33. data/assets/error_pages/HTTP502.html +3 -3
  34. data/assets/error_pages/HTTP503.html +3 -3
  35. data/assets/themes/j1/adapter/js/advertising.js +109 -116
  36. data/assets/themes/j1/adapter/js/analytics.js +1 -1
  37. data/assets/themes/j1/adapter/js/asciidoctor.js +1 -1
  38. data/assets/themes/j1/adapter/js/attic.js +22 -14
  39. data/assets/themes/j1/adapter/js/bmd.js +1 -1
  40. data/assets/themes/j1/adapter/js/carousel.js +5 -4
  41. data/assets/themes/j1/adapter/js/clipboard.js +1 -1
  42. data/assets/themes/j1/adapter/js/comments.js +5 -5
  43. data/assets/themes/j1/adapter/js/cookieConsent.js +1 -1
  44. data/assets/themes/j1/adapter/js/customFunctions.js +1 -1
  45. data/assets/themes/j1/adapter/js/customModule.js +1 -1
  46. data/assets/themes/j1/adapter/js/dropdowns.js +4 -2
  47. data/assets/themes/j1/adapter/js/fab.js +9 -6
  48. data/assets/themes/j1/adapter/js/framer.js +1 -1
  49. data/assets/themes/j1/adapter/js/iconPicker.js +227 -0
  50. data/assets/themes/j1/adapter/js/j1.js +401 -76
  51. data/assets/themes/j1/adapter/js/justifiedGallery.js +9 -3
  52. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +2 -2
  53. data/assets/themes/j1/adapter/js/lightbox.js +4 -3
  54. data/assets/themes/j1/adapter/js/logger.js +1 -1
  55. data/assets/themes/j1/adapter/js/lunr.js +1 -1
  56. data/assets/themes/j1/adapter/js/masonry.js +4 -3
  57. data/assets/themes/j1/adapter/js/masterslider.js +30 -57
  58. data/assets/themes/j1/adapter/js/mmenu.js +2 -2
  59. data/assets/themes/j1/adapter/js/navigator.js +7 -5
  60. data/assets/themes/j1/adapter/js/nbinteract.js +9 -9
  61. data/assets/themes/j1/adapter/js/particles.js +2 -2
  62. data/assets/themes/j1/adapter/js/rangeSlider.js +2 -2
  63. data/assets/themes/j1/adapter/js/rouge.js +2 -2
  64. data/assets/themes/j1/adapter/js/rtable.js +1 -1
  65. data/assets/themes/j1/adapter/js/rtextResizer.js +1 -1
  66. data/assets/themes/j1/adapter/js/scroller.js +97 -109
  67. data/assets/themes/j1/adapter/js/slick.js +28 -18
  68. data/assets/themes/j1/adapter/js/themeToggler.js +259 -0
  69. data/assets/themes/j1/adapter/js/themer.js +17 -8
  70. data/assets/themes/j1/adapter/js/toccer.js +9 -6
  71. data/assets/themes/j1/adapter/js/translator.js +4 -2
  72. data/assets/themes/j1/adapter/js/waves.js +6 -4
  73. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1322 -417
  74. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +3 -3
  75. data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +1983 -1266
  76. data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +3 -3
  77. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +10268 -9402
  78. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +10 -10
  79. data/assets/themes/j1/core/css/vendor.css +0 -14
  80. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  81. data/assets/themes/j1/modules/advertising/js/adInitializer.js +160 -0
  82. data/assets/themes/j1/modules/backstretch/js/backstretch.js +6 -4
  83. data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
  84. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +1 -1
  85. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +1 -1
  86. data/assets/themes/j1/modules/iconPicker/README.md +266 -0
  87. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.css +419 -0
  88. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.min.css +17 -0
  89. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-brands.json +467 -0
  90. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-brands.min.json +1 -0
  91. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-regular.json +169 -0
  92. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-regular.min.json +1 -0
  93. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-solid.json +1136 -0
  94. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome-solid.min.json +1 -0
  95. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome.json +1772 -0
  96. data/assets/themes/j1/modules/iconPicker/icons-libraries/font-awesome.min.json +1 -0
  97. data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.json +292 -0
  98. data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.min.json +1 -0
  99. data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.json +7312 -0
  100. data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.min.json +1 -0
  101. data/assets/themes/j1/modules/iconPicker/images/magnifying-glass-solid.svg +1 -0
  102. data/assets/themes/j1/modules/iconPicker/images/star-of-life-solid.svg +3 -0
  103. data/assets/themes/j1/modules/iconPicker/images/xmark-solid.svg +3 -0
  104. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.js +493 -0
  105. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.min.js +17 -0
  106. data/assets/themes/j1/modules/jquery/AUTHORS.txt +372 -0
  107. data/assets/themes/j1/modules/jquery/LICENSE.txt +43 -0
  108. data/assets/themes/j1/modules/jquery/css/images/ui-icons_444444_256x240.png +0 -0
  109. data/assets/themes/j1/modules/jquery/css/images/ui-icons_555555_256x240.png +0 -0
  110. data/assets/themes/j1/modules/jquery/css/images/ui-icons_777620_256x240.png +0 -0
  111. data/assets/themes/j1/modules/jquery/css/images/ui-icons_777777_256x240.png +0 -0
  112. data/assets/themes/j1/modules/jquery/css/images/ui-icons_cc0000_256x240.png +0 -0
  113. data/assets/themes/j1/modules/jquery/css/images/ui-icons_ffffff_256x240.png +0 -0
  114. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.css +92 -92
  115. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.min.css +4 -4
  116. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.structure.css +88 -88
  117. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.structure.min.css +2 -2
  118. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.theme.css +4 -4
  119. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.theme.min.css +2 -2
  120. data/assets/themes/j1/modules/jquery/js/jquery-ui.js +13683 -13678
  121. data/assets/themes/j1/modules/jquery/js/jquery-ui.min.js +3 -3
  122. data/assets/themes/j1/modules/jquery/js/jquery.js +1029 -1203
  123. data/assets/themes/j1/modules/jquery/js/jquery.min.js +2 -2
  124. data/assets/themes/j1/modules/jquery/js/jquery.min.map +1 -1
  125. data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.css +1315 -0
  126. data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.min.css +7 -0
  127. data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.css +886 -0
  128. data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.min.css +5 -0
  129. data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.css +446 -0
  130. data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.min.css +5 -0
  131. data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.js +37 -0
  132. data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.min.js +17 -0
  133. data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.js +42 -0
  134. data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.min.js +17 -0
  135. data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.js +19057 -0
  136. data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.min.js +6 -0
  137. data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.js +10872 -0
  138. data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.js +2 -0
  139. data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.map +1 -0
  140. data/assets/themes/j1/modules/jquery-3.5.1/js/require.js +2145 -0
  141. data/assets/themes/j1/modules/jquery-3.5.1/js/require.min.js +5 -0
  142. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-video.js +2 -2
  143. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-video.min.js +1 -1
  144. data/assets/themes/j1/modules/masterslider/css/theme/uno.css +9 -9
  145. data/assets/themes/j1/modules/masterslider/css/theme/uno.min.css +1 -1
  146. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +2 -2
  147. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +1 -1
  148. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.css +136 -47
  149. data/assets/themes/j1/modules/rouge/css/uno.light/theme.css +9 -9
  150. data/assets/themes/j1/modules/scroller/js/scroller.js +76 -69
  151. data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
  152. data/assets/themes/j1/modules/translator/js/translator.js +1 -1
  153. data/assets/themes/j1/modules/translator/js/translator.min.js +1 -1
  154. data/lib/j1/version.rb +1 -1
  155. data/lib/starter_web/Gemfile +2 -2
  156. data/lib/starter_web/README.md +5 -5
  157. data/lib/starter_web/_config.yml +4 -1
  158. data/lib/starter_web/_data/blocks/banner.yml +8 -5
  159. data/lib/starter_web/_data/blocks/defaults/footer.yml +3 -3
  160. data/lib/starter_web/_data/blocks/footer.yml +9 -5
  161. data/lib/starter_web/_data/blocks/panel.yml +41 -38
  162. data/lib/starter_web/_data/j1_config.yml +68 -58
  163. data/lib/starter_web/_data/layouts/collection.yml +1 -0
  164. data/lib/starter_web/_data/layouts/default.yml +1 -1
  165. data/lib/starter_web/_data/layouts/home.yml +9 -9
  166. data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -0
  167. data/lib/starter_web/_data/layouts/page.yml +2 -1
  168. data/lib/starter_web/_data/layouts/post.yml +1 -0
  169. data/lib/starter_web/_data/layouts/raw.yml +1 -0
  170. data/lib/starter_web/_data/modules/advertising.yml +134 -61
  171. data/lib/starter_web/_data/modules/analytics.yml +2 -2
  172. data/lib/starter_web/_data/modules/attics.yml +4 -7
  173. data/lib/starter_web/_data/modules/defaults/advertising.yml +2 -1
  174. data/lib/starter_web/_data/modules/defaults/attics.yml +3 -3
  175. data/lib/starter_web/_data/modules/defaults/iconPicker.yml +42 -0
  176. data/lib/starter_web/_data/modules/defaults/navigator.yml +15 -13
  177. data/lib/starter_web/_data/modules/defaults/theme_toggler.yml +42 -0
  178. data/lib/starter_web/_data/modules/iconPicker.yml +64 -0
  179. data/lib/starter_web/_data/modules/masonry.yml +1 -1
  180. data/lib/starter_web/_data/modules/masterslider.yml +5 -5
  181. data/lib/starter_web/_data/modules/navigator_menu.yml +150 -41
  182. data/lib/starter_web/_data/modules/scroller.yml +8 -8
  183. data/lib/starter_web/_data/modules/theme_toggler.yml +29 -0
  184. data/lib/starter_web/_data/modules/themer.yml +0 -6
  185. data/lib/starter_web/_data/resources.yml +53 -52
  186. data/lib/starter_web/_data/templates/feed.xml +1 -1
  187. data/lib/starter_web/_includes/attributes.asciidoc +57 -50
  188. data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +47 -0
  189. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  190. data/lib/starter_web/assets/images/icons/mdi/mdi.svg +1 -0
  191. data/lib/starter_web/assets/images/icons/mdi/mdil.svg +1 -0
  192. data/lib/starter_web/assets/images/modules/attics/1920x1280/alexander-redl.jpg +0 -0
  193. data/lib/starter_web/assets/images/modules/attics/1920x1280/alina-grubnyak.jpg +0 -0
  194. data/lib/starter_web/assets/images/modules/attics/1920x1280/andrea-badino.jpg +0 -0
  195. data/lib/starter_web/assets/images/modules/attics/1920x1280/brad-neathery.jpg +0 -0
  196. data/lib/starter_web/assets/images/modules/attics/1920x1280/bruno-figueiredo.jpg +0 -0
  197. data/lib/starter_web/assets/images/modules/attics/1920x1280/clem-onojeghuo.jpg +0 -0
  198. data/lib/starter_web/assets/images/modules/attics/1920x1280/core_web_vitals_best.png +0 -0
  199. data/lib/starter_web/assets/images/modules/attics/1920x1280/crawford-jolly.jpg +0 -0
  200. data/lib/starter_web/assets/images/modules/attics/1920x1280/eleni-afiontzi.jpg +0 -0
  201. data/lib/starter_web/assets/images/modules/attics/1920x1280/fly-d.jpg +0 -0
  202. data/lib/starter_web/assets/images/modules/attics/1920x1280/guillaume-bolduc.jpg +0 -0
  203. data/lib/starter_web/assets/images/modules/attics/1920x1280/harpal-singh.jpg +0 -0
  204. data/lib/starter_web/assets/images/modules/attics/1920x1280/hayden-mills-2.jpg +0 -0
  205. data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-1.jpg +0 -0
  206. data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-2.jpg +0 -0
  207. data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-3.jpg +0 -0
  208. data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg +0 -0
  209. data/lib/starter_web/assets/images/modules/attics/1920x1280/john-schnobrich-2.jpg +0 -0
  210. data/lib/starter_web/assets/images/modules/attics/1920x1280/josep-martins.jpg +0 -0
  211. data/lib/starter_web/assets/images/modules/attics/1920x1280/josh-liu.jpg +0 -0
  212. data/lib/starter_web/assets/images/modules/attics/1920x1280/kelly-sikkemal.jpg +0 -0
  213. data/lib/starter_web/assets/images/modules/attics/1920x1280/kira-auf-der-heide.jpg +0 -0
  214. data/lib/starter_web/assets/images/modules/attics/1920x1280/kristopher-roller.jpg +0 -0
  215. data/lib/starter_web/assets/images/modules/attics/1920x1280/kristopher-roller.webp +0 -0
  216. data/lib/starter_web/assets/images/modules/attics/1920x1280/matthaeus.jpg +0 -0
  217. data/lib/starter_web/assets/images/modules/attics/1920x1280/melanie-deziel.jpg +0 -0
  218. data/lib/starter_web/assets/images/modules/attics/1920x1280/milad-fakurian.jpg +0 -0
  219. data/lib/starter_web/assets/images/modules/attics/1920x1280/mohammad-rahmani.jpg +0 -0
  220. data/lib/starter_web/assets/images/modules/attics/1920x1280/nasa.jpg +0 -0
  221. data/lib/starter_web/assets/images/modules/attics/1920x1280/quino-al-2.jpg +0 -0
  222. data/lib/starter_web/assets/images/modules/attics/1920x1280/recha-oktaviani.jpg +0 -0
  223. data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280.jpg +0 -0
  224. data/lib/starter_web/assets/images/modules/attics/christina-1920x1280.jpg +0 -0
  225. data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200.jpg +0 -0
  226. data/lib/starter_web/assets/images/modules/attics/katie-moum-1920x1280.jpg +0 -0
  227. data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best.jpg +0 -0
  228. data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best.png +0 -0
  229. data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best_full.png +0 -0
  230. data/lib/starter_web/assets/images/pages/html_validator/appdevtools-html-validator.jpg +0 -0
  231. data/lib/starter_web/assets/images/pages/html_validator/freeformatter-html-validator.jpg +0 -0
  232. data/lib/starter_web/assets/images/pages/html_validator/w3c-nu-checker.jpg +0 -0
  233. data/lib/starter_web/assets/images/pages/html_validator/w3c-validator.jpg +0 -0
  234. data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +8 -9
  235. data/lib/starter_web/collections/_biography/becoming.adoc +22 -9
  236. data/lib/starter_web/collections/_biography/born-to-run.adoc +27 -9
  237. data/lib/starter_web/collections/_biography/forty-autumns.adoc +19 -12
  238. data/lib/starter_web/collections/_biography/not-dead-yet.adoc +24 -14
  239. data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +23 -14
  240. data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +24 -11
  241. data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +14 -10
  242. data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +11 -8
  243. data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +7 -8
  244. data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +17 -14
  245. data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +12 -13
  246. data/lib/starter_web/collections/_fantasy/terry-pratchet-diary.adoc +15 -15
  247. data/lib/starter_web/collections/_people/diana-petersen.adoc +2 -0
  248. data/lib/starter_web/collections/_people/larry-parker.adoc +2 -0
  249. data/lib/starter_web/collections/_people/parveen-anand.adoc +2 -0
  250. data/lib/starter_web/collections/_portfolio/branding.adoc +5 -0
  251. data/lib/starter_web/collections/_portfolio/graphic_design.adoc +5 -0
  252. data/lib/starter_web/collections/_portfolio/identity.adoc +5 -0
  253. data/lib/starter_web/collections/_portfolio/illustration.adoc +5 -0
  254. data/lib/starter_web/collections/_portfolio/photography.adoc +5 -0
  255. data/lib/starter_web/collections/_portfolio/web_design.adoc +5 -0
  256. data/lib/starter_web/collections/_romance/breath-of-snow-and-ashes-a.adoc +8 -5
  257. data/lib/starter_web/collections/_romance/dressmaker-the.adoc +14 -14
  258. data/lib/starter_web/collections/_romance/fiery-cross-the.adoc +12 -9
  259. data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +14 -11
  260. data/lib/starter_web/collections/_romance/outlander-novel.adoc +48 -25
  261. data/lib/starter_web/collections/_romance/virgins-outlander-short-story.adoc +30 -15
  262. data/lib/starter_web/index.html +6 -14
  263. data/lib/starter_web/package.json +3 -3
  264. data/lib/starter_web/pages/public/about/features.adoc +1 -4
  265. data/lib/starter_web/pages/public/about/reporting_issues.adoc +1 -3
  266. data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +0 -5
  267. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -4
  268. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +0 -5
  269. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -5
  270. data/lib/starter_web/pages/public/blog/navigator/index.html +2 -6
  271. data/lib/starter_web/pages/public/features/general.adoc +0 -4
  272. data/lib/starter_web/pages/public/features/template.adoc +0 -4
  273. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +1 -3
  274. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +1 -1
  275. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +1 -1
  276. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +1 -2
  277. data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +75 -66
  278. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/attributes.asciidoc +58 -0
  279. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/accordion.asciidoc +34 -0
  280. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/alerts.asciidoc +15 -0
  281. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/badges.asciidoc +9 -0
  282. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/body.asciidoc +14 -0
  283. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/breadcrumbs.asciidoc +14 -0
  284. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/buttons.asciidoc +75 -0
  285. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/cards.asciidoc +22 -0
  286. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/carousel.asciidoc +37 -0
  287. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/close.asciidoc +15 -0
  288. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/code.asciidoc +14 -0
  289. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/color_system.asciidoc +353 -0
  290. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/components.asciidoc +69 -0
  291. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/dropdowns.asciidoc +53 -0
  292. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/figures.asciidoc +5 -0
  293. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/forms.asciidoc +270 -0
  294. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/grid.asciidoc +49 -0
  295. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/links.asciidoc +21 -0
  296. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/list_groups.asciidoc +28 -0
  297. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/modals.asciidoc +43 -0
  298. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/navbar.asciidoc +45 -0
  299. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/navs.asciidoc +28 -0
  300. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/offcanvas.asciidoc +16 -0
  301. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/options.asciidoc +30 -0
  302. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/pagination.asciidoc +40 -0
  303. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/paragraph.asciidoc +5 -0
  304. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/placeholders.asciidoc +5 -0
  305. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/popovers.asciidoc +28 -0
  306. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/position.asciidoc +8 -0
  307. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/progress_bars.asciidoc +12 -0
  308. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/spacing.asciidoc +14 -0
  309. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/spinners.asciidoc +12 -0
  310. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/tables.asciidoc +55 -0
  311. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/thumbnails.asciidoc +9 -0
  312. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/toasts.asciidoc +18 -0
  313. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/tooltips.asciidoc +28 -0
  314. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/typography.asciidoc +115 -0
  315. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/documents/z_index.asciidoc +26 -0
  316. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/tables/_table.asciidoc +9 -0
  317. data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/tables/accordion.asciidoc +87 -0
  318. data/lib/starter_web/pages/public/learn/bs_sass_variables/bs_sass_variables.adoc +262 -0
  319. data/lib/starter_web/pages/public/learn/cheatsheet/gem.adoc +255 -0
  320. data/lib/starter_web/pages/public/learn/cheatsheet/git.adoc +1458 -0
  321. data/lib/starter_web/pages/public/learn/cheatsheet/j1.adoc +63 -0
  322. data/lib/starter_web/pages/public/learn/cheatsheet/yaml.adoc +514 -0
  323. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/attributes.asciidoc +59 -0
  324. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/documents/100_chapter.asciidoc +541 -0
  325. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/documents/200_chapter.asciidoc +33 -0
  326. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/build_command_options.asciidoc +72 -0
  327. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/files_and_folders.asciidoc +66 -0
  328. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/global_configuration_options.asciidoc +63 -0
  329. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/global_variables.asciidoc +26 -0
  330. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/page_variables.asciidoc +54 -0
  331. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/serve_command_options.asciidoc +45 -0
  332. data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/tables/site_variables.asciidoc +59 -0
  333. data/lib/starter_web/pages/public/learn/core_web_vitals/core_web_vitals.adoc +442 -0
  334. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
  335. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc +3 -4
  336. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +2 -2
  337. data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +10 -10
  338. data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +0 -2
  339. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +8 -2
  340. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +3 -7
  341. data/lib/starter_web/pages/public/learn/where_to_go.adoc +39 -45
  342. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +2 -6
  343. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -1
  344. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -6
  345. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -6
  346. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +0 -2
  347. data/lib/starter_web/pages/public/plans/plans.adoc +0 -2
  348. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +93 -7
  349. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  350. data/lib/starter_web/utilsrv/package.json +1 -1
  351. metadata +133 -24
  352. data/_includes/themes/j1/modules/ads/google_ad_content_home.html +0 -11
  353. data/_includes/themes/j1/modules/ads/google_ad_top_home.html +0 -11
  354. data/assets/themes/j1/core/css/nbinteract-tutorial/styles.css +0 -1711
  355. data/assets/themes/j1/core/css/nbinteract-tutorial/styles.min.css +0 -1
  356. data/assets/themes/j1/modules/advertising/js/google/adInitializer.js +0 -127
  357. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +0 -460
  358. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +0 -97
  359. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +0 -15
  360. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +0 -115
  361. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +0 -15
  362. data/assets/themes/j1/modules/mdilPreviewer/css/previewer.css +0 -97
  363. data/assets/themes/j1/modules/mdilPreviewer/css/previewer.min.css +0 -15
  364. data/assets/themes/j1/modules/mdilPreviewer/js/previewer.js +0 -125
  365. data/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js +0 -15
  366. data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_content_home.html +0 -11
  367. data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_top_home.html +0 -11
  368. /data/lib/starter_web/assets/images/{promo → quotes/promo}/home/screenshot.jpg +0 -0
  369. /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-faq.jpg +0 -0
  370. /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-generator.jpg +0 -0
  371. /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-generator.png +0 -0
  372. /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/jekyll-og.png +0 -0
  373. /data/lib/starter_web/assets/images/{promo → quotes/promo}/jekyll/scalable/jekyll-faq.psd +0 -0
@@ -7,7 +7,7 @@ regenerate: true
7
7
  {% comment %}
8
8
  # -----------------------------------------------------------------------------
9
9
  # ~/assets/themes/j1/adapter/js/scroller.js
10
- # Liquid template to adapt scroller plugin
10
+ # Liquid template to adapt the J1 Scroller jQuery plugin
11
11
  #
12
12
  # Product/Info:
13
13
  # https://jekyll.one
@@ -61,11 +61,10 @@ TODO: Check|Fix the (Liquid) merge issue for scroller_options
61
61
  {% assign production = true %}
62
62
  {% endif %}
63
63
 
64
-
65
64
  /*
66
65
  # -----------------------------------------------------------------------------
67
66
  # ~/assets/themes/j1/adapter/js/scroller.js
68
- # J1 Adapter for scroller
67
+ # J1 Adapter for the J1 Scroller jQuery plugin
69
68
  #
70
69
  # Product/Info:
71
70
  # https://jekyll.one
@@ -100,13 +99,6 @@ var logger;
100
99
  var logText;
101
100
  var lastPageInfo;
102
101
 
103
- // var platform_name = platform.name;
104
- // var platform_version = platform.version;
105
- // var platform_layout = platform.layout;
106
- // var platform_os = platform.os;
107
- // var platform_description = platform.description;
108
-
109
-
110
102
  // ---------------------------------------------------------------------------
111
103
  // Main object
112
104
  // ---------------------------------------------------------------------------
@@ -132,30 +124,32 @@ var lastPageInfo;
132
124
  _this = j1.adapter.scroller;
133
125
  logger = log4javascript.getLogger('j1.adapter.scroller');
134
126
 
135
- // Load module DEFAULTS|CONFIG
127
+ // load module DEFAULTS|CONFIG
128
+ //
136
129
  scrollerDefaults = $.extend({}, {{scroller_defaults | replace: 'nil', 'null' | replace: '=>', ':' }});
137
130
  scrollerSettings = $.extend({}, {{scroller_settings | replace: 'nil', 'null' | replace: '=>', ':' }});
138
131
  scrollerOptions = $.extend(true, {}, scrollerDefaults, scrollerSettings);
139
132
 
140
133
  // initialize state flag
134
+ //
141
135
  _this.setState('started');
142
136
  logger.debug('\n' + 'state: ' + _this.getState());
143
137
  logger.info('\n' + 'module is being initialized');
144
138
 
145
- // initialize scrollers if page is available and visible
146
139
  var dependencies_met_page_ready = setInterval (function (options) {
147
- var pageState = $('#no_flicker').css("display");
148
- var pageVisible = (pageState == 'block') ? true: false;
149
- var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
140
+ var contentState = $('#content').css("display");
141
+ var ContentVisible = (contentState == 'block') ? true: false;
150
142
 
151
- if (j1.getState() === 'finished' && pageVisible && atticFinished) {
143
+ // initialize scrollers if content is fully available|visible
144
+ //
145
+ if (j1.getState() === 'finished' && ContentVisible) {
152
146
  _this.generate_scrollers();
153
147
  _this.setState('finished');
154
148
  logger.debug('\n' + 'state: ' + _this.getState());
155
149
  logger.info('\n' + 'module initialized successfully');
156
150
  clearInterval(dependencies_met_page_ready);
157
151
  }
158
- }, 25);
152
+ }, 10);
159
153
 
160
154
  }, // END init
161
155
 
@@ -164,104 +158,98 @@ var lastPageInfo;
164
158
  // generate scrollers configured|enabled
165
159
  // -------------------------------------------------------------------------
166
160
  generate_scrollers: function () {
167
-
168
161
  logger = log4javascript.getLogger('j1.adapter.scroller');
169
162
 
170
163
  logText = '\n' + 'scrollers are being initialized';
171
164
  logger.info(logText);
172
165
 
173
- // START generate scrollers
174
- var dependencies_met_page_ready = setInterval (function (options) {
175
- if (j1.getState() === 'finished') {
176
-
177
- {% comment %} generate scrollers of type 'infiniteScroll'
178
- ---------------------------------------------------------------------- {% endcomment %}
179
-
180
- {% for item in scroller_options.scrollers %} {% if item.scroller.enabled %}
181
-
182
- {% if item.scroller.type == 'infiniteScroll' %}
183
-
184
- {% assign scroller_id = item.scroller.id %}
185
- {% assign scroller_type = item.scroller.type %}
186
- {% assign container = item.scroller.container %}
187
- {% assign pagePath = item.scroller.pagePath %}
188
- {% assign elementScroll = item.scroller.elementScroll %}
189
- {% assign scrollOffset = item.scroller.scrollOffset %}
190
- {% assign lastPage = item.scroller.lastPage %}
191
- {% assign infoLastPage = item.scroller.infoLastPage %}
192
- {% assign lastPageInfo_en = item.scroller.lastPageInfo_en %}
193
- {% assign lastPageInfo_de = item.scroller.lastPageInfo_de %}
194
-
195
- // scroller_id: {{ scroller_id }}
196
- logText = '\n' + 'scroller of type {{item.scroller.type}} is being initialized on: ' + '{{scroller_id}}';
197
- logger.info(logText);
198
-
199
- var container = '#' + '{{container}}';
200
- var pagePath = '{{pagePath}}';
201
-
202
- if (language === 'en') {
203
- lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
204
- lastPageInfo += '{{lastPageInfo_en|strip_newlines}}';
205
- lastPageInfo += '</p></div>';
206
- } else if (language === 'de') {
207
- lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
208
- lastPageInfo += '{{lastPageInfo_de|strip_newlines}}';
209
- lastPageInfo += '</p></div>';
210
- } else {
211
- lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
212
- lastPageInfo += '{{lastPageInfo_en|strip_newlines}}';
213
- lastPageInfo += '</p></div>';
214
- }
215
-
216
- // Create an scroller instance of infiniteScroll if container exists
217
- if ($(container).length) {
218
- $(container).scroller({
219
- id: '{{scroller_id}}',
220
- type: '{{scroller_type}}',
221
- pagePath: '{{pagePath}}',
222
- elementScroll: {{elementScroll}},
223
- scrollOffset: {{scrollOffset}},
224
- lastPage: {{lastPage}},
225
- infoLastPage: {{infoLastPage}},
226
- lastPageInfo: lastPageInfo,
227
- });
228
- }
229
-
230
- {% endif %}
231
-
232
- {% if item.scroller.type == 'showOnScroll' %}
233
-
234
- {% assign scroller_id = item.scroller.id %}
235
- {% assign scroller_type = item.scroller.type %}
236
- {% assign container = item.scroller.container %}
237
- {% assign showDelay = item.scroller.showDelay %}
238
- {% assign scrollOffset = item.scroller.scrollOffset %}
239
-
240
- var container = '#' + '{{container}}';
241
-
242
- // scroller_id: {{ scroller_id }}
243
- logText = '\n' + 'scroller of type {{item.scroller.type}} is being initialized on: ' + '{{scroller_id}}';
244
- logger.info(logText);
245
-
246
- // Create an scroller instance of showOnScroll if container exists
247
- if ($(container).length) {
248
- $(container).scroller({
249
- id: '{{scroller_id}}',
250
- type: '{{scroller_type}}',
251
- container: '{{container}}',
252
- showDelay: {{showDelay}},
253
- scrollOffset: {{scrollOffset}},
254
- });
255
- }
256
-
257
- {% endif %}
258
-
259
- // END scroller_id: {{ scroller_id }}
260
- {% endif %} {% endfor %}
166
+ {% comment %} generate scrollers of type 'infiniteScroll'
167
+ -------------------------------------------------------------------------- {% endcomment %}
261
168
 
262
- clearInterval(dependencies_met_page_ready);
263
- }
264
- }, 25);
169
+ {% for item in scroller_options.scrollers %} {% if item.scroller.enabled %}
170
+
171
+ {% if item.scroller.type == 'infiniteScroll' %}
172
+
173
+ {% assign scroller_id = item.scroller.id %}
174
+ {% assign scroller_type = item.scroller.type %}
175
+ {% assign container = item.scroller.container %}
176
+ {% assign pagePath = item.scroller.pagePath %}
177
+ {% assign elementScroll = item.scroller.elementScroll %}
178
+ {% assign scrollOffset = item.scroller.scrollOffset %}
179
+ {% assign lastPage = item.scroller.lastPage %}
180
+ {% assign infoLastPage = item.scroller.infoLastPage %}
181
+ {% assign lastPageInfo_en = item.scroller.lastPageInfo_en %}
182
+ {% assign lastPageInfo_de = item.scroller.lastPageInfo_de %}
183
+
184
+ // scroller_id: {{ scroller_id }}
185
+ //
186
+ logText = '\n' + 'scroller of type {{item.scroller.type}} is being initialized on: ' + '{{scroller_id}}';
187
+ logger.info(logText);
188
+
189
+ var container = '#' + '{{container}}';
190
+ var pagePath = '{{pagePath}}';
191
+
192
+ if (language === 'en') {
193
+ lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
194
+ lastPageInfo += '{{lastPageInfo_en|strip_newlines}}';
195
+ lastPageInfo += '</p></div>';
196
+ } else if (language === 'de') {
197
+ lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
198
+ lastPageInfo += '{{lastPageInfo_de|strip_newlines}}';
199
+ lastPageInfo += '</p></div>';
200
+ } else {
201
+ lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
202
+ lastPageInfo += '{{lastPageInfo_en|strip_newlines}}';
203
+ lastPageInfo += '</p></div>';
204
+ }
205
+
206
+ // create an (scroller) instance of 'infiniteScroll'
207
+ //
208
+ if ($(container).length) {
209
+ $(container).scroller({
210
+ id: '{{scroller_id}}',
211
+ type: '{{scroller_type}}',
212
+ pagePath: '{{pagePath}}',
213
+ elementScroll: {{elementScroll}},
214
+ scrollOffset: {{scrollOffset}},
215
+ lastPage: {{lastPage}},
216
+ infoLastPage: {{infoLastPage}},
217
+ lastPageInfo: lastPageInfo,
218
+ });
219
+ }
220
+
221
+ {% endif %}
222
+
223
+ {% if item.scroller.type == 'showOnScroll' %}
224
+
225
+ {% assign scroller_id = item.scroller.id %}
226
+ {% assign scroller_type = item.scroller.type %}
227
+ {% assign container = item.scroller.container %}
228
+ {% assign showDelay = item.scroller.showDelay %}
229
+ {% assign scrollOffset = item.scroller.scrollOffset %}
230
+
231
+ var container = '#' + '{{container}}';
232
+
233
+ // scroller_id: {{ scroller_id }}
234
+ //
235
+ logText = '\n' + 'scroller of type {{item.scroller.type}} is being initialized on: ' + '{{scroller_id}}';
236
+ logger.info(logText);
237
+
238
+ // create an (scroller) instance of 'showOnScroll'
239
+ //
240
+ if ($(container).length) {
241
+ $(container).scroller({
242
+ id: '{{scroller_id}}',
243
+ type: '{{scroller_type}}',
244
+ container: '{{container}}',
245
+ showDelay: {{showDelay}},
246
+ scrollOffset: {{scrollOffset}},
247
+ });
248
+ }
249
+
250
+ {% endif %}
251
+ // END scroller_id: {{ scroller_id }}
252
+ {% endif %} {% endfor %}
265
253
  // END generate scrollers
266
254
  },
267
255
 
@@ -36,7 +36,10 @@ regenerate: true
36
36
  {% assign template_config = site.data.j1_config %}
37
37
 
38
38
  {% comment %} Set config data
39
- -------------------------------------------------------------------------------- {% endcomment %}
39
+ -------------------------------------------------------------------------------- {% endcomment
40
+ {% assign attic_defaults = modules.defaults.attics.defaults %}
41
+ {% assign attic_settings = modules.attics.settings %}
42
+
40
43
  {% assign slick_defaults = modules.defaults.slick.defaults %}
41
44
  {% assign slick_settings = modules.slick.settings %}
42
45
  {% assign slick_lightbox_defaults = modules.defaults.slick.defaults.lightbox %}
@@ -86,6 +89,9 @@ j1.adapter.slick = (function (j1, window) {
86
89
  var _this;
87
90
  var logger;
88
91
  var logText;
92
+ var atticDefaults;
93
+ var atticSettings;
94
+ var atticOptions;
89
95
  var slickDefaults;
90
96
  var slickSettings;
91
97
  var slickLightboxDefaults;
@@ -126,6 +132,10 @@ j1.adapter.slick = (function (j1, window) {
126
132
  }, options);
127
133
 
128
134
  // Load module DEFAULTS|CONFIG
135
+ atticDefaults = $.extend({}, {{attic_defaults | replace: 'nil', 'null' | replace: '=>', ':' }});
136
+ atticSettings = $.extend({}, {{attic_settings | replace: 'nil', 'null' | replace: '=>', ':' }});
137
+ atticOptions = $.extend(true, {}, atticDefaults, atticSettings);
138
+
129
139
  slickDefaults = $.extend({}, {{slick_defaults | replace: 'nil', 'null' | replace: '=>', ':' }});
130
140
  slickSettings = $.extend({}, {{slick_settings | replace: 'nil', 'null' | replace: '=>', ':' }});
131
141
  slickLightboxDefaults = $.extend({}, {{slick_lightbox_defaults | replace: 'nil', 'null' | replace: '=>', ':' }});
@@ -144,7 +154,7 @@ j1.adapter.slick = (function (j1, window) {
144
154
  logger.info('\n' + 'module is being initialized');
145
155
 
146
156
  // load HTML portion for all carousels
147
- console.debug('loading HTML portion for all carousels configured');
157
+ // console.debug('loading HTML portion for all carousels configured');
148
158
  _this.loadCarouselHTML(slickOptions, slickOptions.carousels);
149
159
 
150
160
  // Re-Init all carousels in a page if window is resized (if enabled)
@@ -157,13 +167,13 @@ j1.adapter.slick = (function (j1, window) {
157
167
  // -----------------------------------------------------------------------
158
168
  // initializer
159
169
  // -----------------------------------------------------------------------
170
+ // make sure the 'content' section is visible BEFORE setting-up sliders
171
+ //
160
172
  var dependencies_met_page_ready = setInterval (function (options) {
161
- var pageState = $('#no_flicker').css("display");
162
- var pageVisible = (pageState == 'block') ? true: false;
163
- var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
164
-
165
- if (j1.getState() === 'finished' && pageVisible && atticFinished) {
173
+ var contentState = $('#content').css("display");
174
+ var contentVisible = (contentState == 'block') ? true: false;
166
175
 
176
+ if (j1.getState() === 'finished' && contentVisible) {
167
177
  {% for carousel in slick_settings.carousels %} {% if carousel.enabled %}
168
178
  logger.info('\n' + 'carousel is being initialized on id: ' + '{{carousel.id}}');
169
179
 
@@ -288,10 +298,11 @@ j1.adapter.slick = (function (j1, window) {
288
298
  //
289
299
  function positionSlickArrows (e) {
290
300
  var dependencies_met_page_ready = setInterval (function (options) {
291
- var pageState = $('#no_flicker').css('display');
292
- var pageVisible = (pageState == 'block') ? true: false;
301
+ var contentState = $('#content').css("display");
302
+ var ContentVisible = (contentState == 'block') ? true: false;
293
303
  var slideImageHeight;
294
- if ( j1.getState() === 'finished' && pageVisible ) {
304
+
305
+ if ( j1.getState() === 'finished' && ContentVisible ) {
295
306
  const carousel_type = '{{carousel.type}}';
296
307
  const $slick = $('.{{carousel.id | replace: '_','-' }}');
297
308
  const $slides = $slick.find('.slick-slide');
@@ -307,7 +318,7 @@ j1.adapter.slick = (function (j1, window) {
307
318
  $('.slick-arrow-{{carousel.id}}').css('top', slideImageHeight + 'px');
308
319
  clearInterval(dependencies_met_page_ready);
309
320
  }
310
- }, 25);
321
+ }, 10);
311
322
  }
312
323
 
313
324
  // set individual arrow positions for a carousel
@@ -367,7 +378,7 @@ j1.adapter.slick = (function (j1, window) {
367
378
 
368
379
  clearInterval(load_dependencies['dependencies_met_html_loaded_{{carousel.id}}']);
369
380
  }
370
- }, 25); // END
381
+ }, 10); // END
371
382
  {% endif %} {% endfor %} // ENDFOR (all) carousels
372
383
 
373
384
  _this.setState('finished');
@@ -376,7 +387,7 @@ j1.adapter.slick = (function (j1, window) {
376
387
 
377
388
  clearInterval(dependencies_met_page_ready);
378
389
  }
379
- }, 25);
390
+ }, 10);
380
391
 
381
392
  }, // END init
382
393
 
@@ -393,26 +404,25 @@ j1.adapter.slick = (function (j1, window) {
393
404
  var xhr_data_path = options.xhr_data_path + '/index.html';
394
405
  var xhr_container_id;
395
406
 
396
- // console.debug('load HTML portion of all carousels configured found in page');
397
- console.debug('number of carousels found: ' + numcarousels);
407
+ // console.debug('number of carousels found: ' + numcarousels);
398
408
 
399
409
  _this.setState('load_data');
400
410
  Object.keys(carousel).forEach(function(key) {
401
411
  if (carousel[key].enabled) {
402
412
  xhr_container_id = carousel[key].id + '_parent';
403
413
 
404
- console.debug('load HTML data on carousel id: ' + carousel[key].id);
414
+ // console.debug('load HTML data on carousel id: ' + carousel[key].id);
405
415
  j1.loadHTML({
406
416
  xhr_container_id: xhr_container_id,
407
417
  xhr_data_path: xhr_data_path,
408
418
  xhr_data_element: carousel[key].id
409
419
  });
410
420
  } else {
411
- console.debug('carousel found disabled on id: ' + carousel[key].id);
421
+ // console.debug('carousel found disabled on id: ' + carousel[key].id);
412
422
  active_carousels--;
413
423
  }
414
424
  });
415
- console.debug('carousels loaded in page enabled|all: ' + active_carousels + '|' + numcarousels);
425
+ // console.debug('carousels loaded in page enabled|all: ' + active_carousels + '|' + numcarousels);
416
426
  _this.setState('data_loaded');
417
427
  }, // END loadcarouselHTML
418
428
 
@@ -0,0 +1,259 @@
1
+ ---
2
+ regenerate: true
3
+ ---
4
+
5
+ {% capture cache %}
6
+
7
+ {% comment %}
8
+ # -----------------------------------------------------------------------------
9
+ # ~/assets/themes/j1/adapter/js/themeToggler.js
10
+ # Liquid template to adapt the Theme Toggler module
11
+ #
12
+ # Product/Info:
13
+ # https://jekyll.one
14
+ # Copyright (C) 2023 Juergen Adams
15
+ #
16
+ # J1 Theme is licensed under the MIT License.
17
+ # For details, see: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
18
+ # -----------------------------------------------------------------------------
19
+ # Test data:
20
+ # {{ liquid_var | debug }}
21
+ # wave_options: {{ wave_options | debug }}
22
+ # -----------------------------------------------------------------------------
23
+ {% endcomment %}
24
+
25
+ {% comment %} Liquid procedures
26
+ -------------------------------------------------------------------------------- {% endcomment %}
27
+
28
+ {% comment %} Set global settings
29
+ -------------------------------------------------------------------------------- {% endcomment %}
30
+ {% assign environment = site.environment %}
31
+ {% assign asset_path = "/assets/themes/j1" %}
32
+
33
+ {% comment %} Process YML config data
34
+ ================================================================================ {% endcomment %}
35
+
36
+ {% comment %} Set config files
37
+ -------------------------------------------------------------------------------- {% endcomment %}
38
+ {% assign template_config = site.data.j1_config %}
39
+ {% assign blocks = site.data.blocks %}
40
+ {% assign modules = site.data.modules %}
41
+
42
+ {% comment %} Set config data (settings only)
43
+ -------------------------------------------------------------------------------- {% endcomment %}
44
+ {% assign toggler_defaults = modules.defaults.theme_toggler.defaults %}
45
+ {% assign toggler_settings = modules.theme_toggler.settings %}
46
+
47
+ {% comment %} Set config options (settings only)
48
+ -------------------------------------------------------------------------------- {% endcomment %}
49
+ {% assign toggler_options = toggler_defaults | merge: toggler_settings %}
50
+
51
+ {% comment %} Variables
52
+ -------------------------------------------------------------------------------- {% endcomment %}
53
+ {% assign comments = toggler_options.enabled %}
54
+
55
+ {% comment %} Detect prod mode
56
+ -------------------------------------------------------------------------------- {% endcomment %}
57
+ {% assign production = false %}
58
+ {% if environment == 'prod' or environment == 'production' %}
59
+ {% assign production = true %}
60
+ {% endif %}
61
+
62
+ /*
63
+ # -----------------------------------------------------------------------------
64
+ # ~/assets/themes/j1/adapter/js/themeToggler.js
65
+ # J1 Adapter for the Theme Toggler module
66
+ #
67
+ # Product/Info:
68
+ # https://jekyll.one
69
+ #
70
+ # Copyright (C) 2023 Juergen Adams
71
+ #
72
+ # J1 Theme is licensed under the MIT License.
73
+ # For details, see: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
74
+ # -----------------------------------------------------------------------------
75
+ # NOTE: Wave styles defind in /assets/data/panel.html, key 'wave'
76
+ # -----------------------------------------------------------------------------
77
+ # Adapter generated: {{site.time}}
78
+ # -----------------------------------------------------------------------------
79
+ */
80
+
81
+ // -----------------------------------------------------------------------------
82
+ // ESLint shimming
83
+ // -----------------------------------------------------------------------------
84
+ /* eslint indent: "off" */
85
+ // -----------------------------------------------------------------------------
86
+ 'use strict';
87
+ j1.adapter.themeToggler = (function (j1, window) {
88
+
89
+ {% comment %} Set global variables
90
+ -------------------------------------------------------------------------------- {% endcomment %}
91
+ var environment = '{{environment}}';
92
+ var cookie_names = j1.getCookieNames();
93
+ var user_state = j1.readCookie(cookie_names.user_state);
94
+ var viewport_width = $(window).width();
95
+ var url = new liteURL(window.location.href);
96
+ var secure = (url.protocol.includes('https')) ? true : false;
97
+ var cookie_names = j1.getCookieNames();
98
+ var user_state = {};
99
+ var light_theme_css;
100
+ var dark_theme_css;
101
+ var light_theme_name;
102
+ var dark_theme_name;
103
+ var togglerDefaults;
104
+ var togglerSettings;
105
+ var togglerOptions;
106
+ var frontmatterOptions;
107
+ var logger;
108
+ var logText;
109
+
110
+ // ---------------------------------------------------------------------------
111
+ // Main object
112
+ // ---------------------------------------------------------------------------
113
+ return {
114
+
115
+ // -------------------------------------------------------------------------
116
+ // init()
117
+ // adapter initializer
118
+ // -------------------------------------------------------------------------
119
+ init: function (options) {
120
+ logger = log4javascript.getLogger('j1.adapter.theme_toggler');
121
+
122
+ // -----------------------------------------------------------------------
123
+ // Default module settings
124
+ // -----------------------------------------------------------------------
125
+ var settings = $.extend({
126
+ module_name: 'j1.adapter.waves',
127
+ generated: '{{site.time}}'
128
+ }, options);
129
+
130
+ // -----------------------------------------------------------------------
131
+ // Global variable settings
132
+ // -----------------------------------------------------------------------
133
+
134
+ // create settings object from frontmatter
135
+ //
136
+ frontmatterOptions = options != null ? $.extend({}, options) : {};
137
+
138
+ // create settings object from module options
139
+ //
140
+ togglerDefaults = $.extend({}, {{toggler_defaults | replace: 'nil', 'null' | replace: '=>', ':' }});
141
+ togglerSettings = $.extend({}, {{toggler_settings | replace: 'nil', 'null' | replace: '=>', ':' }});
142
+ togglerOptions = $.extend(true, {}, togglerDefaults, togglerSettings, frontmatterOptions);
143
+
144
+ // toggle themes
145
+ //
146
+ light_theme_name = togglerOptions.themes.light.name;
147
+ light_theme_css = togglerOptions.themes.light.css_file;
148
+ dark_theme_name = togglerOptions.themes.dark.name;
149
+ dark_theme_css = togglerOptions.themes.dark.css_file;;
150
+
151
+ // -----------------------------------------------------------------------
152
+ // initializer
153
+ // -----------------------------------------------------------------------
154
+ var dependencies_met_page_ready = setInterval (function (options) {
155
+ var pageState = $('#no_flicker').css("display");
156
+ var pageVisible = (pageState == 'block') ? true : false;
157
+ var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
158
+
159
+ if (j1.getState() === 'finished' && pageVisible && atticFinished) {
160
+ logger.info('\n' + 'initialize module: started');
161
+ user_state = j1.readCookie(cookie_names.user_state);
162
+
163
+ // toggle themeToggler icon to 'dark' if required
164
+ //
165
+ if ($('#quickLinksThemeTogglerButton').length) {
166
+ if (user_state.theme_name == dark_theme_name) {
167
+ $('#quickLinksThemeTogglerButton a i').toggleClass('mdi-lightbulb mdi-lightbulb-outline');
168
+ }
169
+ }
170
+
171
+ $('#quickLinksThemeTogglerButton').click(function() {
172
+
173
+ if (user_state.theme_name == light_theme_name) {
174
+ user_state.theme_name = dark_theme_name;
175
+ user_state.theme_css = dark_theme_css;
176
+ user_state.theme_icon = 'mdi-lightbulb';
177
+ } else {
178
+ user_state.theme_name = light_theme_name;
179
+ user_state.theme_css = light_theme_css;
180
+ user_state.theme_icon = 'mdi-lightbulb-outline';
181
+ }
182
+
183
+ logger.info('\n' + 'switch theme to: ' + user_state.theme_name);
184
+
185
+ user_state.writer = 'themeToggler';
186
+ var cookie_written = j1.writeCookie({
187
+ name: cookie_names.user_state,
188
+ data: user_state,
189
+ secure: secure,
190
+ expires: 365
191
+ });
192
+
193
+ if (!cookie_written) {
194
+ logger.error('\n' + 'failed write to cookie: ' + cookie_names.user_consent);
195
+ } else {
196
+ location.reload(true);
197
+ }
198
+
199
+ });
200
+
201
+ logger.info('\n' + 'initializing module: finished');
202
+ clearInterval(dependencies_met_page_ready);
203
+ }
204
+ }, 10);
205
+ }, // END init
206
+
207
+ // -------------------------------------------------------------------------
208
+ // messageHandler()
209
+ // manage messages send from other J1 modules
210
+ // -------------------------------------------------------------------------
211
+ messageHandler: function (sender, message) {
212
+ var json_message = JSON.stringify(message, undefined, 2);
213
+
214
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
215
+ logger.debug(logText);
216
+
217
+ // -----------------------------------------------------------------------
218
+ // Process commands|actions
219
+ // -----------------------------------------------------------------------
220
+ if (message.type === 'command' && message.action === 'module_initialized') {
221
+ //
222
+ // Place handling of command|action here
223
+ //
224
+ logger.info('\n' + message.text);
225
+ }
226
+
227
+ //
228
+ // Place handling of other command|action here
229
+ //
230
+
231
+ return true;
232
+ }, // END messageHandler
233
+
234
+ // -------------------------------------------------------------------------
235
+ // setState()
236
+ // Sets the current (processing) state of the module
237
+ // -------------------------------------------------------------------------
238
+ setState: function (stat) {
239
+ _this.state = stat;
240
+ }, // END setState
241
+
242
+ // -------------------------------------------------------------------------
243
+ // getState()
244
+ // Returns the current (processing) state of the module
245
+ // -------------------------------------------------------------------------
246
+ getState: function () {
247
+ return _this.state;
248
+ } // END getState
249
+
250
+ }; // END return
251
+ })(j1, window);
252
+
253
+ {% endcapture %}
254
+ {% if production %}
255
+ {{ cache | minifyJS }}
256
+ {% else %}
257
+ {{ cache | strip_empty_lines }}
258
+ {% endif %}
259
+ {% assign cache = nil %}