j1-template 2020.0.3 → 2020.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +22 -18
  3. data/_includes/themes/j1/layouts/content_generator_collection.html +15 -12
  4. data/_includes/themes/j1/layouts/content_generator_page.html +16 -17
  5. data/_includes/themes/j1/layouts/content_generator_post.html +21 -26
  6. data/_includes/themes/j1/modules/navigator/generator.html +45 -29
  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/menu.html +2 -1
  10. data/assets/data/mmenu.html +3 -3
  11. data/assets/data/{sidebar.html → mmenu_sidebar.html} +24 -18
  12. data/assets/data/mmenu_toc.html +45 -0
  13. data/assets/data/quicklinks.html +9 -4
  14. data/assets/data/ssm.html +231 -0
  15. data/assets/error_pages/HTTP204.html +3 -3
  16. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/algolia.js +3 -3
  17. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/attic.js +4 -4
  18. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/carousel.js +3 -3
  19. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/cookie_consent.js +0 -0
  20. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/framer.js +3 -3
  21. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/gallery_customizer.js +0 -0
  22. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/j1.js +18 -39
  23. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/justified_gallery.js +0 -0
  24. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/lightbox.js +0 -0
  25. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/logger.js +0 -0
  26. data/assets/themes/j1/adapter/js/mmenu.js +452 -0
  27. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/navigator.js +29 -35
  28. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/searcher.js +0 -0
  29. data/assets/themes/j1/adapter/js/ssm.js +518 -0
  30. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/themer.js +1 -1
  31. data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/toccer.js +46 -153
  32. data/assets/themes/j1/core/css/globals.css +1 -1
  33. data/assets/themes/j1/core/css/theme_extensions.css +681 -117
  34. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  35. data/assets/themes/j1/core/css/uno.css +691 -117
  36. data/assets/themes/j1/core/css/uno.min.css +1 -1
  37. data/assets/themes/j1/core/css/vendor.css +4 -1
  38. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  39. data/assets/themes/j1/core/js/template.js +40 -30
  40. data/assets/themes/j1/core/js/template.js.map +1 -1
  41. data/assets/themes/j1/core/js/template.min.js +1 -1
  42. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.css +0 -0
  43. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.min.css +0 -0
  44. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.css +0 -0
  45. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.min.css +0 -0
  46. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.css +0 -0
  47. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.min.css +0 -0
  48. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/ajax-loader.gif +0 -0
  49. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/grabbing.png +0 -0
  50. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl-logo.png +0 -0
  51. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl.video.play.png +0 -0
  52. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.js +0 -0
  53. data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.min.js +0 -0
  54. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iconify/js/iconify.min.js +0 -0
  55. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +0 -0
  56. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.content.html +0 -0
  57. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +0 -0
  58. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +0 -0
  59. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +0 -0
  60. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +0 -0
  61. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/index.html +0 -0
  62. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/two.html +0 -0
  63. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +0 -0
  64. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +0 -0
  65. data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +0 -0
  66. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/LICENSE +0 -0
  67. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/README.md +0 -0
  68. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.css +0 -0
  69. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
  70. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/theme/uno.css +0 -0
  71. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
  72. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.js +0 -0
  73. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
  74. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/.csslintrc +0 -0
  75. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/justifiedGallery.less +0 -0
  76. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.css +0 -0
  77. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
  78. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/theme/uno.css +0 -0
  79. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
  80. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
  81. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.css +0 -0
  82. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.min.css +0 -0
  83. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.css +0 -0
  84. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.min.css +0 -0
  85. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.js +0 -0
  86. data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.min.js +0 -0
  87. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.css +0 -0
  88. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.min.css +0 -0
  89. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.css +0 -0
  90. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.min.css +0 -0
  91. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.css +0 -0
  92. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.min.css +0 -0
  93. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.eot +0 -0
  94. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.svg +0 -0
  95. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.ttf +0 -0
  96. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.woff +0 -0
  97. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/loading.gif +0 -0
  98. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/video-play.png +0 -0
  99. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/vimeo-play.png +0 -0
  100. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/youtube-play.png +0 -0
  101. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/animation-w.png +0 -0
  102. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/customize-w.png +0 -0
  103. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/dynamic-w.png +0 -0
  104. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/facebook-icon.svg +0 -0
  105. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/googleplus-icon.svg +0 -0
  106. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/html5-w.png +0 -0
  107. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/linked-in.png +0 -0
  108. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/module-w.png +0 -0
  109. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/play-button.png +0 -0
  110. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/responsive-w.png +0 -0
  111. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/thumb-w.png +0 -0
  112. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/touch-w.png +0 -0
  113. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter-icon.svg +0 -0
  114. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter.png +0 -0
  115. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/video1-w.png +0 -0
  116. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom-w.png +0 -0
  117. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom.png +0 -0
  118. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.css +0 -0
  119. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.min.css +0 -0
  120. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.js +0 -0
  121. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.min.js +0 -0
  122. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.js +0 -0
  123. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.min.js +0 -0
  124. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.js +0 -0
  125. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.min.js +0 -0
  126. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.js +0 -0
  127. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.min.js +0 -0
  128. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.js +0 -0
  129. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.min.js +0 -0
  130. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.js +0 -0
  131. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.min.js +0 -0
  132. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.js +0 -0
  133. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.min.js +0 -0
  134. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.js +0 -0
  135. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.min.js +0 -0
  136. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.js +0 -0
  137. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.min.js +0 -0
  138. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.js +0 -0
  139. data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.min.js +0 -0
  140. data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.js +0 -0
  141. data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.min.js +0 -0
  142. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.dark/theme.css +0 -0
  143. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.light/theme.css +0 -0
  144. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.dark/theme.css +0 -0
  145. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.light/theme.css +0 -0
  146. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai/theme.css +0 -0
  147. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.dark/theme.css +0 -0
  148. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.light/theme.css +0 -0
  149. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized/theme.css +0 -0
  150. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16/theme.css +0 -0
  151. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/colorful/theme.css +0 -0
  152. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/github/theme.css +0 -0
  153. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.dark/theme.css +0 -0
  154. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.light/theme.css +0 -0
  155. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox/theme.css +0 -0
  156. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/igorpro/theme.css +0 -0
  157. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/molokai/theme.css +0 -0
  158. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai.sublime/theme.css +0 -0
  159. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai/theme.css +0 -0
  160. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/pastie/theme.css +0 -0
  161. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/thankful_eyes/theme.css +0 -0
  162. data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/tulip/theme.css +0 -0
  163. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.css +0 -0
  164. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.min.css +0 -0
  165. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.css +0 -0
  166. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.min.css +0 -0
  167. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.css +0 -0
  168. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.min.css +0 -0
  169. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.css +0 -0
  170. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.min.css +0 -0
  171. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.css +0 -0
  172. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.min.css +0 -0
  173. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.js +0 -0
  174. data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.min.js +0 -0
  175. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/froogaloop/js/froogaloop2.min.js +0 -0
  176. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js +0 -0
  177. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js.map +0 -0
  178. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js +0 -0
  179. data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js.map +0 -0
  180. data/lib/j1/version.rb +1 -1
  181. data/lib/starter_web/Gemfile +2 -2
  182. data/lib/starter_web/_config.yml +12 -139
  183. data/lib/starter_web/_data/modules/authentication.yml +1 -1
  184. data/lib/starter_web/_data/modules/defaults/navigator.yml +2 -24
  185. data/lib/starter_web/_data/modules/defaults/ssm.yml +50 -0
  186. data/lib/starter_web/_data/modules/defaults/toccer.yml +14 -15
  187. data/lib/starter_web/_data/modules/navigator.yml +158 -97
  188. data/lib/starter_web/_data/modules/ssm.yml +133 -0
  189. data/lib/starter_web/_data/modules/toccer.yml +20 -62
  190. data/lib/starter_web/_data/resources.yml +27 -49
  191. data/lib/starter_web/_data/template_settings.yml +13 -13
  192. data/lib/starter_web/_plugins/uglify.rb +41 -0
  193. data/lib/starter_web/assets/images/modules/icons/j1/{j1..ico → j1.ico} +0 -0
  194. data/lib/starter_web/collections/posts/public/{jekyll → featured}/_posts/2018-05-01-confusion-about-base-url.adoc +0 -0
  195. data/lib/starter_web/package.json +1 -1
  196. data/lib/starter_web/pages/public/about/about_site.adoc +3 -3
  197. data/lib/starter_web/pages/public/about/become_a_patron.adoc +9 -11
  198. data/lib/starter_web/pages/public/learn/floating_sidebar.adoc +199 -0
  199. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +3 -3
  200. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +6 -7
  201. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +9 -5
  202. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +22 -24
  203. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +27 -30
  204. data/lib/starter_web/pages/public/learn/whats_up.adoc +12 -11
  205. data/lib/starter_web/pages/public/legal/en/500_support.adoc +1 -1
  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/mdi_icons_preview.adoc +2 -3
  208. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
  209. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  210. data/lib/starter_web/utilsrv/package.json +1 -1
  211. metadata +167 -172
  212. data/assets/themes/j1/core/css/globals.scss +0 -28
  213. data/lib/starter_web/_data/modules/back2top.yml +0 -40
  214. data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
  215. data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
  216. data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
  217. data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
  218. data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js +0 -269
  219. data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
  220. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +0 -384
  221. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +0 -10
  222. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +0 -213
  223. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +0 -205
  224. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +0 -118
