j1-template 2020.0.5 → 2020.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_post.html +2 -2
  3. data/_includes/themes/j1/modules/navigator/generator.html +8 -8
  4. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +8 -3
  5. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  6. data/{lib/starter_web/apps → apps}/public/cc/cc.yml +0 -0
  7. data/{lib/starter_web/apps → apps}/public/cc/index.adoc +0 -0
  8. data/assets/data/mmenu.html +1 -1
  9. data/assets/data/mmenu_sidebar.html +1 -1
  10. data/assets/data/mmenu_toc.html +1 -1
  11. data/assets/data/search.yml +32 -10
  12. data/assets/data/ssm.html +16 -12
  13. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/algolia.js +24 -16
  14. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/attic.js +35 -34
  15. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/carousel.js +34 -23
  16. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/cookie_consent.js +8 -0
  17. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/framer.js +11 -4
  18. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/gallery_customizer.js +16 -8
  19. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/j1.js +87 -139
  20. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/justified_gallery.js +50 -33
  21. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/lightbox.js +9 -1
  22. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/logger.js +12 -4
  23. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/mmenu.js +35 -14
  24. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/navigator.js +77 -75
  25. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/searcher.js +10 -2
  26. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/ssm.js +89 -69
  27. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/themer.js +11 -3
  28. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/toccer.js +54 -156
  29. data/assets/themes/j1/core/css/theme_extensions.css +599 -118
  30. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  31. data/assets/themes/j1/core/css/uno.css +609 -118
  32. data/assets/themes/j1/core/css/uno.min.css +1 -1
  33. data/assets/themes/j1/core/css/vendor.css +4 -1
  34. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  35. data/assets/themes/j1/core/js/template.js +40 -30
  36. data/assets/themes/j1/core/js/template.js.map +1 -1
  37. data/assets/themes/j1/core/js/template.min.js +1 -1
  38. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.css +0 -0
  39. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.min.css +0 -0
  40. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.css +0 -0
  41. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.min.css +0 -0
  42. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.css +0 -0
  43. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.min.css +0 -0
  44. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/ajax-loader.gif +0 -0
  45. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/grabbing.png +0 -0
  46. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl-logo.png +0 -0
  47. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl.video.play.png +0 -0
  48. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.js +0 -0
  49. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.min.js +0 -0
  50. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iconify/js/iconify.min.js +0 -0
  51. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +0 -0
  52. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.content.html +0 -0
  53. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +0 -0
  54. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +0 -0
  55. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +0 -0
  56. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +0 -0
  57. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/index.html +0 -0
  58. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/two.html +0 -0
  59. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +0 -0
  60. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +0 -0
  61. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +0 -0
  62. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/LICENSE +0 -0
  63. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/README.md +0 -0
  64. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.css +0 -0
  65. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
  66. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/theme/uno.css +0 -0
  67. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
  68. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.js +0 -0
  69. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
  70. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/.csslintrc +0 -0
  71. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/justifiedGallery.less +0 -0
  72. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.css +0 -0
  73. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
  74. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/theme/uno.css +0 -0
  75. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
  76. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
  77. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.css +0 -0
  78. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.min.css +0 -0
  79. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.css +0 -0
  80. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.min.css +0 -0
  81. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.js +0 -0
  82. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.min.js +0 -0
  83. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.css +0 -0
  84. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.min.css +0 -0
  85. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.css +0 -0
  86. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.min.css +0 -0
  87. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.css +0 -0
  88. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.min.css +0 -0
  89. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.eot +0 -0
  90. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.svg +0 -0
  91. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.ttf +0 -0
  92. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.woff +0 -0
  93. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/loading.gif +0 -0
  94. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/video-play.png +0 -0
  95. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/vimeo-play.png +0 -0
  96. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/youtube-play.png +0 -0
  97. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/animation-w.png +0 -0
  98. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/customize-w.png +0 -0
  99. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/dynamic-w.png +0 -0
  100. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/facebook-icon.svg +0 -0
  101. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/googleplus-icon.svg +0 -0
  102. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/html5-w.png +0 -0
  103. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/linked-in.png +0 -0
  104. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/module-w.png +0 -0
  105. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/play-button.png +0 -0
  106. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/responsive-w.png +0 -0
  107. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/thumb-w.png +0 -0
  108. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/touch-w.png +0 -0
  109. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter-icon.svg +0 -0
  110. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter.png +0 -0
  111. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/video1-w.png +0 -0
  112. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom-w.png +0 -0
  113. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom.png +0 -0
  114. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.css +0 -0
  115. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.min.css +0 -0
  116. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.js +0 -0
  117. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.min.js +0 -0
  118. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.js +0 -0
  119. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.min.js +0 -0
  120. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.js +0 -0
  121. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.min.js +0 -0
  122. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.js +0 -0
  123. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.min.js +0 -0
  124. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.js +0 -0
  125. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.min.js +0 -0
  126. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.js +0 -0
  127. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.min.js +0 -0
  128. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.js +0 -0
  129. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.min.js +0 -0
  130. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.js +0 -0
  131. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.min.js +0 -0
  132. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.js +0 -0
  133. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.min.js +0 -0
  134. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.js +0 -0
  135. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.min.js +0 -0
  136. data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.js +0 -0
  137. data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.min.js +0 -0
  138. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.dark/theme.css +0 -0
  139. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.light/theme.css +0 -0
  140. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.dark/theme.css +0 -0
  141. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.light/theme.css +0 -0
  142. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai/theme.css +0 -0
  143. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.dark/theme.css +0 -0
  144. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.light/theme.css +0 -0
  145. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized/theme.css +0 -0
  146. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16/theme.css +0 -0
  147. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/colorful/theme.css +0 -0
  148. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/github/theme.css +0 -0
  149. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.dark/theme.css +0 -0
  150. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.light/theme.css +0 -0
  151. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox/theme.css +0 -0
  152. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/igorpro/theme.css +0 -0
  153. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/molokai/theme.css +0 -0
  154. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai.sublime/theme.css +0 -0
  155. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai/theme.css +0 -0
  156. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/pastie/theme.css +0 -0
  157. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/thankful_eyes/theme.css +0 -0
  158. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/tulip/theme.css +0 -0
  159. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.css +0 -0
  160. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.min.css +0 -0
  161. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.css +0 -0
  162. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.min.css +0 -0
  163. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.css +0 -0
  164. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.min.css +0 -0
  165. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.css +0 -0
  166. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.min.css +0 -0
  167. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.css +0 -0
  168. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.min.css +0 -0
  169. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.js +0 -0
  170. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.min.js +0 -0
  171. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/froogaloop/js/froogaloop2.min.js +0 -0
  172. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js +0 -0
  173. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js.map +0 -0
  174. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js +0 -0
  175. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js.map +0 -0
  176. data/lib/j1/version.rb +1 -1
  177. data/lib/starter_web/Gemfile +2 -2
  178. data/lib/starter_web/_config.yml +1 -1
  179. data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -3
  180. data/lib/starter_web/_data/modules/defaults/ssm.yml +3 -3
  181. data/lib/starter_web/_data/modules/defaults/toccer.yml +9 -14
  182. data/lib/starter_web/_data/modules/jekyll_search.yml +3 -2
  183. data/lib/starter_web/_data/modules/navigator.yml +4 -1
  184. data/lib/starter_web/_data/modules/ssm.yml +10 -1
  185. data/lib/starter_web/_data/modules/toccer.yml +15 -63
  186. data/lib/starter_web/_data/resources.yml +5 -54
  187. data/lib/starter_web/_data/template_settings.yml +13 -13
  188. data/lib/starter_web/package.json +1 -1
  189. data/lib/starter_web/pages/public/about/about_site.adoc +3 -3
  190. data/lib/starter_web/pages/public/about/become_a_patron.adoc +9 -11
  191. data/lib/starter_web/pages/public/clear_button.adoc +121 -0
  192. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +9 -4
  193. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
  194. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +6 -7
  195. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +7 -3
  196. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +22 -24
  197. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +27 -30
  198. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +54 -48
  199. data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +5 -3
  200. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  201. data/lib/starter_web/utilsrv/package.json +1 -1
  202. metadata +159 -175
  203. data/assets/themes/j1/core/css/globals.scss +0 -28
  204. data/lib/starter_web/_data/modules/back2top.yml +0 -40
  205. data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
  206. data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
  207. data/lib/starter_web/_data/modules/navigator.yml.new +0 -232
  208. data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
  209. data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
  210. data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js.new +0 -432
  211. data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
  212. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +0 -384
  213. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +0 -384
  214. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +0 -95
  215. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +0 -95
  216. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +0 -11
  217. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +0 -11
  218. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +0 -118
  219. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +0 -118
