j1-template 2021.1.29 → 2021.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +6 -6
  3. data/_includes/themes/j1/layouts/content_generator_post.html +3 -0
  4. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +5 -5
  5. data/_includes/themes/j1/procedures/posts/create_series_header.proc +6 -6
  6. data/_layouts/default.html +36 -26
  7. data/assets/data/mdil_icons.json +2417 -0
  8. data/assets/data/panel.html +10 -10
  9. data/assets/data/quicklinks.html +1 -2
  10. data/assets/themes/j1/adapter/js/fam.js +1 -1
  11. data/assets/themes/j1/adapter/js/j1.js +139 -139
  12. data/assets/themes/j1/adapter/js/navigator.js +11 -4
  13. data/assets/themes/j1/adapter/js/rtable.js +77 -24
  14. data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.css +1222 -0
  15. data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.min.css +1 -0
  16. data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +1 -1
  17. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +58 -109
  18. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
  19. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +28 -18
  20. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
  21. data/assets/themes/j1/core/css/vendor.css +7 -20
  22. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  23. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/eot/materialdesignicons-light-webfont.eot +0 -0
  24. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff +0 -0
  25. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff2 +0 -0
  26. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/svg/materialdesignicons-light-webfont.svg +801 -0
  27. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/ttf/materialdesignicons-light-webfont.ttf +0 -0
  28. data/assets/themes/j1/core/js/template.js +16 -7
  29. data/assets/themes/j1/core/js/template.js.map +1 -1
  30. data/assets/themes/j1/core/js/template.min.js +16 -7
  31. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  32. data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
  33. data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
  34. data/assets/themes/j1/modules/j1Deepl/js/j1deepl.js +385 -0
  35. data/assets/themes/j1/modules/j1Deepl/js/j1deepl.min.js +18 -0
  36. data/assets/themes/j1/modules/j1Scroll/js/j1scroll.js +3 -0
  37. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
  38. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
  39. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
  40. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
  41. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +5 -15
  42. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
  43. data/assets/themes/j1/modules/mdilPreviewer/css/previewer.css +97 -0
  44. data/assets/themes/j1/modules/mdilPreviewer/css/previewer.min.css +15 -0
  45. data/assets/themes/j1/modules/mdilPreviewer/js/previewer.js +125 -0
  46. data/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js +15 -0
  47. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +3 -3
  48. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +2 -174
  49. data/assets/themes/j1/modules/rtable/js/rtable.js +59 -25
  50. data/assets/themes/j1/modules/rtable/js/rtable.min.js +12 -683
  51. data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.js +73 -73
  52. data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.min.js +15 -15
  53. data/lib/j1/commands/generate.rb +5 -8
  54. data/lib/j1/version.rb +3 -3
  55. data/lib/starter_web/Gemfile +1 -1
  56. data/lib/starter_web/_config.yml +15 -51
  57. data/lib/starter_web/_data/blocks/banner.yml +4 -5
  58. data/lib/starter_web/_data/modules/defaults/rtable.yml +34 -0
  59. data/lib/starter_web/_data/modules/j1scroll.yml +2 -2
  60. data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
  61. data/lib/starter_web/_data/modules/rtable.yml +34 -0
  62. data/lib/starter_web/_data/resources.yml +45 -1
  63. data/lib/starter_web/_includes/attributes.asciidoc +6 -1
  64. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  65. data/lib/starter_web/assets/images/modules/attics/annie-spratt-1920x1280.jpg +0 -0
  66. data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
  67. data/lib/starter_web/assets/images/modules/attics/humble-lamb-1920x1280.jpg +0 -0
  68. data/lib/starter_web/assets/images/modules/attics/library-1920x1280.jpg +0 -0
  69. data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
  70. data/lib/starter_web/assets/images/modules/attics/sigmund-1920x1280.jpg +0 -0
  71. data/lib/starter_web/assets/images/{pages/videos → modules/attics}/szabo-viktor-1920x1280.jpg +0 -0
  72. data/lib/starter_web/assets/images/pages/asciidoc_skeletons/example-pdf-screenshot.png +0 -0
  73. data/lib/starter_web/collections/posts/public/featured/_posts/{2020-01-01-about-cookies.adoc → 2021-01-01-about-cookies.adoc} +0 -0
  74. data/lib/starter_web/collections/posts/public/featured/_posts/{2021-03-01-site-generators.adoc → 2021-02-01-site-generators.adoc} +0 -0
  75. data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-20-minneapolis.adoc → series/_posts/2020-01-01-post-wiki-series.adoc} +11 -10
  76. data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc → series/_posts/2020-01-02-post-wiki-series.adoc} +15 -13
  77. data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-26-columbia-river.adoc → series/_posts/2020-01-03-post-wiki-series.adoc} +28 -11
  78. data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/attributes.asciidoc +0 -0
  79. data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/documents/readme +0 -0
  80. data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/tables/readme +0 -0
  81. data/lib/starter_web/index.html +2 -2
  82. data/lib/starter_web/package.json +2 -2
  83. data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/000_intro.adoc +5 -7
  84. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +43 -0
  85. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +61 -0
  86. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/attributes.asciidoc +95 -0
  87. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/000_intro.asciidoc +54 -0
  88. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/000_basic_example.asciidoc +31 -0
  89. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +111 -0
  90. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +95 -0
  91. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +39 -0
  92. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter.asciidoc +8 -0
  93. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/211_language_overview.asciidoc +122 -0
  94. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +502 -0
  95. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/213_fonts.asciidoc +261 -0
  96. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes.asciidoc +8 -0
  97. data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.bat +1 -1
  98. data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.sh +2 -2
  99. data/lib/starter_web/pages/public/asciidoc_skeletons/{book/book.a2p → documentation/documentation.a2p} +2 -8
  100. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +86 -0
  101. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +848 -40
  102. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +149 -38
  103. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +2 -7
  104. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +312 -119
  105. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +4 -27
  106. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +5 -27
  107. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -20
  108. data/lib/starter_web/pages/public/blog/navigator/archive.html +5 -27
  109. data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1 -1
  110. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  111. data/lib/starter_web/utilsrv/package.json +1 -1
  112. metadata +53 -83
  113. data/assets/themes/j1/modules/rtable/js/tablesaw-init.js +0 -18
  114. data/assets/themes/j1/modules/rtable/js/tablesaw.stackonly.js +0 -2371
  115. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -128
  116. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -131
  117. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -131
  118. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -132
  119. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/blindtext.asciidoc +0 -11
  120. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/font_icons.asciidoc +0 -23
  121. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +0 -5
  122. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/lightbox.asciidoc +0 -7
  123. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/chapter_document.asciidoc +0 -9
  124. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/entry_document.asciidoc +0 -3
  125. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/images/image.asciidoc +0 -6
  126. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column.asciidoc +0 -12
  127. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column_options.asciidoc +0 -30
  128. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_3_column.asciidoc +0 -16
  129. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_4_column.asciidoc +0 -25
  130. data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +0 -62
  131. data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +0 -64
  132. data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +0 -73
  133. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/attributes.asciidoc +0 -74
  134. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/000_intro.asciidoc +0 -33
  135. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/100_chapter_document.asciidoc +0 -21
  136. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/110_chapter_document.asciidoc +0 -36
  137. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter.asciidoc +0 -7
  138. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter/200_chapter_document.asciidoc +0 -53
  139. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter.asciidoc +0 -5
  140. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/000_intro.asciidoc +0 -23
  141. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/100_chapter_document.asciidoc +0 -33
  142. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/200_chapter_document.asciidoc +0 -26
  143. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/900_sources.asciidoc +0 -81
  144. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references.asciidoc +0 -23
  145. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
  146. data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +0 -136
  147. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +0 -60
  148. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +0 -59
  149. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
  150. data/lib/starter_web/pages/public/features/modules.adoc +0 -104
  151. data/lib/starter_web/pages/public/features/platform.adoc +0 -104
  152. data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +0 -60
  153. data/lib/starter_web/pages/public/previewer/_includes/documents/licenses/mit.asciidoc +0 -19
  154. data/lib/starter_web/pages/public/previewer/_includes/documents/readme +0 -0
  155. data/lib/starter_web/pages/public/previewer/_includes/documents/rouge/100_language_examples.asciidoc +0 -119
  156. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +0 -39
  157. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +0 -47
  158. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/120_relative_sizes.asciidoc +0 -47
  159. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/200_rotate.asciidoc +0 -71
  160. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/300_flip.asciidoc +0 -31
  161. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +0 -39
  162. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +0 -61
  163. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +0 -55
  164. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/600_md_color_palette.asciidoc +0 -95
  165. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +0 -95
  166. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +0 -95
  167. data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/200_rouge_attributes.asciidoc +0 -41
  168. data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/300_supported_languages.asciidoc +0 -857
  169. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +0 -47
  170. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +0 -47
  171. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/200_rotate.asciidoc +0 -71
  172. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/300_flip.asciidoc +0 -30
  173. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +0 -31
  174. data/lib/starter_web/pages/public/previewer/iframer.adoc +0 -93
  175. data/lib/starter_web/pages/public/previewer/justified_gallery.html +0 -41
  176. data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +0 -574
  177. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +0 -220
  178. data/lib/starter_web/pages/public/previewer/rouge.adoc +0 -133
  179. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +0 -191
