j1-template 2020.0.8 → 2020.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/blocks/ads/ad.html +64 -0
  3. data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +1 -1
  4. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +3 -2
  5. data/_includes/themes/j1/layouts/content_generator_collection.html +3 -2
  6. data/_includes/themes/j1/layouts/content_generator_page.html +3 -2
  7. data/_includes/themes/j1/layouts/content_generator_post.html +12 -12
  8. data/_includes/themes/j1/layouts/layout_metadata_generator.html +134 -4
  9. data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +6 -9
  10. data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +9 -6
  11. data/_includes/themes/j1/modules/connectors/ads +3 -6
  12. data/_includes/themes/j1/modules/navigator/generator.html +6 -7
  13. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +10 -5
  14. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  15. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +7 -7
  16. data/_layouts/default.html +18 -13
  17. data/assets/data/authclient.html +18 -8
  18. data/assets/data/banner.html +23 -23
  19. data/assets/data/carousel.json +30 -21
  20. data/assets/data/cookie_consent.html +79 -51
  21. data/assets/data/footer.html +14 -5
  22. data/assets/data/galleries.json +90 -81
  23. data/assets/data/gallery_customizer.html +19 -10
  24. data/assets/data/mdi_icons.json +55 -1
  25. data/assets/data/menu.html +14 -7
  26. data/assets/data/mmenu.html +47 -94
  27. data/assets/data/mmenu_sidebar.html +40 -44
  28. data/assets/data/mmenu_toc.html +19 -3
  29. data/assets/data/panel.html +30 -23
  30. data/assets/data/quicklinks.html +13 -3
  31. data/assets/data/{search.yml → search.json} +44 -14
  32. data/assets/data/ssm.html +20 -9
  33. data/assets/data/themes.json +17 -6
  34. data/assets/data/twa_v1.json +7034 -6978
  35. data/assets/themes/j1/adapter/js/algolia.js +34 -17
  36. data/assets/themes/j1/adapter/js/attic.js +66 -46
  37. data/assets/themes/j1/adapter/js/carousel.js +43 -22
  38. data/assets/themes/j1/adapter/js/clipboard.js +230 -0
  39. data/assets/themes/j1/adapter/js/cookie_consent.js +21 -4
  40. data/assets/themes/j1/adapter/js/framer.js +18 -3
  41. data/assets/themes/j1/adapter/js/gallery_customizer.js +27 -10
  42. data/assets/themes/j1/adapter/js/j1.js +342 -757
  43. data/assets/themes/j1/adapter/js/{justified_gallery.js → jf_gallery.js} +64 -38
  44. data/assets/themes/j1/adapter/js/lightbox.js +20 -3
  45. data/assets/themes/j1/adapter/js/logger.js +23 -6
  46. data/assets/themes/j1/adapter/js/mdb.js +167 -0
  47. data/assets/themes/j1/adapter/js/mmenu.js +33 -30
  48. data/assets/themes/j1/adapter/js/navigator.js +126 -140
  49. data/assets/themes/j1/adapter/js/searcher.js +22 -4
  50. data/assets/themes/j1/adapter/js/ssm.js +84 -63
  51. data/assets/themes/j1/adapter/js/themer.js +35 -53
  52. data/assets/themes/j1/adapter/js/toccer.js +29 -14
  53. data/assets/themes/j1/core/css/theme_extensions.css +120 -1230
  54. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  55. data/assets/themes/j1/core/css/uno.css +256 -1288
  56. data/assets/themes/j1/core/css/uno.min.css +1 -1
  57. data/assets/themes/j1/core/css/vendor.css +7 -57
  58. data/assets/themes/j1/core/css/vendor.min.css +2 -2
  59. data/assets/themes/j1/core/js/template.js +16 -86
  60. data/assets/themes/j1/core/js/template.js.map +1 -1
  61. data/assets/themes/j1/core/js/template.min.js +1 -1
  62. data/assets/themes/j1/extensions/bsDatepicker/css/datepicker.css +203 -0
  63. data/assets/themes/j1/extensions/bsDatepicker/css/theme/uno.css +235 -0
  64. data/assets/themes/j1/extensions/bsDatepicker/js/datepicker.js +509 -0
  65. data/assets/themes/j1/extensions/bsDatepicker/less/datepicker.less +122 -0
  66. data/assets/themes/j1/extensions/bsThemeSwitcher/js/switcher.js +425 -0
  67. data/assets/themes/j1/extensions/bsThemeSwitcher/js/switcher.min.js +20 -0
  68. data/assets/themes/j1/extensions/clipboard/LICENSE +20 -0
  69. data/assets/themes/j1/extensions/clipboard/css/theme/uno.css +52 -0
  70. data/assets/themes/j1/extensions/clipboard/css/theme/uno.min.css +52 -0
  71. data/assets/themes/j1/extensions/clipboard/js/clipboard.js +975 -0
  72. data/assets/themes/j1/extensions/clipboard/js/clipboard.min.js +7 -0
  73. data/assets/themes/j1/extensions/{iconify → iconifyAPI}/js/iconify.min.js +0 -0
  74. data/assets/themes/j1/extensions/iframeResizer/LICENSE +21 -0
  75. data/assets/themes/j1/extensions/iframeResizer/examples/frame.absolute.html +127 -0
  76. data/assets/themes/j1/extensions/iframeResizer/examples/frame.content.html +157 -0
  77. data/assets/themes/j1/extensions/iframeResizer/examples/frame.hover.html +68 -0
  78. data/assets/themes/j1/extensions/iframeResizer/examples/frame.nested.html +100 -0
  79. data/assets/themes/j1/extensions/iframeResizer/examples/frame.textarea.html +45 -0
  80. data/assets/themes/j1/extensions/iframeResizer/examples/frame.tolerance.html +113 -0
  81. data/assets/themes/j1/extensions/iframeResizer/examples/index.html +83 -0
  82. data/assets/themes/j1/extensions/iframeResizer/examples/two.html +88 -0
  83. data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.js +1288 -0
  84. data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.map +1 -0
  85. data/assets/themes/j1/extensions/iframeResizer/js/client/iframeResizer.contentWindow.min.js +10 -0
  86. data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.js +1390 -0
  87. data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.map +1 -0
  88. data/assets/themes/j1/extensions/iframeResizer/js/iframeResizer.min.js +9 -0
  89. data/assets/themes/j1/extensions/jqMouseWheel/README.md +76 -0
  90. data/assets/themes/j1/extensions/jqMouseWheel/js/jquery.mousewheel.js +221 -0
  91. data/assets/themes/j1/extensions/jqMouseWheel/js/jquery.mousewheel.min.js +9 -0
  92. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/LICENSE +0 -0
  93. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/README.md +0 -0
  94. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/justifiedGallery.css +0 -0
  95. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
  96. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/css/theme/uno.css +0 -0
  97. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
  98. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.js +0 -0
  99. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
  100. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/less/.csslintrc +0 -0
  101. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v3.7.0/less/justifiedGallery.less +0 -0
  102. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/justifiedGallery.css +0 -0
  103. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
  104. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/css/theme/uno.css +0 -0
  105. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
  106. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
  107. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/justifiedGallery.css +0 -0
  108. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/justifiedGallery.min.css +0 -0
  109. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/theme/uno.css +0 -0
  110. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/css/theme/uno.min.css +0 -0
  111. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/js/justifiedGallery.js +0 -0
  112. data/assets/themes/j1/extensions/{justified_gallery → justifiedGallery}/js/justifiedGallery.min.js +0 -0
  113. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-fb-comment-box.css +0 -0
  114. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-fb-comment-box.min.css +0 -0
  115. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-transitions.css +0 -0
  116. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lg-transitions.min.css +0 -0
  117. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lightgallery.css +0 -0
  118. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/core/lightgallery.min.css +0 -0
  119. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.eot +0 -0
  120. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.svg +0 -0
  121. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.ttf +0 -0
  122. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/fonts/lg.woff +0 -0
  123. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/loading.gif +0 -0
  124. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/video-play.png +0 -0
  125. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/vimeo-play.png +0 -0
  126. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/img/youtube-play.png +0 -0
  127. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/animation-w.png +0 -0
  128. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/customize-w.png +0 -0
  129. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/dynamic-w.png +0 -0
  130. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/facebook-icon.svg +0 -0
  131. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/googleplus-icon.svg +0 -0
  132. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/html5-w.png +0 -0
  133. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/linked-in.png +0 -0
  134. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/module-w.png +0 -0
  135. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/play-button.png +0 -0
  136. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/responsive-w.png +0 -0
  137. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/thumb-w.png +0 -0
  138. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/touch-w.png +0 -0
  139. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/twitter-icon.svg +0 -0
  140. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/twitter.png +0 -0
  141. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/video1-w.png +0 -0
  142. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/zoom-w.png +0 -0
  143. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/icons/zoom.png +0 -0
  144. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/uno.css +1 -1
  145. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/css/themes/uno.min.css +1 -1
  146. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/core/lightgallery.js +0 -0
  147. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/core/lightgallery.min.js +0 -0
  148. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/j1/j1-video.js +0 -0
  149. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/j1/j1-video.min.js +0 -0
  150. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-autoplay.js +0 -0
  151. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-autoplay.min.js +0 -0
  152. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-fullscreen.js +0 -0
  153. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-fullscreen.min.js +0 -0
  154. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-hash.js +0 -0
  155. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-hash.min.js +0 -0
  156. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-pager.js +0 -0
  157. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-pager.min.js +0 -0
  158. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-share.js +0 -0
  159. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-share.min.js +0 -0
  160. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-thumbnail.js +0 -0
  161. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-thumbnail.min.js +0 -0
  162. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-video.js +0 -0
  163. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-video.min.js +0 -0
  164. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-zoom.js +0 -0
  165. data/assets/themes/j1/extensions/{light_gallery → lightGallery}/js/modules/lg-zoom.min.js +0 -0
  166. data/assets/themes/j1/extensions/lightbox/LICENSE +22 -0
  167. data/assets/themes/j1/extensions/lightbox/css/lightbox.css +224 -0
  168. data/assets/themes/j1/extensions/lightbox/css/lightbox.min.css +21 -0
  169. data/assets/themes/j1/extensions/lightbox/css/theme/uno.css +25 -0
  170. data/assets/themes/j1/extensions/lightbox/css/theme/uno.min.css +26 -0
  171. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/close.png +0 -0
  172. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/loading.gif +0 -0
  173. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/next.png +0 -0
  174. data/{lib/starter_web/assets/images/modules/lightbox → assets/themes/j1/extensions/lightbox/images}/prev.png +0 -0
  175. data/assets/themes/j1/extensions/lightbox/js/lightbox.js +583 -0
  176. data/assets/themes/j1/extensions/lightbox/js/lightbox.min.js +35 -0
  177. data/assets/themes/j1/extensions/mmenuLight/css/mmenu.css +392 -0
  178. data/assets/themes/j1/extensions/mmenuLight/css/mmenu.min.css +393 -0
  179. data/assets/themes/j1/extensions/mmenuLight/css/theme/uno.css +170 -0
  180. data/assets/themes/j1/extensions/mmenuLight/css/theme/uno.min.css +169 -0
  181. data/assets/themes/j1/extensions/mmenuLight/js/mmenu.js +30 -0
  182. data/assets/themes/j1/extensions/noUISlider/LICENSE +13 -0
  183. data/assets/themes/j1/extensions/noUISlider/css/nouislider.css +260 -0
  184. data/assets/themes/j1/extensions/noUISlider/css/nouislider.min.css +1 -0
  185. data/assets/themes/j1/extensions/noUISlider/js/nouislider.js +2312 -0
  186. data/assets/themes/j1/extensions/noUISlider/js/nouislider.min.js +3 -0
  187. data/assets/themes/j1/extensions/twemoji/js/LICENSE +21 -0
  188. data/assets/themes/j1/extensions/twemoji/js/picker/LICENSE +21 -0
  189. data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.js +21 -0
  190. data/assets/themes/j1/extensions/twemoji/js/picker/twemoji-picker.min.js +21 -0
  191. data/assets/themes/j1/extensions/twemoji/js/twemoji.js +590 -0
  192. data/assets/themes/j1/extensions/twemoji/js/twemoji.min.js +25 -0
  193. data/lib/j1/version.rb +3 -3
  194. data/lib/starter_web/Gemfile +7 -1
  195. data/lib/starter_web/_config.yml +9 -8
  196. data/lib/starter_web/_data/_defaults/resources.yml +13 -13
  197. data/lib/starter_web/_data/blocks/banner.yml +21 -29
  198. data/lib/starter_web/_data/blocks/footer.yml +10 -3
  199. data/lib/starter_web/_data/blocks/panel.yml +13 -13
  200. data/lib/starter_web/_data/layouts/default.yml +10 -0
  201. data/lib/starter_web/_data/layouts/home.yml +7 -7
  202. data/lib/starter_web/_data/layouts/page.yml +15 -16
  203. data/lib/starter_web/_data/modules/advertising.yml +48 -0
  204. data/lib/starter_web/_data/modules/attics.yml +2 -38
  205. data/lib/starter_web/_data/modules/cookie_consent.yml +3 -95
  206. data/lib/starter_web/_data/modules/defaults/attics.yml +16 -15
  207. data/lib/starter_web/_data/modules/defaults/cookie_consent.yml +75 -12
  208. data/lib/starter_web/_data/modules/defaults/jekyll_search.yml +9 -9
  209. data/lib/starter_web/_data/modules/defaults/navigator.yml +56 -21
  210. data/lib/starter_web/_data/modules/defaults/ssm.yml +3 -3
  211. data/lib/starter_web/_data/modules/defaults/toccer.yml +4 -8
  212. data/lib/starter_web/_data/modules/jekyll_search.yml +3 -21
  213. data/lib/starter_web/_data/modules/navigator.yml +1 -1
  214. data/lib/starter_web/_data/modules/navigator_menu.yml +4 -0
  215. data/lib/starter_web/_data/modules/ssm.yml +9 -0
  216. data/lib/starter_web/_data/modules/themer.yml +2 -3
  217. data/lib/starter_web/_data/modules/toccer.yml +6 -11
  218. data/lib/starter_web/_data/resources.yml +240 -112
  219. data/lib/starter_web/_data/template_settings.yml +117 -6
  220. data/lib/starter_web/_plugins/asciidoctor-extensions/fab-icon-inline.rb +1 -1
  221. data/lib/starter_web/_plugins/asciidoctor-extensions/fas-icon-inline.rb +2 -2
  222. data/lib/starter_web/_plugins/asciidoctor-extensions/iconify-icon-inline.rb +2 -2
  223. data/lib/starter_web/_plugins/asciidoctor-extensions/mdi-icon-inline.rb +2 -2
  224. data/lib/starter_web/_plugins/asciidoctor-extensions/twitter-emoji-inline.rb +2 -2
  225. data/lib/starter_web/_plugins/minifyJS.rb +54 -0
  226. data/lib/starter_web/_plugins/{uglify.rb → minifyJSON.rb} +15 -9
  227. data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.jpg +0 -0
  228. data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.jpg +0 -0
  229. data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.jpg +0 -0
  230. data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.jpg +0 -0
  231. data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
  232. data/lib/starter_web/assets/images/modules/attics/banner/library-1920x800-bw.jpg +0 -0
  233. data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.jpg +0 -0
  234. data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.jpg +0 -0
  235. data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.jpg +0 -0
  236. data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.jpg +0 -0
  237. data/lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280-bw.jpg +0 -0
  238. data/lib/starter_web/assets/images/modules/attics/cookies-1920x1200-bw.jpg +0 -0
  239. data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.jpg +0 -0
  240. data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
  241. data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.jpg +0 -0
  242. data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.jpg +0 -0
  243. data/lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.jpg +0 -0
  244. data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.jpg +0 -0
  245. data/lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.jpg +0 -0
  246. data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
  247. data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.jpg +0 -0
  248. data/lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.jpg +0 -0
  249. data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.jpg +0 -0
  250. data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.jpg +0 -0
  251. data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.jpg +0 -0
  252. data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
  253. data/lib/starter_web/assets/images/modules/attics/runner-1920x1200-bw.jpg +0 -0
  254. data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.jpg +0 -0
  255. data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280-bw.jpg +0 -0
  256. data/lib/starter_web/assets/images/modules/attics/welcome-1920x1280-bw.jpg +0 -0
  257. data/lib/starter_web/assets/images/modules/carousel/cats/cat-1.jpg +0 -0
  258. data/lib/starter_web/assets/images/modules/carousel/mega_cities/andreas-brucker_b.jpg +0 -0
  259. data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-1_b.jpg +0 -0
  260. data/lib/starter_web/assets/images/modules/carousel/mega_cities/denys-nevozhai-2_b.jpg +0 -0
  261. data/lib/starter_web/assets/images/modules/carousel/mega_cities/luca-bravo_b.jpg +0 -0
  262. data/lib/starter_web/assets/images/modules/carousel/mega_cities/thomas-tucker_b.jpg +0 -0
  263. data/lib/starter_web/assets/images/modules/gallery/mega_cities/banter-snaps_b.jpg +0 -0
  264. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-1_b.jpg +0 -0
  265. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2-bw.jpg +0 -0
  266. data/lib/starter_web/assets/images/modules/gallery/mega_cities/denys-nevozhai-2_b.jpg +0 -0
  267. data/lib/starter_web/assets/images/modules/gallery/mega_cities/emmad-mazhari_b.jpg +0 -0
  268. data/lib/starter_web/assets/images/modules/gallery/mega_cities/ethan-brooke_b.jpg +0 -0
  269. data/lib/starter_web/assets/images/modules/gallery/mega_cities/federico-rizzarelli_b.jpg +0 -0
  270. data/lib/starter_web/assets/images/modules/gallery/mega_cities/gints-gailis_b.jpg +0 -0
  271. data/lib/starter_web/assets/images/modules/gallery/mega_cities/johan-mouchet_b.jpg +0 -0
  272. data/lib/starter_web/assets/images/modules/gallery/mega_cities/luca-bravo_b.jpg +0 -0
  273. data/lib/starter_web/assets/images/modules/gallery/mega_cities/oskars-sylwan_b.jpg +0 -0
  274. data/lib/starter_web/assets/images/modules/gallery/mega_cities/steven-diaz_b.jpg +0 -0
  275. data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker-bw.jpg +0 -0
  276. data/lib/starter_web/assets/images/modules/gallery/mega_cities/thomas-tucker_b.jpg +0 -0
  277. data/lib/starter_web/index.html +9 -8
  278. data/lib/starter_web/package.json +1 -1
  279. data/lib/starter_web/pages/public/clear_button.adoc +121 -0
  280. data/lib/starter_web/pages/public/learn/examples/floating_ad.adoc +221 -0
  281. data/lib/starter_web/pages/public/learn/{floating_sidebar.adoc → examples/floating_div.adoc} +60 -50
  282. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/000_includes/parts.asciidoc +1 -1
  283. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +9 -4
  284. data/lib/starter_web/pages/public/learn/roundtrip/000_bs_tour_api.adoc +2 -2
  285. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/410_table_3_column.asciidoc +1 -1
  286. data/lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/419_advanced_modals_html.asciidoc +5 -5
  287. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
  288. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +4 -3
  289. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +35 -44
  290. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
  291. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +39 -39
  292. data/lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/410_table_3_column.asciidoc +1 -1
  293. data/lib/starter_web/pages/public/learn/whats_up.adoc +1 -0
  294. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +54 -48
  295. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +1 -1
  296. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +1 -1
  297. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/120_relative_sizes.asciidoc +1 -41
  298. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
  299. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/300_flip.asciidoc +1 -1
  300. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +1 -1
  301. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +1 -1
  302. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +1 -1
  303. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/600_md_color_palette.asciidoc +1 -1
  304. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +1 -1
  305. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +1 -1
  306. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +1 -1
  307. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +1 -1
  308. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/200_rotate.asciidoc +1 -1
  309. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/300_flip.asciidoc +1 -1
  310. data/lib/starter_web/pages/public/previewer/000_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +1 -1
  311. data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +672 -863
  312. data/lib/starter_web/pages/public/previewer/iframer.adoc +15 -14
  313. data/lib/starter_web/pages/public/previewer/justified_gallery.html +1 -1
  314. data/lib/starter_web/pages/public/previewer/mdb_preview/000_includes/attributes.asciidoc +69 -0
  315. data/lib/starter_web/pages/public/previewer/mdb_preview/000_includes/documents/100_buttons.asciidoc +170 -0
  316. data/lib/starter_web/pages/public/previewer/mdb_preview/mdb_previewer.adoc +52 -0
  317. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +1 -1
  318. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +2 -2
  319. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  320. data/lib/starter_web/utilsrv/package.json +1 -1
  321. metadata +148 -105
  322. data/assets/data/colors.json +0 -42
  323. data/assets/data/font_sizes.json +0 -42
  324. data/assets/data/messages.yml +0 -131
  325. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +0 -86
  326. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.content.html +0 -58
  327. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +0 -51
  328. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +0 -68
  329. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +0 -46
  330. data/assets/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +0 -79
  331. data/assets/themes/j1/extensions/iframe_resizer/examples/index.html +0 -70
  332. data/assets/themes/j1/extensions/iframe_resizer/examples/two.html +0 -71
  333. data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +0 -1104
  334. data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +0 -1
  335. data/assets/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +0 -10
  336. data/assets/themes/j1/extensions/log4javascript/log4javascript.js +0 -5826
  337. data/assets/themes/j1/extensions/log4javascript/log4javascript.min.js +0 -266
  338. data/lib/starter_web/assets/images/modules/attics/admin-dashboard-bootstrap-1280x600.png +0 -0
  339. data/lib/starter_web/assets/images/modules/attics/mae-mu-Vf9gbsLZyf0-unsplash.jpg +0 -0
  340. data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280-v.jpg +0 -0
  341. data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280.jpg +0 -0
