j1-template 2020.0.8 → 2020.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/blocks/ads/ad.html +64 -0
  3. data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +1 -1
  4. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +3 -2
  5. data/_includes/themes/j1/layouts/content_generator_collection.html +3 -2
  6. data/_includes/themes/j1/layouts/content_generator_page.html +3 -2
  7. data/_includes/themes/j1/layouts/content_generator_post.html +12 -12
  8. data/_includes/themes/j1/layouts/layout_metadata_generator.html +134 -4
  9. data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +6 -9
  10. data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +9 -6
  11. data/_includes/themes/j1/modules/connectors/ads +3 -6
  12. data/_includes/themes/j1/modules/navigator/generator.html +6 -7
  13. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +10 -5
  14. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  15. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +7 -7
  16. data/_layouts/default.html +18 -13
  17. data/assets/data/authclient.html +18 -8
  18. data/assets/data/banner.html +23 -23
  19. data/assets/data/carousel.json +30 -21
  20. data/assets/data/cookie_consent.html +79 -51
  21. data/assets/data/footer.html +14 -5
  22. data/assets/data/galleries.json +90 -81
  23. data/assets/data/gallery_customizer.html +19 -10
  24. data/assets/data/mdi_icons.json +55 -1
  25. data/assets/data/menu.html +14 -7
  26. data/assets/data/mmenu.html +47 -94
  27. data/assets/data/mmenu_sidebar.html +40 -44
  28. data/assets/data/mmenu_toc.html +19 -3
  29. data/assets/data/panel.html +30 -23
  30. data/assets/data/quicklinks.html +13 -3
  31. data/assets/data/{search.yml → search.json} +44 -14
  32. data/assets/data/ssm.html +20 -9
  33. data/assets/data/themes.json +17 -6
  34. data/assets/data/twa_v1.json +7034 -6978
  35. data/assets/themes/j1/adapter/js/algolia.js +34 -17
  36. data/assets/themes/j1/adapter/js/attic.js +66 -46
  37. data/assets/themes/j1/adapter/js/carousel.js +43 -22
  38. data/assets/themes/j1/adapter/js/clipboard.js +230 -0
  39. data/assets/themes/j1/adapter/js/cookie_consent.js +21 -4
  40. data/assets/themes/j1/adapter/js/framer.js +18 -3
  41. data/assets/themes/j1/adapter/js/gallery_customizer.js +27 -10
  42. data/assets/themes/j1/adapter/js/j1.js +342 -757
  43. data/assets/themes/j1/adapter/js/{justified_gallery.js → jf_gallery.js} +64 -38
  44. data/assets/themes/j1/adapter/js/lightbox.js +20 -3
  45. data/assets/themes/j1/adapter/js/logger.js +23 -6
  46. data/assets/themes/j1/adapter/js/mdb.js +167 -0
  47. data/assets/themes/j1/adapter/js/mmenu.js +33 -30
  48. data/assets/themes/j1/adapter/js/navigator.js +126 -140
  49. data/assets/themes/j1/adapter/js/searcher.js +22 -4
  50. data/assets/themes/j1/adapter/js/ssm.js +84 -63
  51. data/assets/themes/j1/adapter/js/themer.js +35 -53
  52. data/assets/themes/j1/adapter/js/toccer.js +29 -14
  53. data/assets/themes/j1/core/css/theme_extensions.css +120 -1230
  54. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  55. data/assets/themes/j1/core/css/uno.css +256 -1288
  56. data/assets/themes/j1/core/css/uno.min.css +1 -1
  57. data/assets/themes/j1/core/css/vendor.css +7 -57
  58. data/assets/themes/j1/core/css/vendor.min.css +2 -2
  59. data/assets/themes/j1/core/js/template.js +16 -86
  60. data/assets/themes/j1/core/js/template.js.map +1 -1
  61. data/assets/themes/j1/core/js/template.min.js +1 -1
  62. data/assets/themes/j1/extensions/bsDatepicker/css/datepicker.css +203 -0
  63. data/assets/themes/j1/extensions/bsDatepicker/css/theme/uno.css +235 -0
  64. data/assets/themes/j1/extensions/bsDatepicker/js/datepicker.js +509 -0
  65. data/assets/themes/j1/extensions/bsDatepicker/less/datepicker.less +122 -0
  66. data/assets/themes/j1/extensions/bsThemeSwitcher/js/switcher.js +425 -0
  67. data/assets/themes/j1/extensions/bsThemeSwitcher/js/switcher.min.js +20 -0
  68. data/assets/themes/j1/extensions/clipboard/LICENSE +20 -0
  69. data/assets/themes/j1/extensions/clipboard/css/theme/uno.css +52 -0
  70. data/assets/themes/j1/extensions/clipboard/css/theme/uno.min.css +52 -0
  71. data/assets/themes/j1/extensions/clipboard/js/clipboard.js +975 -0
  72. data/assets/themes/j1/extensions/clipboard/js/clipboard.min.js +7 -0
  73. data/assets/themes/j1/extensions/{iconify → iconifyAPI}/js/iconify.min.js +0 -0
  74. data/assets/themes/j1/extensions/iframeResizer/LICENSE +21 -0
  75. data/assets/themes/j1/extensions/iframeResizer/examples/frame.absolute.html +127 -0
  76. data/assets/themes/j1/extensions/iframeResizer/examples/frame.content.html +157 -0
  77. data/assets/themes/j1/extensions/iframeResizer/examples/frame.hover.html +68 -0
  78. data/assets/themes/j1/extensions/iframeResizer/examples/frame.nested.html +100 -0
  79. data/assets/themes/j1/extensions/iframeResizer/examples/frame.textarea.html +45 -0
  80. data/assets/themes/j1/extensions/iframeResizer/examples/frame.tolerance.html +113 -0
  81. data/assets/themes/j1/extensions/iframeResizer/examples/index.html +83 -0
  82. data/assets/themes/j1/extensions/iframeResizer/examples/two.html +88 -0
  83. data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.js +1288 -0
  84. data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.map +1 -0
  85. data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.min.js +10 -0
  86. data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.js +1390 -0
  87. data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.map +1 -0
  88. data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.min.js +9 -0
  89. data/assets/themes/j1/extensions/jqMouseWheel/README.md +76 -0
  90. data/assets/themes/j1/extensions/jqMouseWheel/js/jquery.mousewheel.js +221 -0
  91. data/assets/themes/j1/extensions/jqMouseWheel/js/jquery.mousewheel.min.js +9 -0
  92. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/LICENSE +0 -0
  93. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/README.md +0 -0
  94. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/justifiedGallery.css +0 -0
  95. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
  96. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/theme/uno.css +0 -0
  97. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
  98. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.js +0 -0
  99. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
  100. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/less/.csslintrc +0 -0
  101. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/less/justifiedGallery.less +0 -0
  102. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/justifiedGallery.css +0 -0
  103. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
  104. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/theme/uno.css +0 -0
  105. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
  106. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
  107. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/justifiedGallery.css +0 -0
  108. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/justifiedGallery.min.css +0 -0
  109. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/theme/uno.css +0 -0
  110. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/theme/uno.min.css +0 -0
  111. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/js/justifiedGallery.js +0 -0
  112. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/js/justifiedGallery.min.js +0 -0
  113. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-fb-comment-box.css +0 -0
  114. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-fb-comment-box.min.css +0 -0
  115. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-transitions.css +0 -0
  116. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-transitions.min.css +0 -0
  117. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lightgallery.css +0 -0
  118. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lightgallery.min.css +0 -0
  119. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.eot +0 -0
  120. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.svg +0 -0
  121. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.ttf +0 -0
  122. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.woff +0 -0
  123. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/loading.gif +0 -0
  124. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/video-play.png +0 -0
  125. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/vimeo-play.png +0 -0
  126. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/youtube-play.png +0 -0
  127. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/animation-w.png +0 -0
  128. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/customize-w.png +0 -0
  129. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/dynamic-w.png +0 -0
  130. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/facebook-icon.svg +0 -0
  131. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/googleplus-icon.svg +0 -0
  132. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/html5-w.png +0 -0
  133. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/linked-in.png +0 -0
  134. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/module-w.png +0 -0
  135. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/play-button.png +0 -0
  136. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/responsive-w.png +0 -0
  137. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/thumb-w.png +0 -0
  138. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/touch-w.png +0 -0
  139. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/twitter-icon.svg +0 -0
  140. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/twitter.png +0 -0
  141. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/video1-w.png +0 -0
  142. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/zoom-w.png +0 -0
  143. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/zoom.png +0 -0
  144. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/uno.css +1 -1
  145. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/uno.min.css +1 -1
  146. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/core/lightgallery.js +0 -0
  147. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/core/lightgallery.min.js +0 -0
  148. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/j1/j1-video.js +0 -0
  149. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/j1/j1-video.min.js +0 -0
  150. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-autoplay.js +0 -0
  151. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-autoplay.min.js +0 -0
  152. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-fullscreen.js +0 -0
  153. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-fullscreen.min.js +0 -0
  154. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-hash.js +0 -0
  155. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-hash.min.js +0 -0
  156. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-pager.js +0 -0
  157. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-pager.min.js +0 -0
  158. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-share.js +0 -0
  159. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-share.min.js +0 -0
  160. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-thumbnail.js +0 -0
  161. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-thumbnail.min.js +0 -0
  162. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-video.js +0 -0
  163. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-video.min.js +0 -0
  164. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-zoom.js +0 -0
  165. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-zoom.min.js +0 -0
  166. data/assets/themes/j1/extensions/lightbox/LICENSE +22 -0
  167. data/assets/themes/j1/extensions/lightbox/css/lightbox.css +224 -0
  168. data/assets/themes/j1/extensions/lightbox/css/lightbox.min.css +21 -0
  169. data/assets/themes/j1/extensions/lightbox/css/theme/uno.css +25 -0
  170. data/assets/themes/j1/extensions/lightbox/css/theme/uno.min.css +26 -0
  171. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/close.png +0 -0
  172. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/loading.gif +0 -0
  173. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/next.png +0 -0
  174. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/prev.png +0 -0
  175. data/assets/themes/j1/extensions/lightbox/js/lightbox.js +583 -0
  176. data/assets/themes/j1/extensions/lightbox/js/lightbox.min.js +35 -0
  177. data/assets/themes/j1/extensions/mmenuLight/css/mmenu.css +392 -0
  178. data/assets/themes/j1/extensions/mmenuLight/css/mmenu.min.css +393 -0
  179. data/assets/themes/j1/extensions/mmenuLight/css/theme/uno.css +170 -0
  180. data/assets/themes/j1/extensions/mmenuLight/css/theme/uno.min.css +169 -0
  181. data/assets/themes/j1/extensions/mmenuLight/js/mmenu.js +30 -0
  182. data/assets/themes/j1/extensions/noUISlider/LICENSE +13 -0
  183. data/assets/themes/j1/extensions/noUISlider/css/nouislider.css +260 -0
  184. data/assets/themes/j1/extensions/noUISlider/css/nouislider.min.css +1 -0
  185. data/assets/themes/j1/extensions/noUISlider/js/nouislider.js +2312 -0
  186. data/assets/themes/j1/extensions/noUISlider/js/nouislider.min.js +3 -0
  187. data/assets/themes/j1/extensions/twemoji/js/LICENSE +21 -0
  188. data/assets/themes/j1/extensions/twemoji/js/picker/LICENSE +21 -0
  189. data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.js +21 -0
  190. data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.min.js +21 -0
  191. data/assets/themes/j1/extensions/twemoji/js/twemoji.js +590 -0
  192. data/assets/themes/j1/extensions/twemoji/js/twemoji.min.js +25 -0
  193. data/lib/j1/version.rb +3 -3
  194. data/lib/starter_web/Gemfile +7 -1
  195. data/lib/starter_web/_config.yml +9 -8
  196. data/lib/starter_web/_data/_defaults/resources.yml +13 -13
  197. data/lib/starter_web/_data/blocks/banner.yml +21 -29
  198. data/lib/starter_web/_data/blocks/footer.yml +10 -3
  199. data/lib/starter_web/_data/blocks/panel.yml +13 -13
  200. data/lib/starter_web/_data/layouts/default.yml +10 -0
  201. data/lib/starter_web/_data/layouts/home.yml +7 -7
  202. data/lib/starter_web/_data/layouts/page.yml +15 -16
  203. data/lib/starter_web/_data/modules/advertising.yml +48 -0
  204. data/lib/starter_web/_data/modules/attics.yml +2 -38
  205. data/lib/starter_web/_data/modules/cookie_consent.yml +3 -95
  206. data/lib/starter_web/_data/modules/defaults/attics.yml +16 -15
  207. data/lib/starter_web/_data/modules/defaults/cookie_consent.yml +75 -12
  208. data/lib/starter_web/_data/modules/defaults/jekyll_search.yml +9 -9
  209. data/lib/starter_web/_data/modules/defaults/navigator.yml +56 -21
  210. data/lib/starter_web/_data/modules/defaults/ssm.yml +3 -3
  211. data/lib/starter_web/_data/modules/defaults/toccer.yml +4 -8
  212. data/lib/starter_web/_data/modules/jekyll_search.yml +3 -21
  213. data/lib/starter_web/_data/modules/navigator.yml +1 -1
  214. data/lib/starter_web/_data/modules/navigator_menu.yml +4 -0
  215. data/lib/starter_web/_data/modules/ssm.yml +9 -0
  216. data/lib/starter_web/_data/modules/themer.yml +2 -3
  217. data/lib/starter_web/_data/modules/toccer.yml +6 -11
  218. data/lib/starter_web/_data/resources.yml +240 -112
  219. data/lib/starter_web/_data/template_settings.yml +117 -6
  220. data/lib/starter_web/_plugins/asciidoctor-extensions/fab-icon-inline.rb +1 -1
  221. data/lib/starter_web/_plugins/asciidoctor-extensions/fas-icon-inline.rb +2 -2
  222. data/lib/starter_web/_plugins/asciidoctor-extensions/iconify-icon-inline.rb +2 -2
  223. data/lib/starter_web/_plugins/asciidoctor-extensions/mdi-icon-inline.rb +2 -2
  224. data/lib/starter_web/_plugins/asciidoctor-extensions/twitter-emoji-inline.rb +2 -2
  225. data/lib/starter_web/_plugins/minifyJS.rb +54 -0
  226. data/lib/starter_web/_plugins/{uglify.rb → minifyJSON.rb} +15 -9
  227. data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.jpg +0 -0
  228. data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.jpg +0 -0
  229. data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.jpg +0 -0
  230. data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.jpg +0 -0
  231. data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
  232. data/lib/starter_web/assets/images/modules/attics/banner/library-1920x800-bw.jpg +0 -0
  233. data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.jpg +0 -0
  234. data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.jpg +0 -0
  235. data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.jpg +0 -0
  236. data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.jpg +0 -0
  237. data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280-bw.jpg +0 -0
  238. data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200-bw.jpg +0 -0
  239. data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.jpg +0 -0
  240. data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
  241. data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.jpg +0 -0
  242. data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.jpg +0 -0
  243. data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.jpg +0 -0
  244. data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.jpg +0 -0
  245. data/lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.jpg +0 -0
  246. data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
  247. data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.jpg +0 -0
  248. data/lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.jpg +0 -0
  249. data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.jpg +0 -0
  250. data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.jpg +0 -0
  251. data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.jpg +0 -0
  252. data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
  253. data/lib/starter_web/assets/images/modules/attics/runner-1920x1200-bw.jpg +0 -0
  254. data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.jpg +0 -0
  255. data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280-bw.jpg +0 -0
  256. data/lib/starter_web/assets/images/modules/attics/welcome-1920x1280-bw.jpg +0 -0
  257. data/lib/starter_web/assets/images/modules/carousel/cats/cat-1.jpg +0 -0
  258. data/lib/starter_web/assets/images/modules/carousel/mega_cities/andreas-brucker_b.jpg +0 -0
  259. data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-1_b.jpg +0 -0
  260. data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-2_b.jpg +0 -0
  261. data/lib/starter_web/assets/images/modules/carousel/mega_cities/luca-bravo_b.jpg +0 -0
  262. data/lib/starter_web/assets/images/modules/carousel/mega_cities/thomas-tucker_b.jpg +0 -0
  263. data/lib/starter_web/assets/images/modules/gallery/mega_cities/banter-snaps_b.jpg +0 -0
  264. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-1_b.jpg +0 -0
  265. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2-bw.jpg +0 -0
  266. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2_b.jpg +0 -0
  267. data/lib/starter_web/assets/images/modules/gallery/mega_cities/emmad-mazhari_b.jpg +0 -0
  268. data/lib/starter_web/assets/images/modules/gallery/mega_cities/ethan-brooke_b.jpg +0 -0
  269. data/lib/starter_web/assets/images/modules/gallery/mega_cities/federico-rizzarelli_b.jpg +0 -0
  270. data/lib/starter_web/assets/images/modules/gallery/mega_cities/gints-gailis_b.jpg +0 -0
  271. data/lib/starter_web/assets/images/modules/gallery/mega_cities/johan-mouchet_b.jpg +0 -0
  272. data/lib/starter_web/assets/images/modules/gallery/mega_cities/luca-bravo_b.jpg +0 -0
  273. data/lib/starter_web/assets/images/modules/gallery/mega_cities/oskars-sylwan_b.jpg +0 -0
  274. data/lib/starter_web/assets/images/modules/gallery/mega_cities/steven-diaz_b.jpg +0 -0
  275. data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker-bw.jpg +0 -0
  276. data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker_b.jpg +0 -0
  277. data/lib/starter_web/index.html +9 -8
  278. data/lib/starter_web/package.json +1 -1
  279. data/lib/starter_web/pages/public/clear_button.adoc +121 -0
  280. data/lib/starter_web/pages/public/learn/examples/floating_ad.adoc +221 -0
  281. data/lib/starter_web/pages/public/learn/{floating_sidebar.adoc → examples/floating_div.adoc} +60 -50
  282. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/parts.asciidoc +1 -1
  283. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +9 -4
  284. data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour_api.adoc +2 -2
  285. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_table_3_column.asciidoc +1 -1
  286. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/419_advanced_modals_html.asciidoc +5 -5
  287. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
  288. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +4 -3
  289. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +35 -44
  290. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
  291. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +39 -39
  292. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_table_3_column.asciidoc +1 -1
  293. data/lib/starter_web/pages/public/learn/whats_up.adoc +1 -0
  294. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +54 -48
  295. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +1 -1
  296. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +1 -1
  297. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/120_relative_sizes.asciidoc +1 -41
  298. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
  299. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/300_flip.asciidoc +1 -1
  300. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +1 -1
  301. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +1 -1
  302. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +1 -1
  303. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/600_md_color_palette.asciidoc +1 -1
  304. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +1 -1
  305. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +1 -1
  306. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +1 -1
  307. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +1 -1
  308. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/200_rotate.asciidoc +1 -1
  309. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/300_flip.asciidoc +1 -1
  310. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +1 -1
  311. data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +672 -863
  312. data/lib/starter_web/pages/public/previewer/iframer.adoc +15 -14
  313. data/lib/starter_web/pages/public/previewer/justified_gallery.html +1 -1
  314. data/lib/starter_web/pages/public/previewer/mdb_preview/000_includes/attributes.asciidoc +69 -0
  315. data/lib/starter_web/pages/public/previewer/mdb_preview/000_includes/documents/100_buttons.asciidoc +170 -0
  316. data/lib/starter_web/pages/public/previewer/mdb_preview/mdb_previewer.adoc +52 -0
  317. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +1 -1
  318. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +2 -2
  319. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  320. data/lib/starter_web/utilsrv/package.json +1 -1
  321. metadata +148 -105
  322. data/assets/data/colors.json +0 -42
  323. data/assets/data/font_sizes.json +0 -42
  324. data/assets/data/messages.yml +0 -131
  325. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +0 -86
  326. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.content.html +0 -58
  327. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +0 -51
  328. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +0 -68
  329. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +0 -46
  330. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +0 -79
  331. data/assets/themes/j1/extensions/iframe_resizer/examples/index.html +0 -70
  332. data/assets/themes/j1/extensions/iframe_resizer/examples/two.html +0 -71
  333. data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +0 -1104
  334. data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +0 -1
  335. data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +0 -10
  336. data/assets/themes/j1/extensions/log4javascript/log4javascript.js +0 -5826
  337. data/assets/themes/j1/extensions/log4javascript/log4javascript.min.js +0 -266
  338. data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.png +0 -0
  339. data/lib/starter_web/assets/images/modules/attics/mae-mu-Vf9gbsLZyf0-unsplash.jpg +0 -0
  340. data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280-v.jpg +0 -0
  341. data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280.jpg +0 -0