@@ -0,0 +1,97 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/modules/mdiPreviewer/css/previewer.css
4
+ # Provides styles for the MDI Icon Previewer
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2021 Juergen Adams
10
+ #
11
+ # J1 Template is licensed under the MIT License.
12
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
+ # -----------------------------------------------------------------------------
14
+ */
15
+
16
+ .icons {
17
+ //display: none;
18
+ //padding: 0 20px 10px 20px;
19
+ -webkit-column-count: 2;
20
+ -moz-column-count: 2;
21
+ column-count: 2;
22
+ -webkit-column-gap: 2rem;
23
+ -moz-column-gap: 2rem;
24
+ column-gap: 2rem;
25
+ }
26
+
27
+ .icons div {
28
+ line-height: 3rem;
29
+ color: rgba(0, 0, 0, 0.6);
30
+ }
31
+
32
+ .icons div span {
33
+ cursor: pointer;
34
+ font-size: 1rem;
35
+ text-overflow: ellipsis;
36
+ display: inline-block;
37
+ max-width: calc(100% - 90px);
38
+ overflow: hidden;
39
+ vertical-align: middle;
40
+ white-space: nowrap;
41
+ margin-left: .5rem;
42
+ }
43
+
44
+ .icons div code:hover,
45
+ .icons div span:hover,
46
+ .icons div i:hover {
47
+ color: rgba(0, 0, 0, 0.5);
48
+ }
49
+
50
+ .icons div code:hover {
51
+ border-color: #2196F3;
52
+ }
53
+
54
+ .icons div code {
55
+ color: #424242;
56
+ background-color: #E0E0E0;
57
+ border: 1px solid #9E9E9E;
58
+ width: 80px;
59
+ margin-left: 2px;
60
+ margin-right: 4px;
61
+ border-radius: 4px;
62
+ display: inline-block;
63
+ vertical-align: middle;
64
+ text-align: center;
65
+ line-height: 24px;
66
+ cursor: pointer;
67
+ }
68
+
69
+ .icons div i {
70
+ display: inline-block;
71
+ width: 32px;
72
+ height: 24px;
73
+ margin-right: .5rem;
74
+ text-align: center;
75
+ vertical-align: middle;
76
+ cursor: pointer;
77
+ line-height: 24px;
78
+ }
79
+
80
+ .icons .mdi:before {
81
+ font-size: 24px;
82
+ }
83
+
84
+ div.copied {
85
+ position: fixed;
86
+ top: 100px;
87
+ left: 50%;
88
+ width: 300px;
89
+ text-align: center;
90
+ color: #FAFAFA;
91
+ background-color: #2196F3;
92
+ border: 1px solid #0D47A1;
93
+ padding: 10px 15px;
94
+ border-radius: 4px;
95
+ margin-left: -100px;
96
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
97
+ }
@@ -0,0 +1,15 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css
4
+ # Provides styles for the MDI Icon Previewer
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2021 Juergen Adams
10
+ #
11
+ # J1 Template is licensed under the MIT License.
12
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
+ # -----------------------------------------------------------------------------
14
+ */
15
+ .icons{//display:none;//padding:0 20px 10px 20px;-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:2rem;-moz-column-gap:2rem;column-gap:2rem}.icons div{line-height:3rem;color:rgba(0,0,0,0.6)}.icons div span{cursor:pointer;font-size:1rem;text-overflow:ellipsis;display:inline-block;max-width:calc(100% - 90px);overflow:hidden;vertical-align:middle;white-space:nowrap;margin-left:.5rem}.icons div code:hover,.icons div span:hover,.icons div i:hover{color:rgba(0,0,0,0.5)}.icons div code:hover{border-color:#2196f3}.icons div code{color:#424242;background-color:#e0e0e0;border:1px solid #9e9e9e;width:80px;margin-left:2px;margin-right:4px;border-radius:4px;display:inline-block;vertical-align:middle;text-align:center;line-height:24px;cursor:pointer}.icons div i{display:inline-block;width:32px;height:24px;margin-right:.5rem;text-align:center;vertical-align:middle;cursor:pointer;line-height:24px}.icons .mdi:before{font-size:24px}div.copied{position:fixed;top:100px;left:50%;width:300px;text-align:center;color:#fafafa;background-color:#2196f3;border:1px solid #0d47a1;padding:10px 15px;border-radius:4px;margin-left:-100px;box-shadow:0 0 10px rgba(0,0,0,0.2)}
@@ -0,0 +1,125 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/modules/mdilPreviewer/js/previewer.js
4
+ # Provides JS functions for the MDI Icon Previewer
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2021 Juergen Adams
10
+ #
11
+ # J1 Template is licensed under the MIT License.
12
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
+ # -----------------------------------------------------------------------------
14
+ */
15
+ ;(function () {
16
+
17
+ var icons = {};
18
+ var icon_database = '/assets/data/mdil_icons.json';
19
+ var language = document.documentElement.lang;
20
+ var responseText;
21
+
22
+ function load_data_database() {
23
+ // Returns the icon database object
24
+ return $.ajax({
25
+ url: icon_database,
26
+ success: function (data) {
27
+ if (typeof data == 'string') {
28
+ icons = JSON.parse(data);
29
+ }
30
+ if (typeof data == 'object') {
31
+ icons = data;
32
+ }
33
+ }
34
+ })
35
+ };
36
+
37
+ $.when(load_data_database()).done(
38
+ function (load_database_response) {
39
+
40
+ icons.push({
41
+ "name": "blank",
42
+ "codepoint": "F68C"
43
+ });
44
+
45
+ var copyText = function (text) {
46
+ // Popper currently NOT used
47
+ // See: https://github.com/popperjs/popper-core/tree/v1.16.1
48
+ //
49
+ // var reference = document.querySelector("#mdi-icon");
50
+ // var popper = document.querySelector(".my-popper");
51
+
52
+ if (language == 'en') {
53
+ responseText = 'Copied to Clipboard';
54
+ } else if (language == 'de') {
55
+ responseText = 'Kopiert zur Zwischenablage';
56
+ } else {
57
+ responseText = 'Copied to Clipboard';
58
+ }
59
+
60
+ var copyFrom = document.createElement('textarea');
61
+ copyFrom.setAttribute("style", "position:fixed;opacity:0;top:100px;left:100px;");
62
+ copyFrom.value = text;
63
+ document.body.appendChild(copyFrom);
64
+ copyFrom.select();
65
+ document.execCommand('copy');
66
+ var copied = document.createElement('div');
67
+ copied.setAttribute('class', 'copied');
68
+ copied.appendChild(document.createTextNode(responseText));
69
+ document.body.appendChild(copied);
70
+
71
+ // Popper currently NOT used
72
+ // See: https://github.com/popperjs/popper-core/tree/v1.16.1
73
+ //
74
+ // var popperInstance = new Popper(reference, popper, {
75
+ // // popper options here
76
+ // placement: 'right'
77
+ // });
78
+
79
+ setTimeout(function () {
80
+ document.body.removeChild(copyFrom);
81
+ document.body.removeChild(copied);
82
+ }, 1500);
83
+ };
84
+ // Skip info record 0 (j=1) ???
85
+ for (var j=0; j<icons.length; j++) {
86
+ var div = document.createElement('div'),
87
+ i = document.createElement('i');
88
+ div.setAttribute("id", "mdi-icon");
89
+
90
+ i.className = 'mdil mdil-2x mdil-' + icons[j].name;
91
+ div.appendChild(i);
92
+ var code = document.createElement('code');
93
+ code.appendChild(document.createTextNode('#' + icons[j].codepoint));
94
+ div.appendChild(code);
95
+ var span = document.createElement('span');
96
+ //span.appendChild(document.createTextNode('mdi-' + icons[j].name));
97
+ span.appendChild(document.createTextNode(icons[j].name));
98
+ div.appendChild(span);
99
+
100
+ // click on font-icon: copy icon name
101
+ i.onmouseup = (function (icon) {
102
+ return function () {
103
+ copyText(icon.name);
104
+ };
105
+ })(icons[j]);
106
+
107
+ // click on icon-value: copy icon value
108
+ code.onmouseup = (function (icon) {
109
+ return function () {
110
+ copyText('#' + icon.codepoint);
111
+ };
112
+ })(icons[j]);
113
+
114
+ // click on icon-name: copy MDI icon name
115
+ span.onmouseup = (function (icon) {
116
+ return function () {
117
+ copyText('mdil-' + icon.name);
118
+ };
119
+ })(icons[j]);
120
+
121
+ document.getElementById('mdil-icons').appendChild(div);
122
+ }
123
+ });
124
+
125
+ })();
@@ -0,0 +1,15 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
4
+ # Provides JS functions for the MDI Icon Previewer
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2021 Juergen Adams
10
+ #
11
+ # J1 Template is licensed under the MIT License.
12
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
+ # -----------------------------------------------------------------------------
14
+ */
15
+ (function(){var a={};var d="/assets/data/mdil_icons.json";var e=document.documentElement.lang;var b;function c(){return $.ajax({url:d,success:function(f){if(typeof f=="string"){a=JSON.parse(f)}if(typeof f=="object"){a=f}}})}$.when(c()).done(function(l){a.push({name:"blank",codepoint:"F68C"});var m=function(o){if(e=="en"){b="Copied to Clipboard"}else{if(e=="de"){b="Kopiert zur Zwischenablage"}else{b="Copied to Clipboard"}}var j=document.createElement("textarea");j.setAttribute("style","position:fixed;opacity:0;top:100px;left:100px;");j.value=o;document.body.appendChild(j);j.select();document.execCommand("copy");var i=document.createElement("div");i.setAttribute("class","copied");i.appendChild(document.createTextNode(b));document.body.appendChild(i);setTimeout(function(){document.body.removeChild(j);document.body.removeChild(i)},1500)};for(var f=0;f<a.length;f++){var n=document.createElement("div"),g=document.createElement("i");n.setAttribute("id","mdi-icon");g.className="mdil mdil-2x mdil-"+a[f].name;n.appendChild(g);var k=document.createElement("code");k.appendChild(document.createTextNode("#"+a[f].codepoint));n.appendChild(k);var h=document.createElement("span");h.appendChild(document.createTextNode(a[f].name));n.appendChild(h);g.onmouseup=(function(i){return function(){m(i.name)}})(a[f]);k.onmouseup=(function(i){return function(){m("#"+i.codepoint)}})(a[f]);h.onmouseup=(function(i){return function(){m("mdil-"+i.name)}})(a[f]);document.getElementById("mdil-icons").appendChild(n)}})})();
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/mmenu_light/css/theme/uno.js
3
+ # ~/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css
4
4
  # Tablesaw v3.1.2 Theme for J1 Template
5
5
  #
6
6
  # Product/Info:
@@ -157,8 +157,8 @@ $breakpoint-xs: 575px;
157
157
  .tablesaw-stack tbody td,
158
158
  .tablesaw-stack tbody th {
159
159
  display: block;
160
- /* float: left; */
161
- /* clear: left; */
160
+ /* float: left;
161
+ clear: left; */
162
162
  width: 100%;
163
163
  }
164
164
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/mmenu_light/css/theme/uno.js
3
+ # ~/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css
4
4
  # Tablesaw v3.1.2 Theme for J1 Template
5
5
  #
6
6
  # Product/Info:
@@ -16,176 +16,4 @@
16
16
  # See: https://github.com/filamentgroup/tablesaw/blob/master/LICENSE
17
17
  # -----------------------------------------------------------------------------
18
18
  */
19
-
20
- /*
21
- // BS4 media breakpoints
22
- // -----------------------------------------------------------------------------
23
- $breakpoint-xl: 1200px;
24
- $breakpoint-lg: 992px;
25
- $breakpoint-md: 768px;
26
- $breakpoint-sm: 576px;
27
- $breakpoint-xs: 575px;
28
- */
29
-
30
- .tablesaw {
31
- width: 100%;
32
- max-width: 100%;
33
- empty-cells: show;
34
- border-collapse: collapse;
35
- /* border: 0; */
36
- /* padding: 0; */
37
- }
38
-
39
- .tablesaw * {
40
- box-sizing: border-box;
41
- }
42
-
43
- .tablesaw-stack td .tablesaw-cell-label,
44
- .tablesaw-stack th .tablesaw-cell-label {
45
- display: none;
46
- }
47
-
48
- /* Mobile first styles: Begin with the stacked presentation at narrow widths */
49
-
50
- /* Support note IE9+: @media only all */
51
-
52
- /* Media query to show as a standard table at 560px (35em x 16px) or wider */
53
-
54
-
55
- /* All Media screens
56
- -------------------------------------------------------------------------------- */
57
- @media all {
58
- /* Show the table cells as a block level element */
59
-
60
- .tablesaw-stack {
61
- clear: both;
62
- }
63
-
64
- .tablesaw-stack td,
65
- .tablesaw-stack th {
66
- text-align: left;
67
- display: block;
68
- }
69
-
70
- .tablesaw-stack tr {
71
- clear: both;
72
- display: table-row;
73
- }
74
-
75
- /* Make the label elements a percentage width */
76
-
77
- .tablesaw-stack td .tablesaw-cell-label,
78
- .tablesaw-stack th .tablesaw-cell-label {
79
- display: inline-block;
80
- /* padding: 0 .6em 0 0; */
81
- /* width: 30%; */
82
- width: 20%;
83
- }
84
-
85
- /* For grouped headers, have a different style to visually
86
- separate the levels by classing the first label in each
87
- col group
88
- */
89
-
90
- .tablesaw-stack th .tablesaw-cell-label-top,
91
- .tablesaw-stack td .tablesaw-cell-label-top {
92
- display: block;
93
- padding: .4em 0;
94
- margin: .4em 0;
95
- }
96
-
97
- .tablesaw-cell-label {
98
- display: block;
99
- }
100
-
101
- /* Avoid double strokes when stacked */
102
-
103
- .tablesaw-stack tbody th.group {
104
- margin-top: -1px;
105
- }
106
-
107
- /* Avoid double strokes when stacked */
108
-
109
- .tablesaw-stack th.group b.tablesaw-cell-label {
110
- display: none !important;
111
- }
112
- }
113
-
114
- /* Desktop
115
- @media (min-width: 40em) $grid-breakpoint-lg
116
- -------------------------------------------------------------------------------- */
117
- @media screen and (min-width: 992px) {
118
- .tablesaw-stack tr {
119
- display: table-row;
120
- }
121
-
122
- /* Show the table header rows */
123
-
124
- .tablesaw-stack td,
125
- .tablesaw-stack th,
126
- .tablesaw-stack thead td,
127
- .tablesaw-stack thead th {
128
- display: table-cell;
129
- margin: 0;
130
- }
131
-
132
- /* Hide the labels in each cell */
133
-
134
- .tablesaw-stack td .tablesaw-cell-label,
135
- .tablesaw-stack th .tablesaw-cell-label {
136
- display: none !important;
137
- }
138
- }
139
-
140
- /* Mobile
141
- @media (max-width: 39.9375em) {
142
- -------------------------------------------------------------------------------- */
143
- @media screen and (max-width: 992px) {
144
- /* Table rows have a gray bottom stroke by default */
145
-
146
- .tablesaw-stack tbody tr {
147
- display: block;
148
- width: 100%;
149
- /* border-bottom: 1px solid #dfdfdf; */
150
- }
151
-
152
- .tablesaw-stack thead td,
153
- .tablesaw-stack thead th {
154
- display: none;
155
- }
156
-
157
- .tablesaw-stack tbody td,
158
- .tablesaw-stack tbody th {
159
- display: block;
160
- /* float: left; */
161
- /* clear: left; */
162
- width: 100%;
163
- }
164
-
165
- /* jadams, 2020-09-15: */
166
- .tablesaw-cell-label {
167
- vertical-align: top;
168
- font-weight: 700 !important;
169
- }
170
-
171
- /* jadams, 2020-09-65: changed max-width: 67% */
172
- .tablesaw-cell-content {
173
- display: inline-block;
174
- margin-left: .5rem;
175
- max-width: 100%;
176
- min-width: 100%; /* is to calculated for firefox */
177
- }
178
-
179
- .tablesaw-stack .tablesaw-stack-block .tablesaw-cell-label,
180
- .tablesaw-stack .tablesaw-stack-block .tablesaw-cell-content {
181
- display: block;
182
- width: 100%;
183
- max-width: 100%;
184
- padding: 0;
185
- }
186
-
187
- .tablesaw-stack td:empty,
188
- .tablesaw-stack th:empty {
189
- display: none;
190
- }
191
- }
19
+ .tablesaw{width:100%;max-width:100%;empty-cells:show;border-collapse:collapse}.tablesaw *{box-sizing:border-box}.tablesaw-stack td .tablesaw-cell-label,.tablesaw-stack th .tablesaw-cell-label{display:none}@media all{.tablesaw-stack{clear:both}.tablesaw-stack td,.tablesaw-stack th{text-align:left;display:block}.tablesaw-stack tr{clear:both;display:table-row}.tablesaw-stack td .tablesaw-cell-label,.tablesaw-stack th .tablesaw-cell-label{display:inline-block;width:20%}.tablesaw-stack th .tablesaw-cell-label-top,.tablesaw-stack td .tablesaw-cell-label-top{display:block;padding:.4em 0;margin:.4em 0}.tablesaw-cell-label{display:block}.tablesaw-stack tbody th.group{margin-top:-1px}.tablesaw-stack th.group b.tablesaw-cell-label{display:none!important}}@media screen and (min-width:992px){.tablesaw-stack tr{display:table-row}.tablesaw-stack td,.tablesaw-stack th,.tablesaw-stack thead td,.tablesaw-stack thead th{display:table-cell;margin:0}.tablesaw-stack td .tablesaw-cell-label,.tablesaw-stack th .tablesaw-cell-label{display:none!important}}@media screen and (max-width:992px){.tablesaw-stack tbody tr{display:block;width:100%}.tablesaw-stack thead td,.tablesaw-stack thead th{display:none}.tablesaw-stack tbody td,.tablesaw-stack tbody th{display:block;width:100%}.tablesaw-cell-label{vertical-align:top;font-weight:700!important}.tablesaw-cell-content{display:inline-block;margin-left:.5rem;max-width:100%;min-width:100%}.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-label,.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-content{display:block;width:100%;max-width:100%;padding:0}.tablesaw-stack td:empty,.tablesaw-stack th:empty{display:none}}
@@ -1,26 +1,22 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/mmenu_light/js/mmenu.js
4
- # Tablesaw v3.1.2 implementation for J1 Template
3
+ # ~/assets/themes/j1/modules/rtable/js/rtable.js
4
+ # Tablesaw v3.1.2 implementation for J1 Template
5
5
  #
6
- # Product/Info:
7
- # https://jekyll.one
8
- # https://github.com/filamentgroup/tablesaw
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ # https://github.com/filamentgroup/tablesaw
9
9
  #
10
- # Copyright (C) 2021 Juergen Adams
11
- # Copyright (c) 2013 Filament Group
10
+ # Copyright (C) 2021 Juergen Adams
11
+ # Copyright (c) 2013 Filament Group
12
12
  #
13
- # J1 Template is licensed under the MIT License.
14
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
15
- # Tablesaw is licensed under the MIT License.
16
- # See: https://github.com/filamentgroup/tablesaw/blob/master/LICENSE
13
+ # J1 Template is licensed under the MIT License.
14
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
15
+ # Tablesaw is licensed under the MIT License.
16
+ # See: https://github.com/filamentgroup/tablesaw/blob/master/LICENSE
17
17
  # -----------------------------------------------------------------------------
18
18
  */
19
19
 
20
- /*! Tablesaw - v3.1.2 - 2019-03-19
21
- * https://github.com/filamentgroup/tablesaw
22
- * Copyright (c) 2019 Filament Group; Licensed MIT */
23
-
24
20
  (function (root, factory) {
25
21
  if (typeof define === 'function' && define.amd) {
26
22
  define(["jquery"], function (jQuery) {
@@ -76,26 +72,34 @@
76
72
  (!window.blackberry || window.WebKitPoint) && // only WebKit Blackberry (OS 6+)
77
73
  !window.operamini,
78
74
  $: $,
79
- _init: function(element) {
75
+ _init: function(element, options) {
80
76
  Tablesaw.$(element || document).trigger("enhance.tablesaw");
77
+ Tablesaw.options = options;
81
78
  },
82
- init: function(element) {
79
+
80
+ // -------------------------------------------------------------------------
81
+ // initializer
82
+ // -------------------------------------------------------------------------
83
+ init: function(element, options) {
83
84
  // Account for Tablesaw being loaded either before or after the DOMContentLoaded event is fired.
84
85
  domContentLoadedTriggered =
85
86
  domContentLoadedTriggered || /complete|loaded/.test(document.readyState);
86
87
  if (!domContentLoadedTriggered) {
87
88
  if ("addEventListener" in document) {
88
- // Use raw DOMContentLoaded instead of shoestring (may have issues in Android 2.3, exhibited by stack table)
89
+ // Use raw DOMContentLoaded instead of Tablesaw (may have issues in Android 2.3, exhibited by stack table)
89
90
  document.addEventListener("DOMContentLoaded", function() {
90
- Tablesaw._init(element);
91
+ Tablesaw._init(element, options);
91
92
  });
92
93
  }
93
94
  } else {
94
- Tablesaw._init(element);
95
+ Tablesaw._init(element, options);
95
96
  }
96
97
  }
97
98
  };
98
99
 
100
+ // ---------------------------------------------------------------------------
101
+ // event handler
102
+ // ---------------------------------------------------------------------------
99
103
  $(document).on("enhance.tablesaw", function() {
100
104
 
101
105
  // Extend i18n config, if one exists.
@@ -110,10 +114,16 @@
110
114
  ];
111
115
  });
112
116
 
117
+ // ---------------------------------------------------------------------------
118
+ // enhance ???
119
+ // ---------------------------------------------------------------------------
113
120
  if (Tablesaw.mustard) {
114
121
  $(document.documentElement).addClass("tablesaw-enhanced");
115
122
  }
116
123
 
124
+ // -------------------------------------------------------------------------
125
+ // plugin
126
+ // -------------------------------------------------------------------------
117
127
  (function() {
118
128
  var pluginName = "tablesaw";
119
129
  var classes = {
@@ -125,16 +135,18 @@
125
135
  refresh: "tablesawrefresh",
126
136
  resize: "tablesawresize"
127
137
  };
128
- var defaultMode = "stack";
129
- var initSelector = "table";
130
- var initFilterSelector = "[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]";
131
- var defaultConfig = {};
138
+ var defaultMode = "stack";
139
+ var initSelector = "table";
140
+ var initFilterSelector = "[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]";
141
+ var defaultConfig = {};
142
+ var logger = log4javascript.getLogger('j1.rtable');
132
143
 
133
144
  Tablesaw.events = events;
134
145
 
135
146
  var Table = function(element) {
136
147
  if (!element) {
137
148
  throw new Error("Tablesaw requires an element.");
149
+ logger.error("Tablesaw requires an element.");
138
150
  }
139
151
 
140
152
  this.table = element;
@@ -182,7 +194,7 @@
182
194
  };
183
195
 
184
196
  Table.prototype.getConfig = function(pluginSpecificConfig) {
185
- // shoestring extend doesn’t support arbitrary args
197
+ // Tablesaw extend doesn’t support arbitrary args
186
198
  var configs = $.extend(defaultConfig, pluginSpecificConfig || {});
187
199
  return $.extend(configs, typeof TablesawConfig !== "undefined" ? TablesawConfig : {});
188
200
  };
@@ -548,12 +560,34 @@
548
560
 
549
561
  var resizeTimeout;
550
562
  $(window).on("resize", function() {
563
+ var winWidth;
564
+ $('table').each(function() {
565
+ var curTable = $(this);
566
+ var log_text;
567
+
568
+ if ($(curTable).hasClass('rtable')) {
569
+ winWidth = $(window).width();
570
+ // set show/hide all table/colgroup elements
571
+ //
572
+ if ($(window).width() < Tablesaw.options.breakpoint) {
573
+ log_text = '\n' + 'hide colgroups: ' + curTable.attr('id')
574
+ curTable.find('colgroup').hide();
575
+ logger.debug(log_text);
576
+ } else {
577
+ log_text = '\n' + 'show colgroup: ' + curTable.attr('id')
578
+ curTable.find('colgroup').show();
579
+ logger.debug(log_text);
580
+ }
581
+ }
582
+ });
583
+
551
584
  if (!isScrolling) {
552
585
  window.clearTimeout(resizeTimeout);
553
586
  resizeTimeout = window.setTimeout(function() {
554
587
  $doc.trigger(events.resize);
555
588
  }, 150); // must be less than the scrolling timeout above.
556
589
  }
590
+
557
591
  });
558
592
 
559
593
  Tablesaw.Table = Table;