@@ -1,5 +1,5 @@
1
1
  ---
2
- regenerate: true
2
+ regenerate: true
3
3
  ---
4
4
 
5
5
  {% capture cache %}
@@ -43,7 +43,6 @@ regenerate: true
43
43
  {% comment %} Set config files
44
44
  {% assign auth_manager_config = site.j1_auth %}
45
45
  -------------------------------------------------------------------------------- {% endcomment %}
46
- {% assign site_config = site %}
47
46
  {% assign template_config = site.data.template_settings %}
48
47
  {% assign blocks = site.data.blocks %}
49
48
  {% assign modules = site.data.modules %}
@@ -59,9 +58,16 @@ regenerate: true
59
58
 
60
59
  {% comment %} Set config options
61
60
  -------------------------------------------------------------------------------- {% endcomment %}
61
+ {% assign navigator_options = navigator_defaults | merge: navigator_settings %}
62
62
  {% assign nav_mmenu_options = nav_mmenu_defaults | merge: nav_mmenu_settings %}
63
63
  {% assign nav_mmenu_id = navigator_defaults.nav_mmenu.xhr_container_id %}
64
64
  {% assign nav_navbar_media_breakpoint = navigator_defaults.nav_bar.media_breakpoint %}
65
+ {% assign nav_mmenu_id = navigator_options.nav_mmenu.id %}
66
+
67
+ {% assign production = false %}
68
+ {% if environment == 'prod' or environment == 'production' %}
69
+ {% assign production = true %}
70
+ {% endif %}
65
71
 