@@ -1,5 +1,5 @@
1
1
  ---
2
- regenerate: false
2
+ regenerate: true
3
3
  ---
4
4
 
5
5
  {% capture cache %}
@@ -45,6 +45,11 @@ regenerate: false
45
45
  -------------------------------------------------------------------------------- {% endcomment %}
46
46
  {% assign jekyll_search_options = jekyll_search_defaults | merge: jekyll_search_settings %}
47
47
 
48
+ {% assign production = false %}
49
+ {% if environment == 'prod' or environment == 'production' %}
50
+ {% assign production = true %}
51
+ {% endif %}
52
+
48
53
  /*
49
54
  # -----------------------------------------------------------------------------
50
55
  # ~/assets/themes/j1/adapter/js/searcher.js
@@ -65,6 +70,12 @@ regenerate: false
65
70
  # Adapter generated: {{site.time}}
66
71
  # -----------------------------------------------------------------------------
67
72
  */
73
+
74
+ // -----------------------------------------------------------------------------
75
+ // ESLint shimming
76
+ // -----------------------------------------------------------------------------
77
+ /* eslint indent: "off" */
78
+ // -----------------------------------------------------------------------------
68
79
  'use strict';
69
80
 
70
81
  {% comment %} Main
@@ -107,7 +118,9 @@ j1.adapter['searcher'] = (function (j1, window) {
107
118
  {% comment %} Load module config from yml data
108
119
  -------------------------------------------------------------------------- {% endcomment %}
109
120
  // Load module DEFAULTS|CONFIG
121
+ /* eslint-disable */
110
122
  moduleOptions = $.extend({}, {{jekyll_search_options | replace: '=>', ':' | replace: 'nil', '""'}});
123
+ /* eslint-enable */
111
124
 
112
125
  if (typeof settings !== 'undefined') {
113
126
  moduleOptions = j1.mergeData(moduleOptions, settings);
@@ -124,6 +137,7 @@ j1.adapter['searcher'] = (function (j1, window) {
124
137
  resultsContainer: document.getElementById(moduleOptions.results_container),
125
138
  json: moduleOptions.index_data,
126
139
  searchResultTemplate: moduleOptions.result_template,
140
+ results_output: moduleOptions.results_output,
127
141
  limit: moduleOptions.result_limit,
128
142
  minSearchItemLen: moduleOptions.min_search_item_len,
129
143
  fuzzy: moduleOptions.search_fuzzy,
@@ -136,7 +150,7 @@ j1.adapter['searcher'] = (function (j1, window) {
136
150
  } else {
137
151
  _this.setState('finished');
138
152
  logger.info('state: ' + _this.getState());
139
- logger.info("module disabled");
153
+ logger.info('module disabled');
140
154
  }
141
155
 
142
156
  return true;
@@ -189,5 +203,9 @@ j1.adapter['searcher'] = (function (j1, window) {
189
203
  })(j1, window);
190
204
 
191
205
  {% endcapture %}
192
- {{ cache | strip_empty_lines }}
193
- {% assign cache = nil %}
206
+ {% if production %}
207
+ {{ cache | minifyJS }}
208
+ {% else %}
209
+ {{ cache | strip_empty_lines }}
210
+ {% endif %}
211
+ {% assign cache = nil %}
@@ -1,5 +1,5 @@
1
1
  ---
2
- regenerate: true
2
+ regenerate: true
3
3
  ---
4
4
 
5
5
  {% capture cache %}
@@ -20,6 +20,13 @@ regenerate: true
20
20
  # Test data:
21
21
  # {{ liquid_var | debug }}
22
22
  # -----------------------------------------------------------------------------
23
+ # NOTE:
24
+ # jadams, 2020-07-17:
25
+ # J1 SSM can't be minfied for now. Uglifier fails on an ES6 (most probably)
26
+ # structure that couldn't fixed by 'harmony' setting. Minifier fails by:
27
+ # Unexpected token: punc ())
28
+ # Current, minifying has been disabled
29
+ # -----------------------------------------------------------------------------
23
30
  {% endcomment %}
24
31
 
25
32
  {% comment %} Liquid var initialization
@@ -27,7 +34,7 @@ regenerate: true
27
34
 
28
35
  {% comment %} Set config files
29
36
  -------------------------------------------------------------------------------- {% endcomment %}
30
- {% assign site_config = site %}
37
+ {% assign environment = site.environment %}
31
38
  {% assign template_config = site.data.template_settings %}
32
39
  {% assign modules = site.data.modules %}
33
40
 
@@ -43,6 +50,11 @@ regenerate: true
43
50
  {% assign toccer_options = toccer_defaults | merge: toccer_settings %}
44
51
  {% assign ssm_options = ssm_defaults | merge: ssm_settings %}
45
52
 
53
+ {% assign production = false %}
54
+ {% if environment == 'prod' or environment == 'production' %}
55
+ {% assign production = true %}
56
+ {% endif %}
57
+
46
58
  /*
47
59
  # -----------------------------------------------------------------------------
48
60
  # ~/assets/themes/j1/adapter/js/ssm.js
@@ -59,10 +71,15 @@ regenerate: true
59
71
  # Adapter generated: {{site.time}}
60
72
  # -----------------------------------------------------------------------------
61
73
  */
74
+
75
+ // -----------------------------------------------------------------------------
76
+ // ESLint shimming
77
+ // -----------------------------------------------------------------------------
78
+ /* eslint indent: "off" */
79
+ // -----------------------------------------------------------------------------
62
80
  'use strict';
63
81
 
64
82
  j1.adapter['ssm'] = (function (j1, window) {
65
-
66
83
  // ---------------------------------------------------------------------------
67
84
  // globals
68
85
  // ---------------------------------------------------------------------------
@@ -78,12 +95,12 @@ j1.adapter['ssm'] = (function (j1, window) {
78
95
  var _this;
79
96
  var logger;
80
97
  var logText;
98
+ const isMobile = j1.core.isMobile();
81
99
 
82
100
  // ---------------------------------------------------------------------------
83
101
  // helper functions
84
102
  // ---------------------------------------------------------------------------
85
103
 
86
-
87
104
  // ---------------------------------------------------------------------------
88
105
  // main object
89
106
  // ---------------------------------------------------------------------------
@@ -113,20 +130,22 @@ j1.adapter['ssm'] = (function (j1, window) {
113
130
  // -----------------------------------------------------------------------
114
131
  _this = j1.adapter.ssm;
115
132
  logger = log4javascript.getLogger('j1.adapter.ssm');
116
- sect12Nodes = $("[class$='sect1'],[class$='sect2'");
117
- sect1Nodes = $("[class$='sect1']");
133
+ sect12Nodes = $('[class$="sect1"],[class$="sect2"');
134
+ sect1Nodes = $('[class$="sect1"]');
118
135
 
119
136
  // -----------------------------------------------------------------------
120
137
  // options loader
121
138
  // -----------------------------------------------------------------------
139
+ /* eslint-disable */
122
140
  var ssmMenuOptions = $.extend({}, {{nav_ssm_options | replace: '=>', ':' }});
123
141
  var ssmOptions = $.extend({}, {{ssm_options | replace: 'nil', 'null' | replace: '=>', ':' }});
142
+ /* eslint-enable */
124
143
  var xhr_data_path;
125
144
  var menu_id;
126
145
 
127
146
  // Load (individual) frontmatter options (currently NOT used)
128
147
  //
129
- if (options != null) { var frontmatterOptions = $.extend({}, options) }
148
+ if (options != null) { var frontmatterOptions = $.extend({}, options); }
130
149
 
131
150
  if (typeof frontmatterOptions !== 'undefined') {
132
151
  moduleOptions = j1.mergeData(ssmOptions, frontmatterOptions);
@@ -137,7 +156,7 @@ j1.adapter['ssm'] = (function (j1, window) {
137
156
  j1.adapter.ssm['moduleOptions'] = moduleOptions;
138
157
 
139
158
  _this.setState('started');
140
- logger.info('state: ' + _this.getState());
159
+ logger.info('set module state to: ' + _this.getState());
141
160
  logger.info('module is being initialized');
142
161
 
143
162
  // jadams, 2020-06-24: Set max_count to 100 what cause to wait 2.5s
@@ -177,7 +196,7 @@ j1.adapter['ssm'] = (function (j1, window) {
177
196
  var isToc = (ssmOptions.toc === 'true');
178
197
 
179
198
  _this.setState('loading');
180
- logger.info('status: ' + _this.getState());
199
+ logger.info('set module state to: ' + _this.getState());
181
200
  logger.info('load HTML data for ssm');
182
201
 
183
202
  {% assign id_list = "" %}
@@ -187,38 +206,42 @@ j1.adapter['ssm'] = (function (j1, window) {
187
206
  {% assign xhr_data_path = ssm_options.xhr_data_path %}
188
207
  j1.xhrData (
189
208
  'j1.adapter.ssm', {
190
- xhr_container_id: "{{menu_id}}",
191
- xhr_data_path: "{{xhr_data_path}}" },
209
+ xhr_container_id: '{{menu_id}}',
210
+ xhr_data_path: '{{xhr_data_path}}' },
192
211
  'data_loaded')
193
- ).done (function (ssm) {
212
+ ).done (function (ssm_html_loaded) {
194
213
  // ---------------------------------------------------------------------
195
214
  // Initialize MMenu Navs and Drawers
196
215
  // ---------------------------------------------------------------------
197
216
  var dependencies_met_mmenu_initialized = setInterval (function () {
198
- if (ssm) {
217
+ if (ssm_html_loaded && $('#{{ssm_options.menu_id}}').length) {
218
+ _this.setState('loaded');
219
+ logger.info('set module state to: ' + _this.getState());
220
+ logger.info('HTML data for ssm: ' + _this.getState());
199
221
  if(isToc) {
200
- logger.info('toc enabled in page');
222
+ logger.info('found toc in page: enabled');
201
223
  if ( j1.adapter.toccer.getState() == 'finished' ) {
202
- logger.info('initializing toccer: finished');
224
+ logger.info('dependency met for module : toccer');
203
225
  _this.setState('processing');
204
- logger.info('status: ' + _this.getState());
226
+ logger.info('set module state to: ' + _this.getState());
205
227
  logger.info('initialize ssm menu');
206
- if ( ssmOptions.mode === 'icon') {
207
- logger.info('icon mode detected');
208
- }
228
+ (ssmOptions.mode === 'icon')
229
+ ? logger.info('ssm mode detected: icon')
230
+ : logger.info('ssm mode detected: menu');
209
231
  _this.scrollSpy(ssmOptions);
210
232
  _this.buttonInitializer(ssmOptions);
211
233
  clearInterval(dependencies_met_mmenu_initialized);
212
234
  }
213
235
  } else {
214
- logger.info('toc disabled in page');
215
- $('#ssm_toc').closest('.ssm-btn').hide()
236
+ logger.info('found toc in page: disabled');
237
+ logger.info('disable toc menu and prev|next section buttons');
238
+ $('#ssm_toc').closest('.ssm-btn').hide();
239
+ $('#ssm_previous_section').closest('.ssm-btn').hide();
240
+ $('#ssm_next_section').closest('.ssm-btn').hide();
216
241
  _this.scrollSpy(ssmOptions);
217
242
  _this.buttonInitializer(ssmOptions);
218
243
  clearInterval(dependencies_met_mmenu_initialized);
219
244
  }
220
- } else {
221
- logger.error('initialize ssm failed, HTML data NOT loaded');
222
245
  }
223
246
  }, 25); // END dependencies_met_mmenu_loaded
224
247
  }); // END done
@@ -245,10 +268,9 @@ j1.adapter['ssm'] = (function (j1, window) {
245
268
 
246
269
  // Create an eventhandler instance if id exists: {{button_id}}
247
270
  if ($('#{{button_id}}').length) {
248
- eventHandler = "{{item.event_handler}}"
249
-
271
+ eventHandler = '{{item.event_handler}}';
250
272
  // check if eventhandler configured is a SINGLE word
251
- if (eventHandler.split(" ").length == 1) {
273
+ if (eventHandler.split(' ').length == 1) {
252
274
  logger.info('register pre-configured eventhandler {{item.event_handler}} on id: {{button_id}}');
253
275
  $('#{{button_id}}').each(function(e) {
254
276
  var $this = $(this);
@@ -259,7 +281,8 @@ j1.adapter['ssm'] = (function (j1, window) {
259
281
  } else {
260
282
  logger.info('register custom eventhandler on id: {{button_id}}');
261
283
  }
262
-
284
+ } else {
285
+ alert ('Creating Eventhandler failed on: #{{button_id}}');
263
286
  } // END items (buttons)
264
287
  {% endif %} // menu_type 'top_level_item'
265
288
  {% endif %} // ENDIF button_id enabled
@@ -272,10 +295,15 @@ j1.adapter['ssm'] = (function (j1, window) {
272
295
  // -------------------------------------------------------------------------
273
296
  // open mobile menu
274
297
  // -------------------------------------------------------------------------
275
- open_ssm_toc: function (id) {
276
- logger.info('eventhandler fired on id: ' + id );
298
+ open_ssm_toc: function () {
277
299
  }, // END open_ssm_toc
278
300
 
301
+ // -------------------------------------------------------------------------
302
+ // reload page
303
+ // -------------------------------------------------------------------------
304
+ reload_page: function () {
305
+ location.reload();
306
+ }, // END open_ssm_toc
279
307
  // -------------------------------------------------------------------------
280
308
  // scroll to previous section
281
309
  // -------------------------------------------------------------------------
@@ -287,30 +315,32 @@ j1.adapter['ssm'] = (function (j1, window) {
287
315
 
288
316
  var index = 0;
289
317
  var maxNode = $(nodes).length - 1;
290
- var $toc = $("#sidebar");
291
- var current_header_id = $toc.find(".is-active-link").attr('href');
318
+ var $toc = $('#sidebar');
319
+ var current_header_id = $toc.find('.is-active-link').attr('href');
320
+ var scrollDuration = {{toccer_options.scrollSmoothDuration}};
321
+ var scrollOffset = {{toccer_options.scrollSmoothOffset}};
292
322
 
293
- // logger.info('eventhandler fired on id: ' + id );
323
+ // Correction if mobile (offset: desktop -90px, mobile -80px)
324
+ scrollOffset = j1.core.isMobile() ? scrollOffset + 10 : scrollOffset;
294
325
 
295
326
  nodes.each(function() {
296
327
  currentNode = $(this).find(current_header_id);
297
328
  if (currentNode.length) {
298
329
  if (index > maxNode) {
299
- return false
330
+ return false;
300
331
  } else {
301
332
  prev_node = (index > 0) ? nodes[index-1] : nodes[index];
302
- previous_header_id = $(prev_node).find(":header").first()[0].id;
333
+ previous_header_id = $(prev_node).find(':header').first()[0].id;
303
334
  anchor_id = '#' + previous_header_id;
304
335
 
305
336
  $('a[href*="' + current_header_id + '"]').removeClass('is-active-link');
306
337
  $('a[href*="' + previous_header_id + '"]').addClass('is-active-link');
307
338
 
308
339
  j1.core.scrollSmooth.scroll( anchor_id, {
309
- duration: {{toccer_options.scrollSmoothDuration}},
310
- offset: {{toccer_options.scrollSmoothOffset}},
340
+ duration: scrollDuration,
341
+ offset: scrollOffset,
311
342
  callback: null
312
343
  });
313
- return false;
314
344
  }
315
345
  }
316
346
  (index < maxNode) ? index++ : index;
@@ -328,31 +358,32 @@ j1.adapter['ssm'] = (function (j1, window) {
328
358
 
329
359
  var index = 0;
330
360
  var maxNode = $(nodes).length -1;
331
- var $toc = $("#sidebar");
332
- var current_header_id = $toc.find(".is-active-link").attr('href');
361
+ var $toc = $('#sidebar');
362
+ var current_header_id = $toc.find('.is-active-link').attr('href');
363
+ var scrollDuration = {{toccer_options.scrollSmoothDuration}};
364
+ var scrollOffset = {{toccer_options.scrollSmoothOffset}};
333
365
 
334
- // logger.info('eventhandler fired on id: ' + id );
366
+ // Correction if mobile (offset: desktop -90px, mobile -80px)
367
+ scrollOffset = j1.core.isMobile() ? scrollOffset + 10 : scrollOffset;
335
368
 
336
369
  nodes.each(function() {
337
370
  currentNode = $(this).find(current_header_id);
338
371
  if (currentNode.length) {
339
372
  if (index == maxNode) {
340
- return false
373
+ return false;
341
374
  } else {
342
375
  nextNode = nodes[index+1];
343
- next_header_id = $(nextNode).closest().find(":header").first();
344
- next_header_id = $(nextNode).find(":header").first()[0].id;
376
+ next_header_id = $(nextNode).find(':header').first()[0].id;
345
377
  anchor_id = '#' + next_header_id;
346
378
 
347
379
  $('a[href*="' + current_header_id + '"]').removeClass('is-active-link');
348
380
  $('a[href*="' + next_header_id + '"]').addClass('is-active-link');
349
381
 
350
382
  j1.core.scrollSmooth.scroll( anchor_id, {
351
- duration: {{toccer_options.scrollSmoothDuration}},
352
- offset: {{toccer_options.scrollSmoothOffset}},
383
+ duration: scrollDuration,
384
+ offset: scrollOffset,
353
385
  callback: null
354
386
  });
355
- return false;
356
387
  }
357
388
  }
358
389
  (index < maxNode) ? index++ : index;
@@ -365,8 +396,6 @@ j1.adapter['ssm'] = (function (j1, window) {
365
396
  scroll_to_top: function () {
366
397
  var dest = 0;
367
398
 
368
- // logger.info('eventhandler fired on id: ' + id );
369
-
370
399
  $('html, body').animate({
371
400
  scrollTop: dest
372
401
  }, 500);
@@ -380,9 +409,7 @@ j1.adapter['ssm'] = (function (j1, window) {
380
409
  var $footer = $('#j1_footer');
381
410
  var f = $footer.length ? $footer.outerHeight() : 0;
382
411
  var pageHeight = $page.height() - f - 400;
383
- var pageHeightOuter = $page.outerHeight()
384
-
385
- // logger.info('eventhandler fired on id: ' + id );
412
+ var pageHeightOuter = $page.outerHeight();
386
413
 
387
414
  $('html, body').animate({
388
415
  scrollTop: pageHeight
@@ -393,16 +420,15 @@ j1.adapter['ssm'] = (function (j1, window) {
393
420
  // scroll to comments (Disqus)
394
421
  // -------------------------------------------------------------------------
395
422
  scroll_to_comments: function () {
396
- // logger.info('eventhandler fired on id: ' + id );
397
423
  }, // END scroll_comments
398
424
 
399
425
  // -------------------------------------------------------------------------
400
426
  // create generic alert
401
427
  // -------------------------------------------------------------------------
402
- alert_me: function (id) {
403
- // logger.info('eventhandler fired on id: ' + id );
404
- alert ("Hello world!");
428
+ alert_me: function () {
429
+ alert ('Hello world!');
405
430
  }, // END alert_me
431
+
406
432
  // -------------------------------------------------------------------------
407
433
  // messageHandler
408
434
  // Manage messages (paylods) send from other J1 modules
@@ -465,23 +491,18 @@ j1.adapter['ssm'] = (function (j1, window) {
465
491
  var $footer = $('#j1_footer');
466
492
  var $ssmContainer = $('#ssm-container');
467
493
  var $page = $(document);
468
-
469
494
  var offset = 0;
470
- var pageOffset = -120;
495
+ var pageOffset = $(document).width() >= 992 ? -120 : -116;
471
496
  var scrollPos = $(document).scrollTop();
472
- var pageHeight = $page.height()
473
- var pageHeightOuter = $page.outerHeight()
497
+ var pageHeight = $page.height();
498
+ var pageHeightOuter = $page.outerHeight();
474
499
 
475
- // var m = parseInt(pagehead.css('margin-bottom'), 10);
476
500
  var m = $main_content.offset().top;
477
501
  var s = $ssmContainer.length ? $ssmContainer.height() : 0;
478
502
  var f = $footer.length ? $footer.outerHeight() : 0;
479
503
  var n = $navbar.length ? $navbar.height() : 0;
480
504
  // var h = $pagehead.length ? $pagehead.outerHeight() : 0;
481
505
  var a = $adblock.length ? $adblock.outerHeight() : 0;
482
-
483
- // var o = n + h + a + offset;
484
- // var o = n + m + offset;
485
506
  var o = n + offset;
486
507
 
487
508
  // space above the (fixed) ssm container
@@ -1,5 +1,5 @@
1
1
  ---
2
- regenerate: false
2
+ regenerate: true
3
3
  ---
4
4
 
5
5
  {% capture cache %}
@@ -37,7 +37,6 @@ regenerate: false
37
37
 
38
38
  {% comment %} Set config files
39
39
  -------------------------------------------------------------------------------- {% endcomment %}
40
- {% assign site_config = site %}
41
40
  {% assign template_config = site.data.template_settings %}
42
41
  {% assign blocks = site.data.blocks %}
43
42
  {% assign modules = site.data.modules %}
@@ -61,6 +60,10 @@ regenerate: false
61
60
  {% assign theme_ext = "min.css" %}
62
61
  {% endif %}
63
62
 
63
+ {% assign production = false %}
64
+ {% if environment == 'prod' or environment == 'production' %}
65
+ {% assign production = true %}
66
+ {% endif %}
64
67
 
65
68
  /*
66
69
  # -----------------------------------------------------------------------------
@@ -86,6 +89,12 @@ regenerate: false
86
89
  # Adapter generated: {{site.time}}
87
90
  # -----------------------------------------------------------------------------
88
91
  */
92
+
93
+ // -----------------------------------------------------------------------------
94
+ // ESLint shimming
95
+ // -----------------------------------------------------------------------------
96
+ /* eslint indent: "off" */
97
+ // -----------------------------------------------------------------------------
89
98
  'use strict';
90
99
 
91
100
  j1.adapter['themer'] = (function (j1, window) {
@@ -199,8 +208,8 @@ j1.adapter['themer'] = (function (j1, window) {
199
208
  themeExtensionCss = user_state.theme_extension_css;
200
209
  }
201
210
  if (themeCss) {
202
- themeCssHtml = "<link rel='stylesheet' id='" + id + "' href='" + themeCss + "' type='text/css' />";
203
- themeExtensionCssHtml = "<link rel='stylesheet' id='" + id + "' href='" + themeExtensionCss + "' type='text/css' />";
211
+ themeCssHtml = '<link rel="stylesheet" id="' + id + '" href="' + themeCss + '" type="text/css" />';
212
+ themeExtensionCssHtml = '<link rel="stylesheet" id="' + id +'" href="' + themeExtensionCss + '" type="text/css" />';
204
213
  } else {
205
214
  themeName = default_theme_name;
206
215
  themeCssHtml = '<link rel="stylesheet" type="text/css" id="default" href="{{asset_path}}/{{theme_base}}/{{default_theme}}.{{theme_ext}}" />';
@@ -221,6 +230,7 @@ j1.adapter['themer'] = (function (j1, window) {
221
230
  logger.info('themes detected as: enabled');
222
231
  logger.info('theme is being initialized: ' + themeName);
223
232
 
233
+ /* eslint-disable */
224
234
  $.when (
225
235
  $('#ThemeList').bootstrapThemeSwitcher.defaults = {
226
236
  debug: {{ themer_options.debug | json }},
@@ -241,27 +251,22 @@ j1.adapter['themer'] = (function (j1, window) {
241
251
  includeBootswatch: {{ themer_options.includeBootswatch | json }},
242
252
  skipIncludeBootswatch: {{ themer_options.skipIncludeBootswatch | json }}
243
253
  })
244
- .then (function() {
245
- if (themeName === 'Uno' || themeName === 'Bootstrap') {
246
- theme = environment === 'production'
247
- ? themeName.toLowerCase() + '.min.css'
248
- : themeName.toLowerCase() + '.css';
249
- } else {
250
- theme = 'bootstrap.css'; // fallback
251
- }
252
- logger.info('theme loaded: ' + themeName);
253
- logger.info('theme file: ' + theme);
254
- _this.setState('finished');
255
- logger.info('state: ' + _this.getState());
256
- logger.info('module initialized successfully');
257
- var dependencies_colors_loaded = setInterval (function() {
258
- if (typeof j1.colors !== 'undefined') {
259
- // set general|global theme colors
260
- _this.setCss();
261
- clearInterval(dependencies_colors_loaded);
262
- }
263
- }, 25); // END 'dependencies_colors_loaded'
264
- });
254
+ /* eslint-enable */
255
+ .done (function(ThemeList) {
256
+ if (themeName === 'Uno' || themeName === 'Bootstrap') {
257
+ theme = environment === 'production'
258
+ ? themeName.toLowerCase() + '.min.css'
259
+ : themeName.toLowerCase() + '.css';
260
+ } else {
261
+ theme = 'bootstrap.css'; // fallback
262
+ }
263
+ logger.info('theme loaded: ' + themeName);
264
+ logger.info('theme file: ' + theme);
265
+ _this.setState('finished');
266
+ logger.info('state: ' + _this.getState());
267
+ logger.info('module initialized successfully');
268
+
269
+ });
265
270
  {% else %}
266
271
  _this.setState('finished');
267
272
  logger.info('state: ' + _this.getState());
@@ -278,33 +283,6 @@ j1.adapter['themer'] = (function (j1, window) {
278
283
  setCss: function () {
279
284
  var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
280
285
 
281
- // var admonitionblock_note_color = j1.getStyleValue('icon-note', 'color');
282
- // var admonitionblock_tip_color = j1.getStyleValue('icon-tip', 'color');
283
- // var admonitionblock_important_color = j1.getStyleValue('icon-important', 'color');
284
- // var admonitionblock_warning_color = j1.getStyleValue('icon-warning', 'color');
285
- // var admonitionblock_caution_color = j1.getStyleValue('icon-caution', 'color');
286
-
287
- // var admonitionblock_note_color = j1.getStyleValue('btn-info', 'background-color');
288
- // var admonitionblock_tip_color = j1.getStyleValue('btn-success', 'background-color');
289
- // var admonitionblock_important_color = j1.getStyleValue('btn-warning', 'background-color');
290
- // var admonitionblock_warning_color = j1.getStyleValue('icon-warning', 'color');
291
- // var admonitionblock_caution_color = j1.getStyleValue('btn-danger', 'background-color');
292
- //
293
- // var tabs_pills_link_color_active = j1.setColorData('md_blue'); // j1.getStyleValue('btn-info', 'background-color');
294
- // var tabs_pills_link_color_hover = j1.setColorData('md_gray_300'); // j1.getStyleValue('btn-secondary', 'background-color');
295
- //
296
- // $('head').append('<style>.g-bg-primary { background-color: ' +bg_primary+ ' !important; }</style>');
297
- // $('head').append('<style>.mdi-md-bg-primary { color: ' +bg_primary+ '; }</style>');
298
- //
299
- // $('head').append('<style>.nav-link:hover { background-color: ' +tabs_pills_link_color_hover+ ' !important; }</style>');
300
- // $('head').append('<style>.nav-link.active { background-color: ' +tabs_pills_link_color_active+ ' !important; }</style>');
301
- //
302
- // $('head').append('<style>.icon-note { color: ' +admonitionblock_note_color+ ' !important; }</style>');
303
- // $('head').append('<style>.icon-tip { color: ' +admonitionblock_tip_color+ ' !important; }</style>');
304
- // $('head').append('<style>.icon-important { color: ' +admonitionblock_important_color+ ' !important; }</style>');
305
- // $('head').append('<style>.icon-warning { color: ' +admonitionblock_warning_color+ ' !important; }</style>');
306
- // $('head').append('<style>.icon-caution { color: ' +admonitionblock_caution_color+ ' !important; }</style>');
307
-
308
286
  return true;
309
287
  }, // END setCss
310
288
 
@@ -354,5 +332,9 @@ j1.adapter['themer'] = (function (j1, window) {
354
332
  })(j1, window);
355
333
 
356
334
  {% endcapture %}
357
- {{ cache | strip_empty_lines }}
335
+ {% if production %}
336
+ {{ cache | minifyJS }}
337
+ {% else %}
338
+ {{ cache | strip_empty_lines }}
339
+ {% endif %}
358
340
  {% assign cache = nil %}