j1-template 2020.0.6 → 2020.0.11

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