66
72
  /*
67
73
  # -----------------------------------------------------------------------------
@@ -85,6 +91,12 @@ regenerate: true
85
91
  # Adapter generated: {{site.time}}
86
92
  # -----------------------------------------------------------------------------
87
93
  */
94
+
95
+ // -----------------------------------------------------------------------------
96
+ // ESLint shimming
97
+ // -----------------------------------------------------------------------------
98
+ /* eslint indent: "off" */
99
+ // -----------------------------------------------------------------------------
88
100
  'use strict';
89
101
 
90
102
  j1.adapter['mmenu'] = (function (j1, window) {
@@ -107,7 +119,6 @@ j1.adapter['mmenu'] = (function (j1, window) {
107
119
  // helper functions
108
120
  // ---------------------------------------------------------------------------
109
121
 
110
-
111
122
  // ---------------------------------------------------------------------------
112
123
  // main object
113
124
  // ---------------------------------------------------------------------------
@@ -137,7 +148,9 @@ j1.adapter['mmenu'] = (function (j1, window) {
137
148
  // -----------------------------------------------------------------------
138
149
  // options loader
139
150
  // -----------------------------------------------------------------------
151
+ /* eslint-disable */
140
152
  var navMenuOptions = $.extend({}, {{nav_mmenu_options | replace: '=>', ':' }});
153
+ /* eslint-enable */
141
154
  var xhr_data_path;
142
155
  var menu_id;
143
156
 
@@ -147,31 +160,17 @@ j1.adapter['mmenu'] = (function (j1, window) {
147
160
 
148
161
  // Load (individual) frontmatter options (currently NOT used)
149
162
  //
150
- if (options != null) { var frontmatterOptions = $.extend({}, options) }
163
+ if (options != null) { var frontmatterOptions = $.extend({}, options); }
151
164
 
152
165
  _this.setState('started');
153
166
  logger.info('state: ' + _this.getState());
154
167
  logger.info('module is being initialized');
155
168
 
156
- // jadams, 2020-06-24: Set max_count to 100 what cause to wait 2.5s
157
- // for J1 Navigator to finish (init)
158
- //
159
- var interval_count = 0;
160
- var max_count = 100;
161
-
162
- var dependencies_met_navigator = setInterval(function() {
163
- interval_count += 1;
164
- if ( j1.adapter.navigator.getState() == 'finished' ) {
165
- logger.info('dependencies of module navigator met for: mmenu');
166
- logger.info('dependencies of module navigator met after: ' + interval_count * 25 + ' ms');
167
- j1.adapter.mmenu.mmenuLoader(navMenuOptions);
168
- clearInterval(dependencies_met_navigator);
169
- }
170
- if (interval_count > max_count) {
171
- logger.warn('dependency check failed for module: navigator');
172
- logger.warn('dependencies of module navigator met after: ' + interval_count * 25 + ' ms');
173
- clearInterval(dependencies_met_navigator);
169
+ var dependencies_met_page_loaded = setInterval(function() {
170
+ if ( j1.getState() == 'finished' ) {
171
+ logger.info('dependencies of module met');
174
172
  j1.adapter.mmenu.mmenuLoader(navMenuOptions);
173
+ clearInterval(dependencies_met_page_loaded);
175
174
  }
176
175
  }, 25);
177
176
  }, // END init
@@ -214,8 +213,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
214
213
 
215
214
  j1.xhrData (
216
215
  'j1.adapter.mmenu', {
217
- xhr_container_id: "{{menu_id}}",
218
- xhr_data_path: "{{xhr_data_path}}" },
216
+ xhr_container_id: '{{menu_id}}',
217
+ xhr_data_path: '{{xhr_data_path}}' },
219
218
  {% if forloop.last %}'null'{% else %}'null'{% endif %}){% if forloop.last %}{% else %},{% endif %}
220
219
 
221
220
  {% endif %}
@@ -261,8 +260,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
261
260
  {% for item in nav_mmenu_options.menus %} {% if item.menu.enabled %}
262
261
 
263
262
  {% assign menu_id = item.menu.xhr_container_id %}
264
- menu_id = "{{menu_id}}";
265
- xhr_data_path = "{{item.menu.xhr_data_path}}";
263
+ menu_id = '{{menu_id}}';
264
+ xhr_data_path = '{{item.menu.xhr_data_path}}';
266
265
 
267
266
  // Create an mmenu instance if id exists: {{menu_id}}
268
267
  if ($('#{{menu_id}}').length) {
@@ -322,7 +321,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
322
321
  // ? drawer_{{menu_id}}.open()
323
322
  // : drawer_{{menu_id}}.close();
324
323
 
325
- drawer_{{menu_id}}.open()
324
+ drawer_{{menu_id}}.open();
326
325
  });
327
326
  });
328
327
  clearInterval(dependencies_met_{{menu_id}}_loaded);
@@ -353,7 +352,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
353
352
 
354
353
  const drawer_{{menu_id}} = mmenu_{{menu_id}}.offcanvas ({
355
354
  // drawer options
356
- position: "{{item.menu.drawer.position}}"
355
+ position: '{{item.menu.drawer.position}}'
357
356
  });
358
357
 
359
358
  // button for the MMenu tocbar to open|close the toc drawer
@@ -382,7 +381,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
382
381
  // ? drawer_{{menu_id}}.open()
383
382
  // : drawer_{{menu_id}}.close();
384
383
 
385
- drawer_{{menu_id}}.open()
384
+ drawer_{{menu_id}}.open();
386
385
  } // END if hasclass
387
386
  });
388
387
  });
@@ -448,5 +447,9 @@ j1.adapter['mmenu'] = (function (j1, window) {
448
447
  })(j1, window);
449
448
 
450
449
  {% endcapture %}
451
- {{ cache | strip_empty_lines }}
450
+ {% if production %}
451
+ {{ cache | minifyJS }}
452
+ {% else %}
453
+ {{ cache | strip_empty_lines }}
454
+ {% endif %}
452
455
  {% assign cache = nil %}
@@ -1,5 +1,5 @@
1
1
  ---
2
- regenerate: true
2
+ regenerate: true
3
3
  ---
4
4
 
5
5
  {% capture cache %}
@@ -31,6 +31,14 @@ regenerate: true
31
31
  # J1 Navigator needs a general revision on BS4 code and functionalities
32
32
  # Current, only base function are tested with BS4 (was coded for BS3)
33
33
  # -----------------------------------------------------------------------------
34
+ # NOTE:
35
+ # jadams, 2020-07-17:
36
+ # J1 Navigator can't be minfied for now. Uglifier fails on an ES6
37
+ # (most probably) structure that couldn't fixed by 'harmony' setting.
38
+ # Minifier fails by:
39
+ # Unexpected token: punc ())
40
+ # Current, minifying has been disabled
41
+ # -----------------------------------------------------------------------------
34
42
  {% endcomment %}
35
43
 
36
44
  {% comment %} Liquid procedures
@@ -49,11 +57,13 @@ regenerate: true
49
57
  {% comment %} Set config files
50
58
  {% assign auth_manager_config = site.j1_auth %}
51
59
  -------------------------------------------------------------------------------- {% endcomment %}
52
- {% assign site_config = site %}
53
60
  {% assign template_config = site.data.template_settings %}
54
61
  {% assign blocks = site.data.blocks %}
55
62
  {% assign modules = site.data.modules %}
56
63
 
64
+ {% assign themer_defaults = modules.defaults.themer.defaults %}
65
+ {% assign themer_settings = modules.themer.settings %}
66
+
57
67
  {% assign authentication_defaults = modules.defaults.authentication.defaults %}
58
68
  {% assign authentication_settings = modules.authentication.settings %}
59
69
 
@@ -78,6 +88,7 @@ regenerate: true
78
88
  {% comment %} Set config options
79
89
  -------------------------------------------------------------------------------- {% endcomment %}
80
90
  {% assign authentication_options = authentication_defaults | merge: authentication_settings %}
91
+ {% assign themer_options = themer_defaults | merge: themer_settings %}
81
92
  {% assign nav_bar_options = nav_bar_defaults | merge: nav_bar_settings %}
82
93
  {% assign nav_menu_options = nav_menu_defaults | merge: nav_menu_settings %}
83
94
  {% assign quicklinks_options = nav_quicklinks_defaults | merge: nav_quicklinks_settings %}
@@ -96,6 +107,11 @@ regenerate: true
96
107
  {% assign animate_duration = 1 %}
97
108
  {% endif %}
98
109
 
110
+ {% assign production = false %}
111
+ {% if environment == 'prod' or environment == 'production' %}
112
+ {% assign production = true %}
113
+ {% endif %}
114
+
99
115
  {% comment %}
100
116
  --------------------------------------------------------------------------------
101
117
  Set|Overload Liquid vars hardwired to NOT break the (MD) style
@@ -125,6 +141,12 @@ ToDo: Remove configuration from j1_navigator.yml
125
141
  # Adapter generated: {{site.time}}
126
142
  # -----------------------------------------------------------------------------
127
143
  */
144
+
145
+ // -----------------------------------------------------------------------------
146
+ // ESLint shimming
147
+ // -----------------------------------------------------------------------------
148
+ /* eslint indent: "off" */
149
+ // -----------------------------------------------------------------------------
128
150
  'use strict';
129
151
 
130
152
  j1.adapter['navigator'] = (function (j1, window) {
@@ -153,9 +175,7 @@ j1.adapter['navigator'] = (function (j1, window) {
153
175
  var user_session_merged = {};
154
176
  var session_state = {};
155
177
 
156
- var j1_colors = {};
157
- var j1_font_sizes = {};
158
-
178
+ var themerEnabled = false;
159
179
  var authClientEnabled;
160
180
  var appDetected;
161
181
  var json_data;
@@ -168,7 +188,6 @@ j1.adapter['navigator'] = (function (j1, window) {
168
188
  // helper functions
169
189
  // ---------------------------------------------------------------------------
170
190
 
171
-
172
191
  // ---------------------------------------------------------------------------
173
192
  // main object
174
193
  // ---------------------------------------------------------------------------
@@ -194,6 +213,7 @@ j1.adapter['navigator'] = (function (j1, window) {
194
213
  // -----------------------------------------------------------------------
195
214
  // options loader
196
215
  // -----------------------------------------------------------------------
216
+ /* eslint-disable */
197
217
  var authConfig = {};
198
218
  var navDefaults = {};
199
219
  var navBarConfig = {};
@@ -239,6 +259,7 @@ j1.adapter['navigator'] = (function (j1, window) {
239
259
 
240
260
  // Load (individual) frontmatter options (currently NOT used)
241
261
  if (options != null) { var frontmatterOptions = $.extend({}, options) }
262
+ /* eslint-enable */
242
263
 
243
264
  _this.setState('started');
244
265
  logger.info('state: ' + _this.getState());
@@ -281,11 +302,7 @@ j1.adapter['navigator'] = (function (j1, window) {
281
302
  // core initializer
282
303
  // ---------------------------------------------------------------------
283
304
 
284
- // Make sure that Load HTML data (AJAX) is finished
285
- // setTimeout (function() {
286
- // _this.setState('data_loaded');
287
- // }, 150);
288
-
305
+ // continue if all AJAX loads (xhrData) has finished
289
306
  var dependencies_met_navigator_core = setInterval (function () {
290
307
  if (_this.getState() === 'data_loaded') {
291
308
  _this.setState('processing');
@@ -298,38 +315,41 @@ j1.adapter['navigator'] = (function (j1, window) {
298
315
  authClientEnabled = j1.authEnabled();
299
316
  logger.info('application status detected: ' + appDetected);
300
317
 
301
- var dependencies_met_nav_menu = setInterval (function() {
302
- if (typeof j1.colors !== 'undefined') {
303
- j1.core.navigator.init (
304
- _this.navDefaults,
305
- _this.navMenuOptions
306
- );
307
-
308
- // initialize theme switcher menu
309
- $('#ThemeList').bootstrapThemeSwitcher({localFeed: ''}); // load themes from Bootswatch API
310
- $('#ThemeSelect').bootstrapThemeSwitcher(); // Load (local) J1 themes
311
- logText = 'theme switcher menu loaded successfully';
312
- logger.info(logText);
313
- _this.setState('initialized');
314
- clearInterval(dependencies_met_nav_menu);
315
- }
316
- }, 25); // END 'core initialized'
318
+ j1.core.navigator.init (
319
+ _this.navDefaults,
320
+ _this.navMenuOptions
321
+ );
322
+
323
+ // cast text-based booleans
324
+ themerEnabled = ({{themer_options.enabled }} === 'true');
325
+
326
+ if ({{themer_options.enabled }}) {
327
+ logText = 'theme switcher detect: enabled';
328
+ logger.info(logText);
329
+ // initialize theme switcher menu
330
+ $('#ThemeList').bootstrapThemeSwitcher({localFeed: ''}); // load themes from Bootswatch API
331
+ $('#ThemeSelect').bootstrapThemeSwitcher(); // Load (local) J1 themes
332
+ logText = 'theme switcher menu loaded successfully';
333
+ logger.info(logText);
334
+ } else {
335
+ logText = 'theme switcher detect: disabled';
336
+ logger.info(logText);
337
+ }
338
+ _this.setState('initialized');
317
339
 
318
340
  // -----------------------------------------------------------------
319
- // event handler + css styles
320
- // NOTE: jadams, 2019-08-22:
321
- // Add to dependcy to themer to fix
322
- // missing color setting for menu bar background
341
+ // event handler|css styles
323
342
  // -----------------------------------------------------------------
324
- var dependencies_met_events_css = setInterval(function() {
325
- if (_this.getState() === 'initialized' && j1.adapter.themer.getState() === 'finished') {
343
+ // continue if Theme CSS is applied
344
+ var dependencies_met_adapter_finished = setInterval(function() {
345
+ if (j1.adapter.themer.getState() === 'finished') {
326
346
  _this.setState('processing');
327
347
 
328
- logger.info('initialize events and styles');
348
+ logger.info('initialize eventHandler');
329
349
  j1.core.navigator.eventHandler();
330
350
 
331
- // set general|global module colors
332
- logger.info('apply styles');
351
+ // set general|global theme colors
352
+ logger.info('apply dynamic CSS styles');
333
353
  _this.setCSS (
334
354
  navBarOptions, navMenuOptions,
335
355
  navQuicklinksOptions, navTopsearchOptions
@@ -339,9 +359,9 @@ j1.adapter['navigator'] = (function (j1, window) {
339
359
  j1.adapter.navigator.initAuthClient(j1.adapter.navigator.navAuthManagerConfig);
340
360
  _this.setState('finished');
341
361
  logger.info('state: ' + _this.getState());
342
- clearInterval(dependencies_met_events_css);
362
+ clearInterval(dependencies_met_adapter_finished);
343
363
  }
344
- }, 25); // END 'core initialized'
364
+ }, 25); // END 'dependencies_met_adapter_finished'
345
365
  clearInterval(dependencies_met_navigator_core);
346
366
  }
347
367
  }, 25); // END 'dependencies_met_navigator_core'
@@ -354,14 +374,23 @@ j1.adapter['navigator'] = (function (j1, window) {
354
374
  $(window).on('resize', function() {
355
375
  j1.core.navigator.manageDropdownMenu(navDefaults, navMenuOptions);
356
376
 
377
+ // jadams, 2020-07-10: cause severe trouble on mobile devices if
378
+ // OnScreen Kbd comes up and reduces the window size (resize event)
379
+ // DISABLED
380
+ // -------------------------------------------------------------------
357
381
  // Hide|Close topSearch on resize event
358
- $('.top-search').slideUp();
382
+ // $('.top-search').slideUp();
359
383
 
360
384
  // Manage sticky NAV bars
361
385
  setTimeout (function(){
362
386
  j1.core.navigator.navbarSticky();
363
387
  }, 500);
364
388
 
389
+ // Scroll the page one pixel back and forth to get
390
+ // the right position for Toccer (trigger) and SSM
391
+ $(window).scrollTop($(window).scrollTop()+1);
392
+ $(window).scrollTop($(window).scrollTop()-1);
393
+
365
394
  // jadams, 2020-06-21: unclear|forgotten what I'm doing here!
366
395
  // Looks like the old BS3 implementation
367
396
  //
@@ -375,7 +404,7 @@ j1.adapter['navigator'] = (function (j1, window) {
375
404
  }, // END init
376
405
 
377
406
  // -------------------------------------------------------------------------
378
- // Initialize JS portion for the dialogs (modals) used by J1AuthClient
407
+ // initialize JS portion for the dialogs (modals) used by J1AuthClient
379
408
  // NOTE: Currently cookie updates NOT processed at the NAV module
380
409
  // All updates on Cookies are managed by Cookie Consent.
381
410
  // To be considered to re-add cookie updates for the auth state
@@ -409,7 +438,7 @@ j1.adapter['navigator'] = (function (j1, window) {
409
438
  // See: https://www.nickang.com/add-event-listener-for-loop-problem-in-javascript/
410
439
  // -------------------------------------------------------------------------
411
440
  modalEventHandler: function (options) {
412
- // var logger = log4javascript.getLogger("j1.adapter.navigator.EventHandler");
441
+ // var logger = log4javascript.getLogger('j1.adapter.navigator.EventHandler');
413
442
  var authConfig = options.j1_auth;
414
443
  var route;
415
444
  var provider;
@@ -419,17 +448,17 @@ j1.adapter['navigator'] = (function (j1, window) {
419
448
 
420
449
  var signIn = {
421
450
  provider: authConfig.providers.activated[0],
422
- users: authConfig.providers[authConfig.providers["activated"][0]]["users"],
451
+ users: authConfig.providers[authConfig.providers['activated'][0]]['users'],
423
452
  do: false
424
- }
453
+ };
425
454
 
426
455
  var signOut = {
427
456
  provider: authConfig.providers.activated[0],
428
457
  providerSignOut: false,
429
458
  do: false
430
- }
459
+ };
431
460
 
432
- logText = "initialize button click events";
461
+ logText = 'initialize button click events';
433
462
  logger.info(logText);
434
463
 
435
464
  // Manage button click events for modal "signInOutButton"
@@ -442,13 +471,13 @@ j1.adapter['navigator'] = (function (j1, window) {
442
471
  signIn.allowed_users = signIn.users.toString();
443
472
  });
444
473
 
445
- $("a.btn").click(function() {
446
- if (this.id === "signInButton") {
474
+ $('a.btn').click(function() {
475
+ if (this.id === 'signInButton') {
447
476
  signIn.do = true;
448
477
  } else {
449
478
  signIn.do = false;
450
479
  }
451
- if (this.id === "signOutButton") {
480
+ if (this.id === 'signOutButton') {
452
481
  signOut.do = true;
453
482
  } else {
454
483
  signOut.do = false;
@@ -457,16 +486,16 @@ j1.adapter['navigator'] = (function (j1, window) {
457
486
 
458
487
  $('input:checkbox[name="providerSignOut"]').on('click', function (e) {
459
488
  e.stopPropagation();
460
- signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(":checked");
461
- if(environment == "development") {
462
- logText = "provider signout set to: " + signOut.providerSignOut;
489
+ signOut.providerSignOut = $('input:checkbox[name="providerSignOut"]').is(':checked');
490
+ if(environment === 'development') {
491
+ logText = 'provider signout set to: ' + signOut.providerSignOut;
463
492
  logger.info(logText);
464
493
  }
465
494
  });
466
495
 
467
496
  // Manage pre events on modal "modalOmniSignIn"
468
497
  // -----------------------------------------------------------------------
469
- $("#modalOmniSignOut").on('show.bs.modal', function() {
498
+ $('#modalOmniSignOut').on('show.bs.modal', function() {
470
499
  var modal = $(this);
471
500
  logger.info('place current user data');
472
501
  user_session = j1.readCookie(cookie_user_session_name);
@@ -475,7 +504,7 @@ j1.adapter['navigator'] = (function (j1, window) {
475
504
 
476
505
  // Manage post events on modal "modalOmniSignIn"
477
506
  // -----------------------------------------------------------------------
478
- $("#modalOmniSignIn").on('hidden.bs.modal', function() {
507
+ $('#modalOmniSignIn').on('hidden.bs.modal', function() {
479
508
  if (signIn.do == true) {
480
509
  provider = signIn.provider.toLowerCase();
481
510
  allowed_users = signIn.users.toString();
@@ -497,11 +526,11 @@ j1.adapter['navigator'] = (function (j1, window) {
497
526
 
498
527
  // Manage post events on modal "modalOmniSignOut"
499
528
  // -----------------------------------------------------------------------
500
- $("#modalOmniSignOut").on('hidden.bs.modal', function() {
529
+ $('#modalOmniSignOut').on('hidden.bs.modal', function() {
501
530
  if (signOut.do == true) {
502
531
  logger.info('load active provider from cookie: ' + cookie_user_session_name);
503
532
 
504
- user_session = j1.readCookie(cookie_user_session_name);
533
+ user_session = j1.readCookie(cookie_user_session_name);
505
534
  provider = user_session.provider;
506
535
  provider_url = user_session.provider_site_url;
507
536
 
@@ -523,7 +552,7 @@ j1.adapter['navigator'] = (function (j1, window) {
523
552
  }
524
553
  }); // END post events "modalSignOut"
525
554
 
526
- logText = "initialize button click events completed";
555
+ logText = 'initialize button click events completed';
527
556
  logger.info(logText);
528
557
 
529
558
  return true;
@@ -534,50 +563,40 @@ j1.adapter['navigator'] = (function (j1, window) {
534
563
  // Set dynamic CSS styles
535
564
  // -------------------------------------------------------------------------
536
565
  setCSS: function (navBarOptions, navMenuOptions, navQuicklinksOptions, navTopsearchOptions) {
537
- var logger = log4javascript.getLogger("j1.adapter.navigator.setCSS");
566
+ var logger = log4javascript.getLogger('j1.adapter.navigator.setCSS');
538
567
  var gridBreakpoint_lg = '992px';
539
568
  var gridBreakpoint_md = '768px';
540
569
  var gridBreakpoint_sm = '576px';
541
570
 
542
- {% comment %} Resolve symbolic font sizes
543
- -------------------------------------------------------------------------- {% endcomment %}
544
-
545
571
  {% comment %} Set|Resolve navMenuOptions
546
572
  -------------------------------------------------------------------------- {% endcomment %}
547
- navMenuOptions.dropdown_font_size = j1.setFontSize(navMenuOptions.dropdown_font_size);
548
- navMenuOptions.megamenu_font_size = j1.setFontSize(navMenuOptions.megamenu_font_size);
549
-
550
-
551
- {% comment %} Resolve symbolic color names
552
- -------------------------------------------------------------------------- {% endcomment %}
573
+ navMenuOptions.dropdown_font_size = navMenuOptions.dropdown_font_size;
574
+ navMenuOptions.megamenu_font_size = navMenuOptions.megamenu_font_size;
553
575
 
554
576
  {% comment %} Set|Resolve navBarOptions
555
577
  -------------------------------------------------------------------------- {% endcomment %}
556
- navBarOptions.background_color_full = j1.setColorData(navBarOptions.background_color_full);
557
- // navBarOptions.background_color_collapsed = j1.setColorData(navBarOptions.background_color_collapsed);
558
- // navBarOptions.background_color_scrolled = j1.setColorData(navBarOptions.background_color_scrolled);
578
+ navBarOptions.background_color_full = navBarOptions.background_color_full;
559
579
 
560
580
  {% comment %} Set|Resolve navMenuOptions
561
581
  -------------------------------------------------------------------------- {% endcomment %}
562
- navMenuOptions.menu_item_color = j1.setColorData(navMenuOptions.menu_item_color);
563
- navMenuOptions.menu_item_color_hover = j1.setColorData(navMenuOptions.menu_item_color_hover);
564
- navMenuOptions.menu_item_dropdown_color = j1.setColorData(navMenuOptions.menu_item_dropdown_color);
565
- navMenuOptions.dropdown_item_color = j1.setColorData(navMenuOptions.dropdown_item_color);
566
- navMenuOptions.dropdown_background_color_hover = j1.setColorData(navMenuOptions.dropdown_background_color_hover);
567
- navMenuOptions.dropdown_background_color_active = j1.setColorData(navMenuOptions.dropdown_background_color_active);
568
- navMenuOptions.dropdown_border_color = j1.setColorData(navMenuOptions.dropdown_border_color);
582
+ navMenuOptions.menu_item_color = navMenuOptions.menu_item_color;
583
+ navMenuOptions.menu_item_color_hover = navMenuOptions.menu_item_color_hover;
584
+ navMenuOptions.menu_item_dropdown_color = navMenuOptions.menu_item_dropdown_color;
585
+ navMenuOptions.dropdown_item_color = navMenuOptions.dropdown_item_color;
586
+ navMenuOptions.dropdown_background_color_hover = navMenuOptions.dropdown_background_color_hover;
587
+ navMenuOptions.dropdown_background_color_active = navMenuOptions.dropdown_background_color_active;
588
+ navMenuOptions.dropdown_border_color = navMenuOptions.dropdown_border_color;
569
589
 
570
590
  {% comment %} Set|Resolve navQuicklinksOptions
571
591
  -------------------------------------------------------------------------- {% endcomment %}
572
- navQuicklinksOptions.icon_color = j1.setColorData(navQuicklinksOptions.icon_color);
573
- navQuicklinksOptions.icon_color_hover = j1.setColorData(navQuicklinksOptions.icon_color_hover);
574
- navQuicklinksOptions.background_color = j1.setColorData(navQuicklinksOptions.background_color);
592
+ navQuicklinksOptions.icon_color = navQuicklinksOptions.icon_color;
593
+ navQuicklinksOptions.icon_color_hover = navQuicklinksOptions.icon_color_hover;
594
+ navQuicklinksOptions.background_color = navQuicklinksOptions.background_color;
575
595
 
576
596
  {% comment %} Set|Resolve navTopsearchOptions
577
597
  -------------------------------------------------------------------------- {% endcomment %}
578
- navTopsearchOptions.input_color = j1.setColorData(navTopsearchOptions.input_color);
579
- navTopsearchOptions.background_color = j1.setColorData(navTopsearchOptions.background_color);
580
-
598
+ navTopsearchOptions.input_color = navTopsearchOptions.input_color;
599
+ navTopsearchOptions.background_color = navTopsearchOptions.background_color;
581
600
 
582
601
  {% comment %} Set dymanic styles
583
602
  -------------------------------------------------------------------------- {% endcomment %}
@@ -585,94 +604,61 @@ j1.adapter['navigator'] = (function (j1, window) {
585
604
  {% comment %} navBar styles
586
605
  -------------------------------------------------------------------------- {% endcomment %}
587
606
  var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
588
- var bg_scrolled = bg_primary
607
+ var bg_scrolled = bg_primary;
589
608
  var bg_collapsed = bg_primary;
590
609
 
591
610
  $('head').append('<style>.mdi-bg-primary {color: ' +bg_scrolled+ ';}</style>');
592
611
 
593
612
  // Size of brand image
594
- $('head').append("<style>.navbar-brand > img { height: {{brand_image_height}}px !important; }</style>");
595
- // Navbar transparent-light (light)
596
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator.navbar-transparent.light { background-color: " +navBarOptions.background_color_full+ " !important; border-bottom: solid 0px !important; } }</style>");
597
-
598
- // $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator.navbar-scrolled.light { background-color: " +navBarOptions.background_color_scrolled+ " !important; } }</style>");
599
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator.navbar-scrolled.light { background-color: " +bg_scrolled+ " !important; } }</style>");
613
+ $('head').append('<style>.navbar-brand > img { height: {{brand_image_height}}px !important; }</style>');
600
614
 
601
- // Menubar collapsed (mobile)
602
- // $('head').append('<style>.navbar-collapse.collapse.show { background-color: ' +bg_scrolled+ ' !important; }</style>');
603
-
604
-
605
- /* Navbar media-queries, LARGE Window|Desktop (>= 1024) */
606
- /* jadams: Oversized menu bar fixed by: overflow: hidden */
607
- // $('head').append("<style>@media (max-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator { background-color: " +navBarOptions.background_color_collapsed+ " !important; overflow: hidden; } }</style>");
608
- // $('head').append("<style>@media (max-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator { background-color: " +bg_collapsed+ " !important; overflow: hidden; } }</style>");
609
- // $('head').append("<style>@media (max-width: 1023px) { row { margin-left: 0 !important; margin-right: 0 !important; } }</style>");
615
+ // Navbar transparent-light (light)
616
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-transparent.light { background-color: ' +navBarOptions.background_color_full+ ' !important; border-bottom: solid 0px !important; } }</style>');
617
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
610
618
 
611
619
  {% comment %} navQuicklinks styles
612
620
  -------------------------------------------------------------------------- {% endcomment %}
613
- $('head').append("<style>.attr-nav> ul > li > a { color: " +navQuicklinksOptions.icon_color+ " !important; }</style>");
614
- $('head').append("<style>.attr-nav> ul > li > a:hover { color: " +navQuicklinksOptions.icon_color_hover+ " !important; }</style>");
621
+ $('head').append('<style>.attr-nav> ul > li > a { color: ' +navQuicklinksOptions.icon_color+ ' !important; }</style>');
622
+ $('head').append('<style>.attr-nav> ul > li > a:hover { color: ' +navQuicklinksOptions.icon_color_hover+ ' !important; }</style>');
615
623
 
616
624
  {% comment %} navMenu styles
617
625
  -------------------------------------------------------------------------- {% endcomment %}
618
-
619
- // TODO: Check if this style is needed for MENU item (hover)
620
- //$('head').append("<style>nav.navbar.navbar-transparent ul.nav > li > a:hover,nav.navbar.no-background ul.nav > li > a:hover,nav.navbar ul.nav li.scroll.active > a,nav.navbar.navbar-dark ul.nav li.dropdown ul.dropdown-menu > li > a:hover,nav.navbar ul.nav li.dropdown.on > a,nav.navbar-dark ul.nav li.dropdown.on > a { color: " +navMenuOptions.menu_item_color_hover+ " !important; }</style>");
621
- //
622
- //$('head').append("<style>.dropdown-menu > .active > a { background-color: " +navMenuOptions.dropdown_background_color_active+ " !important; }</style>");
623
626
  // Remove background for anchor
624
- $('head').append("<style>.dropdown-menu > .active > a { background-color: transparent !important; }</style>");
627
+ $('head').append('<style>.dropdown-menu > .active > a { background-color: transparent !important; }</style>');
625
628
  // hover menu-item|menu-sub-item
626
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator .dropdown-item:focus, nav.navbar.navigator .dropdown-item:hover, nav.navbar.navigator .nav-sub-item:focus, nav.navbar.navigator .nav-sub-item:hover { background: " +navMenuOptions.dropdown_background_color_hover+ " !important; } }</style>");
627
- // $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li a:hover { color: " +navMenuOptions.menu_item_color_hover+ " !important; background: " +navMenuOptions.dropdown_background_color_hover+ " !important; } }</style>");
628
-
629
- // 1st dropdown, limit height
630
- // TODO: overflow needs to be managed correctly (not static)
631
- //$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { max-height: " +navMenuOptions.dropdown_menu_height_max+ "em; overflow: hidden } }</style>");
629
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator .dropdown-item:focus, nav.navbar.navigator .dropdown-item:hover, nav.navbar.navigator .nav-sub-item:focus, nav.navbar.navigator .nav-sub-item:hover { background: ' +navMenuOptions.dropdown_background_color_hover+ ' !important; }}</style>');
632
630
 
633
- // Limit dropdown item width
634
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator ul.nav.navbar-right .dropdown-menu .dropdown-menu { left: -" +navMenuOptions.dropdown_item_width+ "em !important; } }</style>");
631
+ // Limit 1st dropdown item width
632
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav.navbar-right .dropdown-menu .dropdown-menu { left: -' +navMenuOptions.dropdown_item_width+ 'em !important; } }</style>');
635
633
 
636
634
  // Limit last (2nd) dropdown in height (nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu)
637
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu { top: -" +navMenuOptions.dropdown_border_top+ "px !important; max-height: " +navMenuOptions.dropdown_menu_height_max+ "em !important; } }</style>");
635
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu { top: -' +navMenuOptions.dropdown_border_top+ 'px !important; max-height: ' +navMenuOptions.dropdown_menu_height_max+ 'em !important; } }</style>');
638
636
 
639
637
  // Set dropdown item colors
640
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator ul.nav > li > a { color: " +navMenuOptions.menu_item_color+ " !important; } }</style>");
641
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator ul.nav > li > a:hover { color: " +navMenuOptions.menu_item_color_hover+ " !important; } }</style>");
638
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a { color: ' +navMenuOptions.menu_item_color+ ' !important; } }</style>');
639
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a:hover { color: ' +navMenuOptions.menu_item_color_hover+ ' !important; } }</style>');
642
640
 
643
641
  // Dropdown menu styles
644
- //$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: " +navMenuOptions.dropdown_animate_duration+ "s !important; color: " +navMenuOptions.dropdown_border_color+ "; width: " +navMenuOptions.dropdown_item_width+ "px; border-top: solid " +navMenuOptions.dropdown_border_height+ "px; left: 1rem; top: calc(90px + " +navMenuOptions.dropdown_border_height+ "px); } }</style>");
645
- //$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: " +navMenuOptions.dropdown_animate_duration+ "s !important; color: " +navMenuOptions.dropdown_border_color+ "; width: " +navMenuOptions.dropdown_item_width+ "em; border-top: solid " +navMenuOptions.dropdown_border_height+ "px; left: 1em; } }</style>");
646
642
  // jadams, 2017-11-30: removed left padding from dropdown mwenu (for new j1nav style based on Navigator|Slate)
647
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: " +navMenuOptions.dropdown_animate_duration+ "s !important; color: " +bg_scrolled+ " !important; width: " +navMenuOptions.dropdown_item_width+ "emm!important; border-top: solid " +navMenuOptions.dropdown_border_top+ "px !important; border-radius: " +navMenuOptions.dropdown_border_radius+ "px !important; left: 0; } }</style>");
643
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: ' +navMenuOptions.dropdown_animate_duration+ 's !important; color: ' +bg_scrolled+ ' !important; width: ' +navMenuOptions.dropdown_item_width+ 'emm !important; border-top: solid ' +navMenuOptions.dropdown_border_top+ 'px !important; border-radius: ' +navMenuOptions.dropdown_border_radius+ 'px !important; left: 0; } }</style>');
648
644
 
649
645
  {% if dropdown_style == 'raised' %}
650
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu { box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important; } }</style>");
646
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu { box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important; } }</style>');
651
647
  {% endif %}
652
648
 
653
- // jadams,2017-11-22: stop configure dropdown_font_size
654
- //$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown li.dropdown.nav-item.nav-sub-item { color: " +navMenuOptions.dropdown_item_color+ "; font-size: " +navMenuOptions.dropdown_font_size+ "; font-weight: 400; } }</style>");
655
- // $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { color: " +navMenuOptions.dropdown_item_color+ "; font-size: " +navMenuOptions.dropdown_font_size+ "; font-weight: 400; display: inline-flex; align-items: center;} }</style>");
656
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { color: " +navMenuOptions.dropdown_item_color+ " !important; font-size: " +navMenuOptions.dropdown_font_size+ " !important; font-weight: 400; } }</style>");
657
- $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator ul.dropdown-menu.megamenu-content .content ul.menu-col li a { color: " +navMenuOptions.dropdown_item_color+ " !important; font-size: " +navMenuOptions.megamenu_font_size+ " !important; font-weight: 400; } }</style>");
658
-
659
- // dropdown-menu item padding
660
- // jadams, 2017-11-22: moved item padding to nav|dropdown-item based on font-site (rel|em)
661
- {% if dropdown_item_style == 'raised' %}
662
- //$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { padding: " +navMenuOptions.dropdown_padding_y+ "px " +navMenuOptions.dropdown_padding_x+ "px; box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2); } }</style>");
663
- {% else %}
664
- //$('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { padding: " +navMenuOptions.dropdown_padding_y+ "px " +navMenuOptions.dropdown_padding_x+ "px; } }</style>");
665
- // blödsinn $('head').append("<style>@media (min-width: " +gridBreakpoint_lg+ ") { nav.navbar.navigator .dropdown .nav-item { padding-top: " +navMenuOptions.dropdown_item_padding+ "px; padding-bottom: " +navMenuOptions.dropdown_item_padding+ "px; } }</style>");
666
- {% endif %}
649
+ // jadams, 2017-11-22: configure dropdown_font_size|color
650
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { color: ' +navMenuOptions.dropdown_item_color+ ' !important; font-size: ' +navMenuOptions.dropdown_font_size+ ' !important; font-weight: 400; } }</style>');
651
+ $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.dropdown-menu.megamenu-content .content ul.menu-col li a { color: ' +navMenuOptions.dropdown_item_color+ ' !important; font-size: ' +navMenuOptions.megamenu_font_size+ ' !important; font-weight: 400; } }</style>');
667
652
 
668
653
  {% comment %} navQuicklinks styles
669
654
  -------------------------------------------------------------------------- {% endcomment %}
670
655
 
671
656
  {% comment %} navTopSearch Styles
672
657
  -------------------------------------------------------------------------- {% endcomment %}
673
- $('head').append("<style>.top-search { background-color: " +navTopsearchOptions.background_color+ " !important; }</style>");
674
- $('head').append("<style>.top-search .input-group-addon { color: " +navTopsearchOptions.input_color+ " !important; }</style>");
675
- $('head').append("<style>.top-search .input.form-control { color: " +navTopsearchOptions.input_color+ " !important; }</style>");
658
+ // jadams, 2020-07-08: disabled because colors for icons set by the icon font settings
659
+ // $('head').append('<style>.top-search .input-group-addon { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
660
+ $('head').append('<style>.top-search { background-color: ' +navTopsearchOptions.background_color+ ' !important; }</style>');
661
+ $('head').append('<style>.top-search input.form-control { color: ' +navTopsearchOptions.input_color+ ' !important; }</style>');
676
662
 
677
663
  return true;
678
664
  }, // END setCSS
@@ -683,11 +669,11 @@ j1.adapter['navigator'] = (function (j1, window) {
683
669
  // See: http://jsfiddle.net/AndreasPizsa/NzvKC/
684
670
  // -------------------------------------------------------------------------
685
671
  delayShowMenu: function () {
686
- var logger = log4javascript.getLogger("j1.adapter.navigator.delayShowMenu");
672
+ var logger = log4javascript.getLogger('j1.adapter.navigator.delayShowMenu');
687
673
  var theTimer = 0;
688
674
  var theElement = null;
689
675
 
690
- logText = "entered delayShowMenu"
676
+ logText ='entered delayShowMenu';
691
677
  logger.info(logText);
692
678
 
693
679
  $('#navigator_nav_menu')