@@ -65,6 +65,12 @@ regenerate: false
65
65
  # Adapter generated: {{site.time}}
66
66
  # -----------------------------------------------------------------------------
67
67
  */
68
+
69
+ // -----------------------------------------------------------------------------
70
+ // ESLint shimming
71
+ // -----------------------------------------------------------------------------
72
+ /* eslint indent: "off" */
73
+ // -----------------------------------------------------------------------------
68
74
  'use strict';
69
75
 
70
76
  {% comment %} Main
@@ -107,7 +113,9 @@ j1.adapter['searcher'] = (function (j1, window) {
107
113
  {% comment %} Load module config from yml data
108
114
  -------------------------------------------------------------------------- {% endcomment %}
109
115
  // Load module DEFAULTS|CONFIG
116
+ /* eslint-disable */
110
117
  moduleOptions = $.extend({}, {{jekyll_search_options | replace: '=>', ':' | replace: 'nil', '""'}});
118
+ /* eslint-enable */
111
119
 
112
120
  if (typeof settings !== 'undefined') {
113
121
  moduleOptions = j1.mergeData(moduleOptions, settings);
@@ -136,7 +144,7 @@ j1.adapter['searcher'] = (function (j1, window) {
136
144
  } else {
137
145
  _this.setState('finished');
138
146
  logger.info('state: ' + _this.getState());
139
- logger.info("module disabled");
147
+ logger.info('module disabled');
140
148
  }
141
149
 
142
150
  return true;
@@ -190,4 +198,4 @@ j1.adapter['searcher'] = (function (j1, window) {
190
198
 
191
199
  {% endcapture %}
192
200
  {{ cache | strip_empty_lines }}
193
- {% assign cache = nil %}
201
+ {% assign cache = nil %}
@@ -33,11 +33,14 @@ regenerate: true
33
33
 
34
34
  {% comment %} Set config data
35
35
  -------------------------------------------------------------------------------- {% endcomment %}
36
+ {% assign toccer_defaults = modules.defaults.toccer.defaults %}
37
+ {% assign toccer_settings = modules.toccer.settings %}
36
38
  {% assign ssm_settings = modules.ssm.settings %}
37
39
  {% assign ssm_defaults = modules.defaults.ssm.defaults %}
38
40
 
39
41
  {% comment %} Set config options
40
42
  -------------------------------------------------------------------------------- {% endcomment %}
43
+ {% assign toccer_options = toccer_defaults | merge: toccer_settings %}
41
44
  {% assign ssm_options = ssm_defaults | merge: ssm_settings %}
42
45
 
43
46
  /*
@@ -56,10 +59,15 @@ regenerate: true
56
59
  # Adapter generated: {{site.time}}
57
60
  # -----------------------------------------------------------------------------
58
61
  */
62
+
63
+ // -----------------------------------------------------------------------------
64
+ // ESLint shimming
65
+ // -----------------------------------------------------------------------------
66
+ /* eslint indent: "off" */
67
+ // -----------------------------------------------------------------------------
59
68
  'use strict';
60
69
 
61
70
  j1.adapter['ssm'] = (function (j1, window) {
62
-
63
71
  // ---------------------------------------------------------------------------
64
72
  // globals
65
73
  // ---------------------------------------------------------------------------
@@ -110,20 +118,22 @@ j1.adapter['ssm'] = (function (j1, window) {
110
118
  // -----------------------------------------------------------------------
111
119
  _this = j1.adapter.ssm;
112
120
  logger = log4javascript.getLogger('j1.adapter.ssm');
113
- sect12Nodes = $("[class$='sect1'],[class$='sect2'");
114
- sect1Nodes = $("[class$='sect1']");
121
+ sect12Nodes = $('[class$="sect1"],[class$="sect2"');
122
+ sect1Nodes = $('[class$="sect1"]');
115
123
 
116
124
  // -----------------------------------------------------------------------
117
125
  // options loader
118
126
  // -----------------------------------------------------------------------
127
+ /* eslint-disable */
119
128
  var ssmMenuOptions = $.extend({}, {{nav_ssm_options | replace: '=>', ':' }});
120
129
  var ssmOptions = $.extend({}, {{ssm_options | replace: 'nil', 'null' | replace: '=>', ':' }});
130
+ /* eslint-enable */
121
131
  var xhr_data_path;
122
132
  var menu_id;
123
133
 
124
134
  // Load (individual) frontmatter options (currently NOT used)
125
135
  //
126
- if (options != null) { var frontmatterOptions = $.extend({}, options) }
136
+ if (options != null) { var frontmatterOptions = $.extend({}, options); }
127
137
 
128
138
  if (typeof frontmatterOptions !== 'undefined') {
129
139
  moduleOptions = j1.mergeData(ssmOptions, frontmatterOptions);
@@ -134,7 +144,7 @@ j1.adapter['ssm'] = (function (j1, window) {
134
144
  j1.adapter.ssm['moduleOptions'] = moduleOptions;
135
145
 
136
146
  _this.setState('started');
137
- logger.info('state: ' + _this.getState());
147
+ logger.info('set module state to: ' + _this.getState());
138
148
  logger.info('module is being initialized');
139
149
 
140
150
  // jadams, 2020-06-24: Set max_count to 100 what cause to wait 2.5s
@@ -155,8 +165,9 @@ j1.adapter['ssm'] = (function (j1, window) {
155
165
  if (interval_count > max_count) {
156
166
  logger.warn('dependency check failed for module: navigator');
157
167
  logger.warn('dependencies of module navigator met after: ' + interval_count * 25 + ' ms');
168
+ j1.core.ssm.init (moduleOptions);
169
+ _this.ssmLoader(moduleOptions);
158
170
  clearInterval(dependencies_met_navigator);
159
- //j1.adapter.ssm.ssmLoader(ssmMenuOptions);
160
171
  }
161
172
  }, 25);
162
173
 
@@ -169,8 +180,11 @@ j1.adapter['ssm'] = (function (j1, window) {
169
180
  var menu_id;
170
181
  var xhr_data_path;
171
182
 
183
+ // cast text-based booleans
184
+ var isToc = (ssmOptions.toc === 'true');
185
+
172
186
  _this.setState('loading');
173
- logger.info('status: ' + _this.getState());
187
+ logger.info('set module state to: ' + _this.getState());
174
188
  logger.info('load HTML data for ssm');
175
189
 
176
190
  {% assign id_list = "" %}
@@ -180,31 +194,42 @@ j1.adapter['ssm'] = (function (j1, window) {
180
194
  {% assign xhr_data_path = ssm_options.xhr_data_path %}
181
195
  j1.xhrData (
182
196
  'j1.adapter.ssm', {
183
- xhr_container_id: "{{menu_id}}",
184
- xhr_data_path: "{{xhr_data_path}}" },
197
+ xhr_container_id: '{{menu_id}}',
198
+ xhr_data_path: '{{xhr_data_path}}' },
185
199
  'data_loaded')
186
- ).done (function (ssm) {
200
+ ).done (function (ssm_html_loaded) {
187
201
  // ---------------------------------------------------------------------
188
202
  // Initialize MMenu Navs and Drawers
189
203
  // ---------------------------------------------------------------------
190
204
  var dependencies_met_mmenu_initialized = setInterval (function () {
191
- if (ssm) {
192
- if (j1.getState() === 'finished') {
193
- logger.info('load HTML data (AJAX): finished');
194
- _this.setState('processing');
195
- logger.info('status: ' + _this.getState());
196
- logger.info('initialize ssm menu');
197
- if ( ssmOptions.mode === 'icon') {
198
- logger.info('icon mode detected');
205
+ if (ssm_html_loaded && $('#{{ssm_options.menu_id}}').length) {
206
+ _this.setState('loaded');
207
+ logger.info('set module state to: ' + _this.getState());
208
+ logger.info('HTML data for ssm: ' + _this.getState());
209
+ if(isToc) {
210
+ logger.info('found toc in page: enabled');
211
+ if ( j1.adapter.toccer.getState() == 'finished' ) {
212
+ logger.info('dependency met for module : toccer');
213
+ _this.setState('processing');
214
+ logger.info('set module state to: ' + _this.getState());
215
+ logger.info('initialize ssm menu');
216
+ (ssmOptions.mode === 'icon')
217
+ ? logger.info('ssm mode detected: icon')
218
+ : logger.info('ssm mode detected: menu');
219
+ _this.scrollSpy(ssmOptions);
220
+ _this.buttonInitializer(ssmOptions);
221
+ clearInterval(dependencies_met_mmenu_initialized);
199
222
  }
223
+ } else {
224
+ logger.info('found toc in page: disabled');
225
+ logger.info('disable toc menu button');
226
+ $('#ssm_toc').closest('.ssm-btn').hide();
200
227
  _this.scrollSpy(ssmOptions);
201
228
  _this.buttonInitializer(ssmOptions);
202
229
  clearInterval(dependencies_met_mmenu_initialized);
203
230
  }
204
- } else {
205
- logger.error('initialize ssm failed, HTML data NOT loaded');
206
231
  }
207
- }); // END dependencies_met_mmenu_loaded
232
+ }, 25); // END dependencies_met_mmenu_loaded
208
233
  }); // END done
209
234
  }, // END dataLoader
210
235
 
@@ -229,10 +254,9 @@ j1.adapter['ssm'] = (function (j1, window) {
229
254
 
230
255
  // Create an eventhandler instance if id exists: {{button_id}}
231
256
  if ($('#{{button_id}}').length) {
232
- eventHandler = "{{item.event_handler}}"
233
-
257
+ eventHandler = '{{item.event_handler}}';
234
258
  // check if eventhandler configured is a SINGLE word
235
- if (eventHandler.split(" ").length == 1) {
259
+ if (eventHandler.split(' ').length == 1) {
236
260
  logger.info('register pre-configured eventhandler {{item.event_handler}} on id: {{button_id}}');
237
261
  $('#{{button_id}}').each(function(e) {
238
262
  var $this = $(this);
@@ -243,7 +267,8 @@ j1.adapter['ssm'] = (function (j1, window) {
243
267
  } else {
244
268
  logger.info('register custom eventhandler on id: {{button_id}}');
245
269
  }
246
-
270
+ } else {
271
+ alert ('Creating Eventhandler failed on: #{{button_id}}');
247
272
  } // END items (buttons)
248
273
  {% endif %} // menu_type 'top_level_item'
249
274
  {% endif %} // ENDIF button_id enabled
@@ -256,10 +281,15 @@ j1.adapter['ssm'] = (function (j1, window) {
256
281
  // -------------------------------------------------------------------------
257
282
  // open mobile menu
258
283
  // -------------------------------------------------------------------------
259
- open_mmenu: function (id) {
260
- logger.info('eventhandler fired on id: ' + id );
261
- }, // END open_mmenu
284
+ open_ssm_toc: function () {
285
+ }, // END open_ssm_toc
262
286
 
287
+ // -------------------------------------------------------------------------
288
+ // reload page
289
+ // -------------------------------------------------------------------------
290
+ reload_page: function () {
291
+ location.reload();
292
+ }, // END open_ssm_toc
263
293
  // -------------------------------------------------------------------------
264
294
  // scroll to previous section
265
295
  // -------------------------------------------------------------------------
@@ -267,33 +297,34 @@ j1.adapter['ssm'] = (function (j1, window) {
267
297
  var previous_header_id;
268
298
  var currentNode;
269
299
  var prev_node;
300
+ var anchor_id;
270
301
 
271
302
  var index = 0;
272
303
  var maxNode = $(nodes).length - 1;
273
- var $toc = $("#sidebar");
274
- var current_header_id = $toc.find(".is-active-link").attr('href');
275
-
276
- // logger.info('eventhandler fired on id: ' + id );
304
+ var $toc = $('#sidebar');
305
+ var current_header_id = $toc.find('.is-active-link').attr('href');
277
306
 
278
307
  nodes.each(function() {
279
308
  currentNode = $(this).find(current_header_id);
280
309
  if (currentNode.length) {
281
310
  if (index > maxNode) {
282
- return false
311
+ return false;
283
312
  } else {
284
- prev_node = (index > 0) ? nodes[index-1] : nodes[index];
285
- previous_header_id = $(prev_node).find(":header").first()[0].id;
313
+ prev_node = (index > 0) ? nodes[index-1] : nodes[index];
314
+ previous_header_id = $(prev_node).find(':header').first()[0].id;
315
+ anchor_id = '#' + previous_header_id;
316
+
286
317
  $('a[href*="' + current_header_id + '"]').removeClass('is-active-link');
287
318
  $('a[href*="' + previous_header_id + '"]').addClass('is-active-link');
288
- var dest = $('body').scrollTop() + $('#' + previous_header_id).offset().top - 100;
289
- $('html, body').animate({
290
- scrollTop: dest
291
- }, 500);
292
- return false;
319
+
320
+ j1.core.scrollSmooth.scroll( anchor_id, {
321
+ duration: {{toccer_options.scrollSmoothDuration}},
322
+ offset: {{toccer_options.scrollSmoothOffset}},
323
+ callback: null
324
+ });
293
325
  }
294
326
  }
295
327
  (index < maxNode) ? index++ : index;
296
- // (index = 0) ? index : index++;
297
328
  });
298
329
  }, // END scroll_previous_section
299
330
 
@@ -304,33 +335,31 @@ j1.adapter['ssm'] = (function (j1, window) {
304
335
  var next_header_id;
305
336
  var currentNode;
306
337
  var nextNode;
338
+ var anchor_id;
307
339
 
308
340
  var index = 0;
309
341
  var maxNode = $(nodes).length -1;
310
- var $toc = $("#sidebar");
311
- var current_header_id = $toc.find(".is-active-link").attr('href');
312
-
313
- // logger.info('eventhandler fired on id: ' + id );
342
+ var $toc = $('#sidebar');
343
+ var current_header_id = $toc.find('.is-active-link').attr('href');
314
344
 
315
345
  nodes.each(function() {
316
- // currentNode = $(this).find(current_header_id);
317
346
  currentNode = $(this).find(current_header_id);
318
347
  if (currentNode.length) {
319
348
  if (index == maxNode) {
320
- return false
349
+ return false;
321
350
  } else {
322
351
  nextNode = nodes[index+1];
323
- next_header_id = $(nextNode).closest().find(":header").first();
324
- next_header_id = $(nextNode).find(":header").first()[0].id;
352
+ next_header_id = $(nextNode).find(':header').first()[0].id;
353
+ anchor_id = '#' + next_header_id;
325
354
 
326
355
  $('a[href*="' + current_header_id + '"]').removeClass('is-active-link');
327
356
  $('a[href*="' + next_header_id + '"]').addClass('is-active-link');
328
357
 
329
- var dest = $('body').scrollTop() + $('#' + next_header_id).offset().top - 100;
330
- $('html, body').animate({
331
- scrollTop: dest
332
- }, 500);
333
- return false;
358
+ j1.core.scrollSmooth.scroll( anchor_id, {
359
+ duration: {{toccer_options.scrollSmoothDuration}},
360
+ offset: {{toccer_options.scrollSmoothOffset}},
361
+ callback: null
362
+ });
334
363
  }
335
364
  }
336
365
  (index < maxNode) ? index++ : index;
@@ -343,8 +372,6 @@ j1.adapter['ssm'] = (function (j1, window) {
343
372
  scroll_to_top: function () {
344
373
  var dest = 0;
345
374
 
346
- // logger.info('eventhandler fired on id: ' + id );
347
-
348
375
  $('html, body').animate({
349
376
  scrollTop: dest
350
377
  }, 500);
@@ -358,9 +385,7 @@ j1.adapter['ssm'] = (function (j1, window) {
358
385
  var $footer = $('#j1_footer');
359
386
  var f = $footer.length ? $footer.outerHeight() : 0;
360
387
  var pageHeight = $page.height() - f - 400;
361
- var pageHeightOuter = $page.outerHeight()
362
-
363
- // logger.info('eventhandler fired on id: ' + id );
388
+ var pageHeightOuter = $page.outerHeight();
364
389
 
365
390
  $('html, body').animate({
366
391
  scrollTop: pageHeight
@@ -371,16 +396,15 @@ j1.adapter['ssm'] = (function (j1, window) {
371
396
  // scroll to comments (Disqus)
372
397
  // -------------------------------------------------------------------------
373
398
  scroll_to_comments: function () {
374
- // logger.info('eventhandler fired on id: ' + id );
375
399
  }, // END scroll_comments
376
400
 
377
401
  // -------------------------------------------------------------------------
378
402
  // create generic alert
379
403
  // -------------------------------------------------------------------------
380
- alert_me: function (id) {
381
- // logger.info('eventhandler fired on id: ' + id );
382
- alert ("Hello world!");
404
+ alert_me: function () {
405
+ alert ('Hello world!');
383
406
  }, // END alert_me
407
+
384
408
  // -------------------------------------------------------------------------
385
409
  // messageHandler
386
410
  // Manage messages (paylods) send from other J1 modules
@@ -447,19 +471,15 @@ j1.adapter['ssm'] = (function (j1, window) {
447
471
  var offset = 0;
448
472
  var pageOffset = -120;
449
473
  var scrollPos = $(document).scrollTop();
450
- var pageHeight = $page.height()
451
- var pageHeightOuter = $page.outerHeight()
474
+ var pageHeight = $page.height();
475
+ var pageHeightOuter = $page.outerHeight();
452
476
 
453
- // var m = parseInt(pagehead.css('margin-bottom'), 10);
454
477
  var m = $main_content.offset().top;
455
478
  var s = $ssmContainer.length ? $ssmContainer.height() : 0;
456
479
  var f = $footer.length ? $footer.outerHeight() : 0;
457
480
  var n = $navbar.length ? $navbar.height() : 0;
458
481
  // var h = $pagehead.length ? $pagehead.outerHeight() : 0;
459
482
  var a = $adblock.length ? $adblock.outerHeight() : 0;
460
-
461
- // var o = n + h + a + offset;
462
- // var o = n + m + offset;
463
483
  var o = n + offset;
464
484
 
465
485
  // space above the (fixed) ssm container
@@ -86,6 +86,12 @@ regenerate: false
86
86
  # Adapter generated: {{site.time}}
87
87
  # -----------------------------------------------------------------------------
88
88
  */
89
+
90
+ // -----------------------------------------------------------------------------
91
+ // ESLint shimming
92
+ // -----------------------------------------------------------------------------
93
+ /* eslint indent: "off" */
94
+ // -----------------------------------------------------------------------------
89
95
  'use strict';
90
96
 
91
97
  j1.adapter['themer'] = (function (j1, window) {
@@ -116,7 +122,7 @@ j1.adapter['themer'] = (function (j1, window) {
116
122
  var logger;
117
123
  var logText;
118
124
 
119
- var default_theme_css = environment === 'production' ? '/assets/themes/j1/core/css/uno.min.css' : '/assets/themes/j1/core/css/uno.css';
125
+ var default_theme_css = (environment == 'production') ? '/assets/themes/j1/core/css/uno.min.css' : '/assets/themes/j1/core/css/uno.css';
120
126
  var default_theme_extention_css = '{{themer_options.includeBootswatch}}';
121
127
  var default_theme_name = 'Uno';
122
128
  var default_theme_author = 'J1 Team';
@@ -199,8 +205,8 @@ j1.adapter['themer'] = (function (j1, window) {
199
205
  themeExtensionCss = user_state.theme_extension_css;
200
206
  }
201
207
  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' />";
208
+ themeCssHtml = '<link rel="stylesheet" id="' + id + '" href="' + themeCss + '" type="text/css" />';
209
+ themeExtensionCssHtml = '<link rel="stylesheet" id="' + id +'" href="' + themeExtensionCss + '" type="text/css" />';
204
210
  } else {
205
211
  themeName = default_theme_name;
206
212
  themeCssHtml = '<link rel="stylesheet" type="text/css" id="default" href="{{asset_path}}/{{theme_base}}/{{default_theme}}.{{theme_ext}}" />';
@@ -221,6 +227,7 @@ j1.adapter['themer'] = (function (j1, window) {
221
227
  logger.info('themes detected as: enabled');
222
228
  logger.info('theme is being initialized: ' + themeName);
223
229
 
230
+ /* eslint-disable */
224
231
  $.when (
225
232
  $('#ThemeList').bootstrapThemeSwitcher.defaults = {
226
233
  debug: {{ themer_options.debug | json }},
@@ -241,6 +248,7 @@ j1.adapter['themer'] = (function (j1, window) {
241
248
  includeBootswatch: {{ themer_options.includeBootswatch | json }},
242
249
  skipIncludeBootswatch: {{ themer_options.skipIncludeBootswatch | json }}
243
250
  })
251
+ /* eslint-enable */
244
252
  .then (function() {
245
253
  if (themeName === 'Uno' || themeName === 'Bootstrap') {
246
254
  theme = environment === 'production'
@@ -1,5 +1,5 @@
1
1
  ---
2
- regenerate: false
2
+ regenerate: true
3
3
  ---
4
4
 
5
5
  {% capture j1_cache %}
@@ -54,7 +54,6 @@ regenerate: false
54
54
  -------------------------------------------------------------------------------- {% endcomment %}
55
55
  {% assign toccer_options = toccer_defaults | merge: toccer_settings %}
56
56
 
57
-
58
57
  /*
59
58
  # -----------------------------------------------------------------------------
60
59
  # ~/assets/themes/j1/adapter/js/toccer.js
@@ -74,6 +73,12 @@ regenerate: false
74
73
  # Adapter generated: {{site.time}}
75
74
  # -----------------------------------------------------------------------------
76
75
  */
76
+
77
+ // -----------------------------------------------------------------------------
78
+ // ESLint shimming
79
+ // -----------------------------------------------------------------------------
80
+ /* eslint indent: "off" */
81
+ // -----------------------------------------------------------------------------
77
82
  'use strict';
78
83
 
79
84
  {% comment %} Main
@@ -127,10 +132,8 @@ j1.adapter['toccer'] = (function () {
127
132
  settings.collapseDepth = {{toccer_options.collapseDepth}};
128
133
  }
129
134
 
130
- if (settings.headingsOffset === undefined) {
131
- settings.scrollOffset = {{toccer_options.smoothScrollOffset}};
132
- } else {
133
- settings.scrollOffset = settings.headingsOffset
135
+ if (settings.scrollSmoothOffset === undefined) {
136
+ settings.scrollSmoothOffset = {{toccer_options.scrollSmoothOffset}};
134
137
  }
135
138
 
136
139
  if (settings.enabled === undefined) {
@@ -139,39 +142,16 @@ j1.adapter['toccer'] = (function () {
139
142
 
140
143
  if (isToc) {
141
144
  _this.initToccerCore(settings);
142
- _this.setCss();
143
-
144
- /* jadams, 2011-03-11: For now, no need to adjust the top sticky position */
145
- /* leave the code in for future use if needed */
146
- /* _this.setTop(); */
147
-
148
- // if comments enabled
149
- if (isToc && isComments) {
150
- logText = 'connector for disqus successfully initialized';
151
- logger.info(logText);
152
-
153
- // NOTE: BS or Tocbot Affix is not used anymore.
154
- // Replaced by CSS style "sticky"
155
- // j1.adapter.toccer.initAffix();
156
- // state = 'finished';
157
- // logger.info('state: ' + state); // Set|Log status
158
- // logger.info('module initialized successfully');
159
-
160
- } else {
161
- // if toc enabled only
162
- if (isToc) {
163
- // state = 'finished';
164
- // logger.info('state: ' + state); // Set|Log status
165
- // logger.info('module initialized successfully');
145
+ // set state finished if tocbot has created the toc
146
+ var dependencies_met_toccer_initialized = setInterval (function () {
147
+ if ($('ol.toc-list ').length) {
148
+ _this.setState('finished');
149
+ logger.info('state: ' + _this.getState());
150
+ logger.info('module initialized successfully');
151
+ clearInterval(dependencies_met_toccer_initialized);
166
152
  }
167
- } // END if isComments (Disqus enabled)
168
- } // END if isToc
169
-
170
- _this.setState('finished');
171
- logger.info('state: ' + _this.getState());
172
- logger.info('module initialized successfully');
173
-
174
- return true;
153
+ }, 25);
154
+ }
175
155
  }, // END init
176
156
 
177
157
  // -------------------------------------------------------------------------
@@ -188,126 +168,44 @@ j1.adapter['toccer'] = (function () {
188
168
  _this.setState('running');
189
169
  logger.info('state: ' + _this.getState());
190
170
 
191
- // jadams, 2020-06-23: TODO, tocbot should be fired if page|mmenu
192
- // is ready
193
- //
194
- setTimeout (function () {
195
- var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
196
-
197
- tocbot.init({
198
- log: {{ toccer_options.log | json }},
199
- activeLinkColor: {{ toccer_options.activeLinkColor | json }},
200
- tocSelector: {{ toccer_options.tocSelector | json }},
201
- headingSelector: {{ toccer_options.headingSelector | json }},
202
- ignoreSelector: {{ toccer_options.ignoreSelector | json }},
203
- contentSelector: {{ toccer_options.contentSelector | json }},
204
- collapseDepth: settings.collapseDepth,
205
- throttleTimeout: {{ toccer_options.throttleTimeout | json }},
206
- includeHtml: false,
207
- linkClass: 'toc-link',
208
- extraLinkClasses: '',
209
- activeLinkClass: 'is-active-link',
210
- listClass: 'toc-list',
211
- extraListClasses: '',
212
- isCollapsedClass: 'is-collapsed',
213
- collapsibleClass: 'is-collapsible',
214
- listItemClass: 'toc-list-item',
215
- positionFixedSelector: '',
216
- positionFixedClass: 'is-position-fixed',
217
- fixedSidebarOffset: 'auto',
218
- smoothScroll: {{ toccer_options.smoothScrollEnabled | json }},
219
- smoothScrollOffset: {{ toccer_options.smoothScrollOffset | json }},
220
- smoothScrollDuration: {{ toccer_options.smoothScrollDuration | json }},
221
- headingsOffset: {{ toccer_options.headingsOffset | json }},
222
- throttleTimeout: {{ toccer_options.throttleTimeout | json }}
223
- });
224
-
225
- if (tocbot.options.log == true) {
226
- // Writes all of the current option settings to JS console
227
- console.log(tocbot.options);
228
- }
229
- }, {{toccer_options.delay}});
230
-
231
- return true;
171
+ // tocbot get fired if HTML portion is loaded (AJAX load finished)
172
+ var dependencies_met_ajax_load_finished = setInterval (function () {
173
+ if ($('#toc_mmenu').length) {
174
+ /* eslint-disable */
175
+ tocbot.init({
176
+ log: {{ toccer_options.log | json }},
177
+ activeLinkColor: {{ toccer_options.activeLinkColor | json }},
178
+ tocSelector: {{ toccer_options.tocSelector | json }},
179
+ headingSelector: {{ toccer_options.headingSelector | json }},
180
+ ignoreSelector: {{ toccer_options.ignoreSelector | json }},
181
+ contentSelector: {{ toccer_options.contentSelector | json }},
182
+ collapseDepth: settings.collapseDepth,
183
+ throttleTimeout: {{ toccer_options.throttleTimeout | json }},
184
+ hasInnerContainers: false,
185
+ includeHtml: false,
186
+ linkClass: 'toc-link',
187
+ extraLinkClasses: '',
188
+ activeLinkClass: 'is-active-link',
189
+ listClass: 'toc-list',
190
+ extraListClasses: '',
191
+ isCollapsedClass: 'is-collapsed',
192
+ collapsibleClass: 'is-collapsible',
193
+ listItemClass: 'toc-list-item',
194
+ positionFixedSelector: '',
195
+ positionFixedClass: 'is-position-fixed',
196
+ fixedSidebarOffset: 'auto',
197
+ scrollSmooth: {{ toccer_options.scrollSmooth | json }},
198
+ scrollSmoothDuration: {{ toccer_options.scrollSmoothDuration | json }},
199
+ scrollSmoothOffset: {{ toccer_options.scrollSmoothOffset | json }},
200
+ headingsOffset: 1,
201
+ throttleTimeout: {{ toccer_options.throttleTimeout | json }}
202
+ });
203
+ /* eslint-enable */
204
+ clearInterval(dependencies_met_ajax_load_finished);
205
+ } // END AJAX load finished
206
+ }, 25); // END dependencies_met_ajax_load_finished
232
207
  }, // END initToccerCore
233
208
 
234
- // -------------------------------------------------------------------------
235
- // Calculate|Set Affix offset Top|Bottom of the Toccer menu
236
- // depending on the size of the page header (attic)
237
- // -------------------------------------------------------------------------
238
- initAffix: function () {
239
- var nav_bar = $('nav.navbar');
240
- var side_bar = $('#j1-sidebar');
241
- var header = $('.attic');
242
- // var disqus_id = $('#disqus');
243
- var disqus_id = $('.bmd-layout-content');
244
- var disqus_thread = $('#disqus_thread');
245
- var adblock = $('#adblock');
246
- var footer = '#' + '{{footer_id}}';
247
- var footer_id = $(footer);
248
- var footer_offset = 100;
249
-
250
- $(side_bar).affix({
251
- offset: {
252
- top: function() {
253
- var c = $(side_bar).offset().top;
254
- var a = adblock.length ? adblock.outerHeight() : 0;
255
- var e = $(nav_bar).height();
256
- var h = $(header).height();
257
- var z = c - e;
258
- return _this.top = z - a;
259
- },
260
- bottom: function () {
261
- /* space below the affixed element */
262
- if (disqus_id.length) {
263
- return (_this.bottom = $(disqus_id).outerHeight(true) + $(footer_id).outerHeight(true) + footer_offset)
264
- } else {
265
- return (_this.bottom = $(footer_id).outerHeight(true) + footer_offset);
266
- }
267
- }
268
- }
269
- });
270
-
271
- return true;
272
- }, // END initAffix
273
-
274
- // -------------------------------------------------------------------------
275
- // Calculate|Set Top position of the Toccer menu
276
- // depending on the size of the page header (attic)
277
- // -------------------------------------------------------------------------
278
- setTop: function (options) {
279
- $(window).scroll(function(event){
280
- var navbar = $('nav.navbar.navigator');
281
- var adblock = $('#adblock');
282
- var pagehead = $('.attic');
283
- var offset = 0;
284
- var m = parseInt(pagehead.css('margin-bottom'), 10);
285
- var n = navbar.outerHeight();
286
- var a = adblock.length ? adblock.outerHeight() : 0;
287
- // var o = n + m + a + offset;
288
- var o = n + m + offset;
289
-
290
- if(navbar.hasClass('navbar-fixed')){
291
- $('#j1-sidebar.affix').css('top', o);
292
- } else {
293
- $('#j1-sidebar.affix').css('top', m);
294
- }
295
- });
296
-
297
- return true;
298
- }, // END setTop
299
-
300
- // -------------------------------------------------------------------------
301
- // Set dynamic styles
302
- // -------------------------------------------------------------------------
303
- setCss: function () {
304
-
305
- var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
306
- $('head').append('<style>.is-active-link::before { background-color: ' +bg_primary+ ' !important; }</style>');
307
-
308
- return true;
309
- }, // END setCss
310
-
311
209
  // -------------------------------------------------------------------------
312
210
  // messageHandler: MessageHandler for J1 NAV module
313
211
  // Manage messages (paylods) send from other J1 modules