@@ -1,10 +0,0 @@
1
- /*!
2
- * Mmenu Light
3
- * mmenujs.com/mmenu-light v3.0.4
4
- *
5
- * Copyright (c) Fred Heusschen
6
- * www.frebsite.nl
7
- *
8
- * License: CC-BY-4.0
9
- * http://creativecommons.org/licenses/by/4.0/
10
- */:root{--mm-ocd-width:80%;--mm-ocd-min-width:200px;--mm-ocd-max-width:440px}body.mm-ocd-opened{overflow-y:hidden;-ms-scroll-chaining:none;overscroll-behavior:none}.mm-ocd{position:fixed;top:0;right:0;bottom:100%;left:0;z-index:9999;overflow:hidden;-ms-scroll-chaining:none;overscroll-behavior:contain;background:rgba(0,0,0,0);-webkit-transition-property:bottom,background-color;-o-transition-property:bottom,background-color;transition-property:bottom,background-color;-webkit-transition-duration:0s,.3s;-o-transition-duration:0s,.3s;transition-duration:0s,.3s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-delay:.45s,.15s;-o-transition-delay:.45s,.15s;transition-delay:.45s,.15s}.mm-ocd--open{bottom:0;background:rgba(0,0,0,.25);-webkit-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s}.mm-ocd__content{position:absolute;top:0;bottom:0;z-index:2;width:80%;width:var(--mm-ocd-width);min-width:200px;min-width:var(--mm-ocd-min-width);max-width:440px;max-width:var(--mm-ocd-max-width);background:#fff;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;-o-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.mm-ocd--left .mm-ocd__content{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mm-ocd--right .mm-ocd__content{right:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mm-ocd--open .mm-ocd__content{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-ocd__backdrop{position:absolute;top:0;bottom:0;z-index:3;width:calc(100% - 80%);width:calc(100% - var(--mm-ocd-width));min-width:calc(100% - 440px);min-width:calc(100% - var(--mm-ocd-max-width));max-width:calc(100% - 200px);max-width:calc(100% - var(--mm-ocd-min-width));background:rgba(3,2,1,0)}.mm-ocd--left .mm-ocd__backdrop{right:0}.mm-ocd--right .mm-ocd__backdrop{left:0}.mm-spn,.mm-spn a,.mm-spn li,.mm-spn span,.mm-spn ul{display:block;padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box}:root{--mm-spn-item-height:50px;--mm-spn-item-indent:20px;--mm-spn-line-height:24px}.mm-spn{width:100%;height:100%;-webkit-tap-highlight-color:transparent;-webkit-overflow-scrolling:touch;overflow:hidden;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0);-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.mm-spn ul{-webkit-overflow-scrolling:touch;position:fixed;top:0;left:100%;bottom:0;z-index:2;width:130%;padding-right:30%;line-height:24px;line-height:var(--mm-spn-line-height);overflow:visible;overflow-y:auto;background:inherit;-webkit-transition:left .3s ease 0s;-o-transition:left .3s ease 0s;transition:left .3s ease 0s;cursor:default}.mm-spn ul:after{content:'';display:block;height:50px;height:var(--mm-spn-item-height)}.mm-spn>ul{left:0}.mm-spn ul.mm-spn--open{left:0}.mm-spn ul.mm-spn--parent{left:-30%;overflow-y:hidden}.mm-spn li{position:relative;background:inherit;cursor:pointer}.mm-spn li:before{content:'';display:block;position:absolute;top:25px;top:calc(var(--mm-spn-item-height)/ 2);right:25px;right:calc(var(--mm-spn-item-height)/ 2);z-index:0;width:10px;height:10px;border-top:2px solid;border-right:2px solid;-webkit-transform:rotate(45deg) translate(0,-50%);-ms-transform:rotate(45deg) translate(0,-50%);transform:rotate(45deg) translate(0,-50%);opacity:.4}.mm-spn li:after{content:'';display:block;margin-left:20px;margin-left:var(--mm-spn-item-indent);border-top:1px solid;opacity:.15}.mm-spn a,.mm-spn span{position:relative;z-index:1;padding:13px 20px;padding:calc((var(--mm-spn-item-height) - var(--mm-spn-line-height))/ 2) var(--mm-spn-item-indent)}.mm-spn a{background:inherit;color:inherit;text-decoration:none}.mm-spn a:not(:last-child){width:calc(100% - 50px);width:calc(100% - var(--mm-spn-item-height))}.mm-spn a:not(:last-child):after{content:'';display:block;position:absolute;top:0;right:0;bottom:0;border-right:1px solid;opacity:.15}.mm-spn span{background:0}.mm-spn.mm-spn--navbar{cursor:pointer}.mm-spn.mm-spn--navbar:before{content:'';display:block;position:absolute;top:25px;top:calc(var(--mm-spn-item-height)/ 2);left:20px;left:var(--mm-spn-item-indent);width:10px;height:10px;margin-top:2px;border-top:2px solid;border-left:2px solid;-webkit-transform:rotate(-45deg) translate(50%,-50%);-ms-transform:rotate(-45deg) translate(50%,-50%);transform:rotate(-45deg) translate(50%,-50%);opacity:.4}.mm-spn.mm-spn--navbar.mm-spn--main{cursor:default}.mm-spn.mm-spn--navbar.mm-spn--main:before{content:none;display:none}.mm-spn.mm-spn--navbar:after{content:attr(data-mm-spn-title);display:block;position:absolute;top:0;left:0;right:0;height:50px;height:var(--mm-spn-item-height);padding:0 40px;padding:0 calc(var(--mm-spn-item-indent) * 2);line-height:50px;line-height:var(--mm-spn-item-height);opacity:.4;text-align:center;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mm-spn.mm-spn--navbar.mm-spn--main:after{padding-left:20px;padding-left:var(--mm-spn-item-indent)}.mm-spn.mm-spn--navbar ul{top:51px;top:calc(var(--mm-spn-item-height)+1px)}.mm-spn.mm-spn--navbar ul:before{content:'';display:block;position:fixed;top:inherit;z-index:2;width:100%;border-top:1px solid currentColor;opacity:.15}.mm-spn.mm-spn--light{color:#444;background:#f3f3f3}.mm-spn.mm-spn--dark{color:#ddd;background:#333}.mm-spn.mm-spn--vertical{overflow-y:auto}.mm-spn.mm-spn--vertical ul{width:100%;padding-right:0;position:static}.mm-spn.mm-spn--vertical ul ul{display:none;padding-left:20px;padding-left:var(--mm-spn-item-indent)}.mm-spn.mm-spn--vertical ul ul:after{height:25px;height:calc(var(--mm-spn-item-height)/ 2)}.mm-spn.mm-spn--vertical ul.mm-spn--open{display:block}.mm-spn.mm-spn--vertical li.mm-spn--open:before{-webkit-transform:rotate(135deg) translate(-50%,0);-ms-transform:rotate(135deg) translate(-50%,0);transform:rotate(135deg) translate(-50%,0)}.mm-spn.mm-spn--vertical ul ul li:last-child:after{content:none;display:none}
@@ -1,213 +0,0 @@
1
- /*!
2
- * Mmenu Light
3
- * mmenujs.com/mmenu-light v3.0.4
4
- *
5
- * Copyright (c) Fred Heusschen
6
- * www.frebsite.nl
7
- *
8
- * License: CC-BY-4.0
9
- * http://creativecommons.org/licenses/by/4.0/
10
- */
11
- ! function (t) {
12
- var e = {};
13
-
14
- function n(i) {
15
- if (e[i]) return e[i].exports;
16
- var s = e[i] = {
17
- i: i,
18
- l: !1,
19
- exports: {}
20
- };
21
- return t[i].call(s.exports, s, s.exports, n), s.l = !0, s.exports
22
- }
23
- n.m = t, n.c = e, n.d = function (t, e, i) {
24
- n.o(t, e) || Object.defineProperty(t, e, {
25
- enumerable: !0,
26
- get: i
27
- })
28
- }, n.r = function (t) {
29
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
30
- value: "Module"
31
- }), Object.defineProperty(t, "__esModule", {
32
- value: !0
33
- })
34
- }, n.t = function (t, e) {
35
- if (1 & e && (t = n(t)), 8 & e) return t;
36
- if (4 & e && "object" == typeof t && t && t.__esModule) return t;
37
- var i = Object.create(null);
38
- if (n.r(i), Object.defineProperty(i, "default", {
39
- enumerable: !0,
40
- value: t
41
- }), 2 & e && "string" != typeof t)
42
- for (var s in t) n.d(i, s, function (e) {
43
- return t[e]
44
- }.bind(null, s));
45
- return i
46
- }, n.n = function (t) {
47
- var e = t && t.__esModule ? function () {
48
- return t.default
49
- } : function () {
50
- return t
51
- };
52
- return n.d(e, "a", e), e
53
- }, n.o = function (t, e) {
54
- return Object.prototype.hasOwnProperty.call(t, e)
55
- }, n.p = "", n(n.s = 0)
56
- }([function (t, e, n) {
57
- "use strict";
58
- n.r(e);
59
- var i = function () {
60
- function t(t) {
61
- var e = this;
62
- this.listener = function (t) {
63
- (t.matches ? e.matchFns : e.unmatchFns).forEach((function (t) {
64
- t()
65
- }))
66
- }, this.toggler = window.matchMedia(t), this.toggler.addListener(this.listener), this.matchFns = [], this.unmatchFns = []
67
- }
68
- return t.prototype.add = function (t, e) {
69
- this.matchFns.push(t), this.unmatchFns.push(e), (this.toggler.matches ? t : e)()
70
- }, t
71
- }(),
72
- s = function (t) {
73
- return Array.prototype.slice.call(t)
74
- },
75
- o = function (t, e) {
76
- return s((e || document).querySelectorAll(t))
77
- },
78
- r = ("ontouchstart" in window || navigator.msMaxTouchPoints, navigator.userAgent.indexOf("MSIE") > -1 || navigator.appVersion.indexOf("Trident/") > -1),
79
- a = "mm-spn",
80
- c = function () {
81
- function t(t, e, n, i, s) {
82
- this.node = t, this.title = e, this.slidingSubmenus = i, this.selectedClass = n, this.node.classList.add(a), r && (this.slidingSubmenus = !1), this.node.classList.add(a + "--" + s), this.node.classList.add(a + "--" + (this.slidingSubmenus ? "navbar" : "vertical")), this._setSelectedl(), this._initAnchors()
83
- }
84
- return Object.defineProperty(t.prototype, "prefix", {
85
- get: function () {
86
- return a
87
- },
88
- enumerable: !0,
89
- configurable: !0
90
- }), t.prototype.openPanel = function (t) {
91
- var e = t.parentElement;
92
- if (this.slidingSubmenus) {
93
- var n = t.dataset.mmSpnTitle;
94
- e === this.node ? this.node.classList.add(a + "--main") : (this.node.classList.remove(a + "--main"), n || s(e.children).forEach((function (t) {
95
- t.matches("a, span") && (n = t.textContent)
96
- }))), n || (n = this.title), this.node.dataset.mmSpnTitle = n, o("." + a + "--open", this.node).forEach((function (t) {
97
- t.classList.remove(a + "--open"), t.classList.remove(a + "--parent")
98
- })), t.classList.add(a + "--open"), t.classList.remove(a + "--parent");
99
- for (var i = t.parentElement.closest("ul"); i;) i.classList.add(a + "--open"), i.classList.add(a + "--parent"), i = i.parentElement.closest("ul")
100
- } else {
101
- var r = t.matches("." + a + "--open");
102
- o("." + a + "--open", this.node).forEach((function (t) {
103
- t.classList.remove(a + "--open")
104
- })), t.classList[r ? "remove" : "add"](a + "--open");
105
- for (var c = t.parentElement.closest("ul"); c;) c.classList.add(a + "--open"), c = c.parentElement.closest("ul")
106
- }
107
- }, t.prototype._setSelectedl = function () {
108
- var t = o("." + this.selectedClass, this.node),
109
- e = t[t.length - 1],
110
- n = null;
111
- e && (n = e.closest("ul")), n || (n = this.node.querySelector("ul")), this.openPanel(n)
112
- }, t.prototype._initAnchors = function () {
113
- var t = this;
114
- this.node.addEventListener("click", (function (e) {
115
- var n = e.target,
116
- i = !1;
117
- (i = (i = (i = i || function (t) {
118
- return !!t.matches("a")
119
- }(n)) || function (e) {
120
- var n;
121
- return !!(n = e.closest("span") ? e.parentElement : !!e.closest("li") && e) && (s(n.children).forEach((function (e) {
122
- e.matches("ul") && t.openPanel(e)
123
- })), !0)
124
- }(n)) || function (e) {
125
- var n = o("." + a + "--open", e),
126
- i = n[n.length - 1];
127
- if (i) {
128
- var s = i.parentElement.closest("ul");
129
- if (s) return t.openPanel(s), !0
130
- }
131
- return !1
132
- }(n)) && e.stopImmediatePropagation()
133
- }))
134
- }, t
135
- }(),
136
- u = "mm-ocd",
137
- d = function () {
138
- function t(t, e) {
139
- var n = this;
140
- // jadams, 2020-06-21: deactivate bubble up control by preventDefault
141
- // on so-called passive events to suppress error messages issues by
142
- // (Google) Chromium browsers. Google has changed the behavior of
143
- // passive event listeners only for window, document or body elements.
144
- //
145
- // See: https://developers.google.com/web/updates/2017/01/scrolling-intervention
146
- //
147
- var passiveSupported = false;
148
- void 0 === t && (t = null), this.wrapper = document.createElement("div"), this.wrapper.classList.add("" + u), this.wrapper.classList.add(u + "--" + e), this.content = document.createElement("div"), this.content.classList.add(u + "__content"), this.wrapper.append(this.content), this.backdrop = document.createElement("div"), this.backdrop.classList.add(u + "__backdrop"), this.wrapper.append(this.backdrop), document.body.append(this.wrapper), t && this.content.append(t);
149
- var i = function (t) {
150
- // jadams, 2020-06-21: deactivate close drawer on mouse click event
151
- // n.close();
152
- if (passiveSupported) { t.preventDefault() }
153
- t.stopImmediatePropagation()
154
- };
155
- this.backdrop.addEventListener("touchstart", i, {
156
- passive: !0
157
- }), this.backdrop.addEventListener("mousedown", i, {
158
- passive: !0
159
- })
160
- }
161
- return Object.defineProperty(t.prototype, "prefix", {
162
- get: function () {
163
- return u
164
- },
165
- enumerable: !0,
166
- configurable: !0
167
- }), t.prototype.open = function () {
168
- this.wrapper.classList.add(u + "--open"), document.body.classList.add(u + "-opened")
169
- }, t.prototype.close = function () {
170
- this.wrapper.classList.remove(u + "--open"), document.body.classList.remove(u + "-opened")
171
- }, t
172
- }(),
173
- l = function () {
174
- function t(t, e) {
175
- void 0 === e && (e = "all"), this.menu = t, this.toggler = new i(e)
176
- }
177
- return t.prototype.navigation = function (t) {
178
- var e = this;
179
- if (!this.navigator) {
180
- var n = (t = t || {}).title,
181
- i = void 0 === n ? "Menu" : n,
182
- s = t.selectedClass,
183
- o = void 0 === s ? "Selected" : s,
184
- r = t.slidingSubmenus,
185
- a = void 0 === r || r,
186
- u = t.theme,
187
- d = void 0 === u ? "light" : u;
188
- this.navigator = new c(this.menu, i, o, a, d), this.toggler.add((function () {
189
- return e.menu.classList.add(e.navigator.prefix)
190
- }), (function () {
191
- return e.menu.classList.remove(e.navigator.prefix)
192
- }))
193
- }
194
- return this.navigator
195
- }, t.prototype.offcanvas = function (t) {
196
- var e = this;
197
- if (!this.drawer) {
198
- var n = (t = t || {}).position,
199
- i = void 0 === n ? "left" : n;
200
- this.drawer = new d(null, i);
201
- var s = document.createComment("original mmenu location");
202
- this.menu.after(s), this.toggler.add((function () {
203
- e.drawer.content.append(e.menu)
204
- }), (function () {
205
- e.drawer.close(), s.after(e.menu)
206
- }))
207
- }
208
- return this.drawer
209
- }, t
210
- }();
211
- e.default = l;
212
- window.MmenuLight = l
213
- }]);
@@ -1,205 +0,0 @@
1
- /*!
2
- * Mmenu Light
3
- * mmenujs.com/mmenu-light v3.0.4
4
- *
5
- * Copyright (c) Fred Heusschen
6
- * www.frebsite.nl
7
- *
8
- * License: CC-BY-4.0
9
- * http://creativecommons.org/licenses/by/4.0/
10
- */
11
- ! function (t) {
12
- var e = {};
13
-
14
- function n(i) {
15
- if (e[i]) return e[i].exports;
16
- var s = e[i] = {
17
- i: i,
18
- l: !1,
19
- exports: {}
20
- };
21
- return t[i].call(s.exports, s, s.exports, n), s.l = !0, s.exports
22
- }
23
- n.m = t, n.c = e, n.d = function (t, e, i) {
24
- n.o(t, e) || Object.defineProperty(t, e, {
25
- enumerable: !0,
26
- get: i
27
- })
28
- }, n.r = function (t) {
29
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
30
- value: "Module"
31
- }), Object.defineProperty(t, "__esModule", {
32
- value: !0
33
- })
34
- }, n.t = function (t, e) {
35
- if (1 & e && (t = n(t)), 8 & e) return t;
36
- if (4 & e && "object" == typeof t && t && t.__esModule) return t;
37
- var i = Object.create(null);
38
- if (n.r(i), Object.defineProperty(i, "default", {
39
- enumerable: !0,
40
- value: t
41
- }), 2 & e && "string" != typeof t)
42
- for (var s in t) n.d(i, s, function (e) {
43
- return t[e]
44
- }.bind(null, s));
45
- return i
46
- }, n.n = function (t) {
47
- var e = t && t.__esModule ? function () {
48
- return t.default
49
- } : function () {
50
- return t
51
- };
52
- return n.d(e, "a", e), e
53
- }, n.o = function (t, e) {
54
- return Object.prototype.hasOwnProperty.call(t, e)
55
- }, n.p = "", n(n.s = 0)
56
- }([function (t, e, n) {
57
- "use strict";
58
- n.r(e);
59
- var i = function () {
60
- function t(t) {
61
- var e = this;
62
- this.listener = function (t) {
63
- (t.matches ? e.matchFns : e.unmatchFns).forEach((function (t) {
64
- t()
65
- }))
66
- }, this.toggler = window.matchMedia(t), this.toggler.addListener(this.listener), this.matchFns = [], this.unmatchFns = []
67
- }
68
- return t.prototype.add = function (t, e) {
69
- this.matchFns.push(t), this.unmatchFns.push(e), (this.toggler.matches ? t : e)()
70
- }, t
71
- }(),
72
- s = function (t) {
73
- return Array.prototype.slice.call(t)
74
- },
75
- o = function (t, e) {
76
- return s((e || document).querySelectorAll(t))
77
- },
78
- r = ("ontouchstart" in window || navigator.msMaxTouchPoints, navigator.userAgent.indexOf("MSIE") > -1 || navigator.appVersion.indexOf("Trident/") > -1),
79
- a = "mm-spn",
80
- c = function () {
81
- function t(t, e, n, i, s) {
82
- this.node = t, this.title = e, this.slidingSubmenus = i, this.selectedClass = n, this.node.classList.add(a), r && (this.slidingSubmenus = !1), this.node.classList.add(a + "--" + s), this.node.classList.add(a + "--" + (this.slidingSubmenus ? "navbar" : "vertical")), this._setSelectedl(), this._initAnchors()
83
- }
84
- return Object.defineProperty(t.prototype, "prefix", {
85
- get: function () {
86
- return a
87
- },
88
- enumerable: !0,
89
- configurable: !0
90
- }), t.prototype.openPanel = function (t) {
91
- var e = t.parentElement;
92
- if (this.slidingSubmenus) {
93
- var n = t.dataset.mmSpnTitle;
94
- e === this.node ? this.node.classList.add(a + "--main") : (this.node.classList.remove(a + "--main"), n || s(e.children).forEach((function (t) {
95
- t.matches("a, span") && (n = t.textContent)
96
- }))), n || (n = this.title), this.node.dataset.mmSpnTitle = n, o("." + a + "--open", this.node).forEach((function (t) {
97
- t.classList.remove(a + "--open"), t.classList.remove(a + "--parent")
98
- })), t.classList.add(a + "--open"), t.classList.remove(a + "--parent");
99
- for (var i = t.parentElement.closest("ul"); i;) i.classList.add(a + "--open"), i.classList.add(a + "--parent"), i = i.parentElement.closest("ul")
100
- } else {
101
- var r = t.matches("." + a + "--open");
102
- o("." + a + "--open", this.node).forEach((function (t) {
103
- t.classList.remove(a + "--open")
104
- })), t.classList[r ? "remove" : "add"](a + "--open");
105
- for (var c = t.parentElement.closest("ul"); c;) c.classList.add(a + "--open"), c = c.parentElement.closest("ul")
106
- }
107
- }, t.prototype._setSelectedl = function () {
108
- var t = o("." + this.selectedClass, this.node),
109
- e = t[t.length - 1],
110
- n = null;
111
- e && (n = e.closest("ul")), n || (n = this.node.querySelector("ul")), this.openPanel(n)
112
- }, t.prototype._initAnchors = function () {
113
- var t = this;
114
- this.node.addEventListener("click", (function (e) {
115
- var n = e.target,
116
- i = !1;
117
- (i = (i = (i = i || function (t) {
118
- return !!t.matches("a")
119
- }(n)) || function (e) {
120
- var n;
121
- return !!(n = e.closest("span") ? e.parentElement : !!e.closest("li") && e) && (s(n.children).forEach((function (e) {
122
- e.matches("ul") && t.openPanel(e)
123
- })), !0)
124
- }(n)) || function (e) {
125
- var n = o("." + a + "--open", e),
126
- i = n[n.length - 1];
127
- if (i) {
128
- var s = i.parentElement.closest("ul");
129
- if (s) return t.openPanel(s), !0
130
- }
131
- return !1
132
- }(n)) && e.stopImmediatePropagation()
133
- }))
134
- }, t
135
- }(),
136
- u = "mm-ocd",
137
- d = function () {
138
- function t(t, e) {
139
- var n = this;
140
- var passiveSupported = false;
141
- void 0 === t && (t = null), this.wrapper = document.createElement("div"), this.wrapper.classList.add("" + u), this.wrapper.classList.add(u + "--" + e), this.content = document.createElement("div"), this.content.classList.add(u + "__content"), this.wrapper.append(this.content), this.backdrop = document.createElement("div"), this.backdrop.classList.add(u + "__backdrop"), this.wrapper.append(this.backdrop), document.body.append(this.wrapper), t && this.content.append(t);
142
- var i = function (t) {
143
- n.close();
144
- if (passiveSupported) { t.preventDefault() }
145
- t.stopImmediatePropagation();
146
- };
147
- this.backdrop.addEventListener("touchstart", i, {
148
- passive: !0
149
- }), this.backdrop.addEventListener("mousedown", i, {
150
- passive: !0
151
- })
152
- }
153
- return Object.defineProperty(t.prototype, "prefix", {
154
- get: function () {
155
- return u
156
- },
157
- enumerable: !0,
158
- configurable: !0
159
- }), t.prototype.open = function () {
160
- this.wrapper.classList.add(u + "--open"), document.body.classList.add(u + "-opened")
161
- }, t.prototype.close = function () {
162
- this.wrapper.classList.remove(u + "--open"), document.body.classList.remove(u + "-opened")
163
- }, t
164
- }(),
165
- l = function () {
166
- function t(t, e) {
167
- void 0 === e && (e = "all"), this.menu = t, this.toggler = new i(e)
168
- }
169
- return t.prototype.navigation = function (t) {
170
- var e = this;
171
- if (!this.navigator) {
172
- var n = (t = t || {}).title,
173
- i = void 0 === n ? "Menu" : n,
174
- s = t.selectedClass,
175
- o = void 0 === s ? "Selected" : s,
176
- r = t.slidingSubmenus,
177
- a = void 0 === r || r,
178
- u = t.theme,
179
- d = void 0 === u ? "light" : u;
180
- this.navigator = new c(this.menu, i, o, a, d), this.toggler.add((function () {
181
- return e.menu.classList.add(e.navigator.prefix)
182
- }), (function () {
183
- return e.menu.classList.remove(e.navigator.prefix)
184
- }))
185
- }
186
- return this.navigator
187
- }, t.prototype.offcanvas = function (t) {
188
- var e = this;
189
- if (!this.drawer) {
190
- var n = (t = t || {}).position,
191
- i = void 0 === n ? "left" : n;
192
- this.drawer = new d(null, i);
193
- var s = document.createComment("original menu location");
194
- this.menu.after(s), this.toggler.add((function () {
195
- e.drawer.content.append(e.menu)
196
- }), (function () {
197
- e.drawer.close(), s.after(e.menu)
198
- }))
199
- }
200
- return this.drawer
201
- }, t
202
- }();
203
- e.default = l;
204
- window.MmenuLight = l
205
- }]);
@@ -1,118 +0,0 @@
1
- // Source: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
2
- if (window.NodeList && !NodeList.prototype.forEach) {
3
- NodeList.prototype.forEach = function(callback, thisArg) {
4
- thisArg = thisArg || window;
5
- for (var i = 0; i < this.length; i++) {
6
- callback.call(thisArg, this[i], i, this);
7
- }
8
- };
9
- }
10
-
11
- // Source: https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
12
- if (!Element.prototype.matches) {
13
- Element.prototype.matches =
14
- Element.prototype.matchesSelector ||
15
- Element.prototype.mozMatchesSelector ||
16
- Element.prototype.msMatchesSelector ||
17
- Element.prototype.oMatchesSelector ||
18
- Element.prototype.webkitMatchesSelector ||
19
- function(s) {
20
- var matches = (
21
- this.document || this.ownerDocument
22
- ).querySelectorAll(s),
23
- i = matches.length;
24
- while (--i >= 0 && matches.item(i) !== this) {}
25
- return i > -1;
26
- };
27
- }
28
-
29
- // Source: https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
30
- if (!Element.prototype.matches) {
31
- Element.prototype.matches =
32
- Element.prototype.msMatchesSelector ||
33
- Element.prototype.webkitMatchesSelector;
34
- }
35
-
36
- if (!Element.prototype.closest) {
37
- Element.prototype.closest = function(s) {
38
- var el = this;
39
-
40
- do {
41
- if (el.matches(s)) return el;
42
- el = el.parentElement || el.parentNode;
43
- } while (el !== null && el.nodeType === 1);
44
- return null;
45
- };
46
- }
47
-
48
- // from: https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/after()/after().md
49
- (function(arr) {
50
- arr.forEach(function(item) {
51
- if (item.hasOwnProperty('after')) {
52
- return;
53
- }
54
- Object.defineProperty(item, 'after', {
55
- configurable: true,
56
- enumerable: true,
57
- writable: true,
58
- value: function after() {
59
- var argArr = Array.prototype.slice.call(arguments),
60
- docFrag = document.createDocumentFragment();
61
-
62
- argArr.forEach(function(argItem) {
63
- var isNode = argItem instanceof Node;
64
- docFrag.appendChild(
65
- isNode
66
- ? argItem
67
- : document.createTextNode(String(argItem))
68
- );
69
- });
70
-
71
- this.parentNode.insertBefore(docFrag, this.nextSibling);
72
- }
73
- });
74
- });
75
- })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
76
-
77
- // Source: https://github.com/jserz/js_piece/blob/master/DOM/ParentNode/append()/append().md
78
- (function(arr) {
79
- arr.forEach(function(item) {
80
- if (item.hasOwnProperty('append')) {
81
- return;
82
- }
83
- Object.defineProperty(item, 'append', {
84
- configurable: true,
85
- enumerable: true,
86
- writable: true,
87
- value: function append() {
88
- var argArr = Array.prototype.slice.call(arguments),
89
- docFrag = document.createDocumentFragment();
90
-
91
- argArr.forEach(function(argItem) {
92
- var isNode = argItem instanceof Node;
93
- docFrag.appendChild(
94
- isNode
95
- ? argItem
96
- : document.createTextNode(String(argItem))
97
- );
98
- });
99
-
100
- this.appendChild(docFrag);
101
- }
102
- });
103
- });
104
- })([Element.prototype, Document.prototype, DocumentFragment.prototype]);
105
-
106
- // from: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
107
- (function() {
108
- if (typeof window.Event === 'function') return false;
109
-
110
- function Event(event, params) {
111
- params = params || { bubbles: false, cancelable: false };
112
- var evt = document.createEvent('Event');
113
- evt.initEvent(event, params.bubbles, params.cancelable);
114
- return evt;
115
- }
116
-
117
- window.Event = Event;
118
- })();