j1-template 2022.5.1 → 2022.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  3. data/assets/data/banner.html +2 -2
  4. data/assets/data/panel.html +4 -4
  5. data/assets/themes/j1/adapter/js/attic.js +19 -2
  6. data/assets/themes/j1/adapter/js/rtable.js +68 -5
  7. data/assets/themes/j1/adapter/js/scroller.js +7 -0
  8. data/assets/themes/j1/core/css/vendor.css +5 -6
  9. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  10. data/assets/themes/j1/core/js/template.js +2 -1
  11. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  12. data/assets/themes/j1/modules/jquery/js/extensions/hasClass.js +20 -0
  13. data/assets/themes/j1/modules/jquery/js/extensions/removeClass.js +24 -0
  14. data/assets/themes/j1/modules/rtable/js/rtable.js +22 -16
  15. data/assets/themes/j1/modules/rtable/js/rtable.min.js +1 -1
  16. data/assets/themes/j1/modules/themeSwitcher/LICENSE +21 -21
  17. data/assets/themes/j1/modules/themeSwitcher/README.md +166 -166
  18. data/lib/j1/commands/app.rb +36 -0
  19. data/lib/j1/commands/generate.rb +1 -1
  20. data/lib/j1/commands/patch.rb +1 -1
  21. data/lib/j1/commands/rebuild.rb +1 -1
  22. data/lib/j1/commands/reset.rb +1 -1
  23. data/lib/j1/commands/setup.rb +1 -1
  24. data/lib/j1/commands/site.rb +1 -1
  25. data/lib/j1/version.rb +1 -1
  26. data/lib/j1_app.rb +1 -1
  27. data/lib/starter_web/Gemfile +1 -1
  28. data/lib/starter_web/README.md +5 -5
  29. data/lib/starter_web/_config.yml +1 -1
  30. data/lib/starter_web/_data/asciidoc2pdf/images/cover/readme +39 -0
  31. data/lib/starter_web/_data/asciidoc2pdf/themes/base-theme.yml +113 -117
  32. data/lib/starter_web/_data/asciidoc2pdf/themes/default-for-print-theme.yml +25 -24
  33. data/lib/starter_web/_data/asciidoc2pdf/themes/default-for-print-with-fallback-font-theme.yml +1 -0
  34. data/lib/starter_web/_data/asciidoc2pdf/themes/default-theme.yml +215 -212
  35. data/lib/starter_web/_data/asciidoc2pdf/themes/default-with-fallback-font-theme.yml +9 -5
  36. data/lib/starter_web/_data/asciidoc2pdf/themes/j1-theme.yml +24 -5
  37. data/lib/starter_web/_data/blocks/banner.yml +1 -1
  38. data/lib/starter_web/_data/modules/defaults/rtable.yml +12 -1
  39. data/lib/starter_web/_data/puma/config.rb +3 -0
  40. data/lib/starter_web/_data/resources.yml +4 -2
  41. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  42. data/lib/starter_web/assets/images/banner/1280x600/lunr.jpg +0 -0
  43. data/lib/starter_web/assets/images/{modules/attics/banner/library-1920x800-bw.jpg → banner/1920x800/library.jpg} +0 -0
  44. data/lib/starter_web/assets/images/banner/scalable/readme +0 -0
  45. data/lib/starter_web/assets/images/modules/attics/1920x1280/{ev.jpg → _ev.jpg} +0 -0
  46. data/lib/starter_web/assets/images/modules/attics/1920x1280/_guillaume-bolduc.jpg +0 -0
  47. data/lib/starter_web/assets/images/modules/attics/1920x1280/crawford-jolly.jpg +0 -0
  48. data/lib/starter_web/assets/images/modules/attics/1920x1280/josh-liu.jpg +0 -0
  49. data/lib/starter_web/assets/images/modules/attics/1920x1280/kristopher-roller.jpg +0 -0
  50. data/lib/starter_web/assets/images/modules/attics/1920x1280/moritz-kindler.jpg +0 -0
  51. data/lib/starter_web/assets/images/modules/attics/1920x1280/nasa.jpg +0 -0
  52. data/lib/starter_web/assets/images/modules/attics/{alexander-redl.jpg → _alexander-redl.jpg} +0 -0
  53. data/lib/starter_web/assets/images/modules/attics/{alexander-shatov-1920x1280.jpg → _alexander-shatov-1920x1280.jpg} +0 -0
  54. data/lib/starter_web/assets/images/modules/attics/{annie-spratt-1920x1280.jpg → _annie-spratt-1920x1280.jpg} +0 -0
  55. data/lib/starter_web/assets/images/modules/attics/{antonino-visalli-1920x1280.jpg → _antonino-visalli-1920x1280.jpg} +0 -0
  56. data/lib/starter_web/assets/images/modules/attics/{christa-dodoo-1920x1280.jpg → _christa-dodoo-1920x1280.jpg} +0 -0
  57. data/lib/starter_web/assets/images/modules/attics/{guillaume-bolduc-1920x1280.jpg → _guillaume-bolduc-1920x1280.jpg} +0 -0
  58. data/lib/starter_web/assets/images/modules/attics/{harpal-singh.jpg → _harpal-singh.jpg} +0 -0
  59. data/lib/starter_web/assets/images/modules/attics/{humble-lamb-1920x1280.jpg → _humble-lamb-1920x1280.jpg} +0 -0
  60. data/lib/starter_web/assets/images/modules/attics/{john-schnobrich-2-1920x1280.jpg → _john-schnobrich-2-1920x1280.jpg} +0 -0
  61. data/lib/starter_web/assets/images/modules/attics/{kirklai-1920x1280.jpg → _kirklai-1920x1280.jpg} +0 -0
  62. data/lib/starter_web/assets/images/modules/attics/{romain-vignes-1920x1280.jpg → _romain-vignes-1920x1280.jpg} +0 -0
  63. data/lib/starter_web/assets/images/modules/attics/{runner-1920x1200.jpg → _runner-1920x1200.jpg} +0 -0
  64. data/lib/starter_web/assets/images/modules/attics/{spacex-1920x1280.jpg → _spacex-1920x1280.jpg} +0 -0
  65. data/lib/starter_web/assets/images/modules/attics/_vladislav-klapin-1920x1280.jpg +0 -0
  66. data/lib/starter_web/assets/images/modules/attics/{wrongtog-1920x1280.jpg → _wrongtog-1920x1280.jpg} +0 -0
  67. data/lib/starter_web/assets/images/modules/attics/{building-blocks-1920x1280-bw.jpg → building-blocks-1920x1280.jpg} +0 -0
  68. data/lib/starter_web/assets/images/modules/attics/lunr-1280x800.jpg +0 -0
  69. data/lib/starter_web/assets/images/modules/attics/{shubham-dhage-2-1920x1280.jpg → shubham-dhage-1920x1280.jpg} +0 -0
  70. data/lib/starter_web/assets/images/modules/attics/vladislav-klapin-1920x1280.jpg +0 -0
  71. data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-01-about-j1.adoc +2 -2
  72. data/lib/starter_web/index.html +23 -18
  73. data/lib/starter_web/package.json +5 -4
  74. data/lib/starter_web/pages/public/about/features.adoc +9 -4
  75. data/lib/starter_web/pages/public/about/reporting_issues.adoc +9 -5
  76. data/lib/starter_web/pages/public/about/site.adoc +8 -2
  77. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +5 -3
  78. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +3 -0
  79. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +3 -0
  80. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/attributes.asciidoc +2 -1
  81. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/{100_converter/000_basic_example.asciidoc → 000_examples/basic_example.asciidoc} +1 -0
  82. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +20 -11
  83. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +76 -24
  84. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/211_language_overview.asciidoc +33 -29
  85. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +67 -88
  86. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/213_fonts.asciidoc +40 -39
  87. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/images/readme +1 -0
  88. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/tables/math_expressions.asciidoc +19 -0
  89. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/tables/measurement_units.asciidoc +22 -0
  90. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +20 -5
  91. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +5 -325
  92. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +3 -134
  93. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/images/readme +1 -0
  94. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/tables/build_command_options.asciidoc +72 -0
  95. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/tables/files_and_folders.asciidoc +66 -0
  96. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/tables/global_configuration_options.asciidoc +63 -0
  97. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/tables/global_variables.asciidoc +26 -0
  98. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/tables/page_variables.asciidoc +54 -0
  99. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/tables/serve_command_options.asciidoc +45 -0
  100. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/tables/site_variables.asciidoc +59 -0
  101. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +21 -7
  102. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +124 -122
  103. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +3 -3
  104. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +3 -3
  105. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +3 -3
  106. data/lib/starter_web/pages/public/blog/navigator/archive.html +3 -3
  107. data/lib/starter_web/pages/public/blog/navigator/index.html +3 -3
  108. data/lib/starter_web/pages/public/features/general.adoc +4 -4
  109. data/lib/starter_web/pages/public/features/template.adoc +1 -2
  110. data/lib/starter_web/pages/public/learn/quickstart.adoc +2 -2
  111. data/lib/starter_web/pages/public/learn/roundtrip/{400_asciidoc_extensions.adoc → asciidoc_extensions.adoc} +2 -2
  112. data/lib/starter_web/pages/public/learn/roundtrip/{410_bs_modals_extentions.adoc → bs_modals_extentions.adoc} +2 -2
  113. data/lib/starter_web/pages/public/learn/roundtrip/{300_icon_fonts.adoc → icon_fonts.adoc} +1 -2
  114. data/lib/starter_web/pages/public/learn/roundtrip/{100_present_images.adoc → present_images.adoc} +10 -10
  115. data/lib/starter_web/pages/public/learn/roundtrip/{100_present_videos.adoc → present_videos.adoc} +0 -0
  116. data/lib/starter_web/pages/public/learn/roundtrip/{600_quicksearch.adoc → quicksearch.adoc} +6 -7
  117. data/lib/starter_web/pages/public/learn/roundtrip/{420_responsive_tables_extensions.adoc → responsive_tables_extensions.adoc} +86 -73
  118. data/lib/starter_web/pages/public/learn/roundtrip/{500_themes.adoc → themes.adoc} +2 -2
  119. data/lib/starter_web/pages/public/learn/roundtrip/{200_typography.adoc → typography.adoc} +6 -6
  120. data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -2
  121. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +3 -2
  122. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +3 -2
  123. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +3 -2
  124. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +3 -2
  125. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -2
  126. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -2
  127. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +3 -2
  128. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +3 -2
  129. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +2 -2
  130. data/lib/starter_web/pages/public/plans/plans.adoc +2 -2
  131. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +5 -5
  132. data/lib/starter_web/pages/public/se/se-fake.adoc +2 -2
  133. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  134. data/lib/starter_web/utilsrv/package.json +1 -1
  135. metadata +56 -38
  136. data/lib/starter_web/assets/images/modules/attics/1920x1280/ben-kolde.jpg +0 -0
  137. data/lib/starter_web/assets/images/modules/attics/1920x1280/braden-collum.jpg +0 -0
  138. data/lib/starter_web/assets/images/modules/attics/1920x1280/firmbee-com.jpg +0 -0
  139. data/lib/starter_web/assets/images/modules/attics/1920x1280/max-harlynking.jpg +0 -0
  140. data/lib/starter_web/assets/images/modules/attics/banner/admin-dashboard-bootstrap-1280x800-bw.jpg +0 -0
  141. data/lib/starter_web/assets/images/modules/attics/banner/lunr-banner-1280x800.jpg +0 -0
  142. data/lib/starter_web/assets/images/modules/attics/franck-1920x12800.jpg +0 -0
  143. data/lib/starter_web/assets/images/modules/attics/vladislav-klapin-2-1920x1280.jpg +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ef4b1dbda764736d62ba61752746e3556f0ca171bff05f9b1964824b675b2f1
4
- data.tar.gz: b397b53c6f6d548bfe8206e78db1ae33bdd012d17b152bceb5fba4fa240e9e89
3
+ metadata.gz: 7d455e9fdd1e59d98fdb354bd5e6056fd54efb4061cfb8cac3b91400ed31d2a5
4
+ data.tar.gz: '0558b90d629f07dafa8befe632c35154eabd050917adb61c80d649a583c9614c'
5
5
  SHA512:
6
- metadata.gz: b217e14299dc897f28674e66cb1ac8105e2568ada1387531f66071855730c8e54126131257b888c30bad3f58275007e1403f01fa112219f52a7eb849091b9ff8
7
- data.tar.gz: 438f464c775ae27d0b55ca42e978dd7e8a14c87fc8484094568cc09a1ded533a9dd45eb3f9edbb34f644702b38691393164ee66657003d9a5517979e6c3c9159
6
+ metadata.gz: a1815e3964b482258219eaa372b888151a69fac49560f6028c2279c037a6fbaf31f889c9d834140be6c95f40f029095f2b66309216cd4afedbf9352353a68556
7
+ data.tar.gz: cf60af891ad3ccc1aa6ce6160c22456a9ecff4ed8e916d0da6a8b955deaa9d1b94342213269b6acab0db56b262d47ae4edded43099799a6919737e9d4db34afe
@@ -139,7 +139,7 @@ NO need to load this again
139
139
  ------------------------------------------------------------------ {% endcomment %}
140
140
  {% if frontmatter_options %}
141
141
  // [INFO ] [j1.layout.module_writer.proc ] [ pass module specific frontmatter options for: {{resource_settings.id}} ]
142
- {% capture frontmatter_options %}{{frontmatter_options}}, {"layout": "{{page.layout}}", "scrollbar": "{{page.scrollbar}}", "toc": "{{page.toc}}", "comments": "{{page.comments}}"}{% endcapture %}
142
+ {% capture frontmatter_options %}{{frontmatter_options}}, {"layout": "{{page.layout}}", "title": "{{page.title}}", "tagline": "{{page.tagline}}", "scrollbar": "{{page.scrollbar}}", "toc": "{{page.toc}}", "comments": "{{page.comments}}"}{% endcapture %}
143
143
  var settings = $.extend({}, {{frontmatter_options}});
144
144
 
145
145
  {% comment %} create resource_settings.dependencies (if any)
@@ -234,8 +234,8 @@ exclude_from_search: true
234
234
  <img
235
235
  class="sticker-image"
236
236
  src="/assets/images/sticker/600x600/sticker-new-version.png"
237
- alt="Get new version 2022.5.1"
238
- title="Get new version 2022.5.1"
237
+ alt="Get new version 2022.5.2"
238
+ title="Get new version 2022.5.2"
239
239
  style="width: 140px; height: 120px;"
240
240
  >
241
241
  </a>
@@ -693,10 +693,10 @@ exclude_from_search: true
693
693
  <li id="{{panel_settings.id}}-scroll-item" class="scroll-group-item items-{{cards_per_row}} p-0">
694
694
  <article class="card card-same-height raised-z3 mb-5">
695
695
  {% if post.image %}
696
- <img class="img-fluid img-object--cover g-height-200" src="{{post.image}}" alt="{{post.title}}">
696
+ <img class="img-fluid img-object--cover g-height-200" src="{{post.image}}" alt="{{post.title}}" style="filter: grayscale(1) contrast(1) brightness(1);">
697
697
  {% assign post_width = '80x' %}
698
698
  {% else %}
699
- <img class="mt-2" src="" alt="">
699
+ <img class="mt-2" src="" alt="" style="filter: grayscale(1) contrast(1) brightness(1);">
700
700
  {% assign post_width = '100x' %}
701
701
  {% endif %}
702
702
  <h3 class="card-header bg-primary notoc notranslate">{{post.title}}</h3>
@@ -756,10 +756,10 @@ exclude_from_search: true
756
756
  <!-- Posts -->
757
757
  <article class="card raised-z3 mb-3">
758
758
  {% if post.image %}
759
- <img class="img-fluid img-object--cover g-height-200" src="{{post.image}}" alt="{{post.title}}">
759
+ <img class="img-fluid img-object--cover g-height-200" src="{{post.image}}" alt="{{post.title}}" style="filter: grayscale(1) contrast(1) brightness(1);">
760
760
  {% assign post_width = '80x' %}
761
761
  {% else %}
762
- <img class="mt-2" src="" alt="">
762
+ <img class="mt-2" src="" alt="" style="filter: grayscale(1) contrast(1) brightness(1);">
763
763
  {% assign post_width = '100x' %}
764
764
  {% endif %}
765
765
  <h3 class="card-header bg-primary notoc">{{post.title}}</h3>
@@ -256,6 +256,18 @@ j1.adapter.attic = (function (j1, window) {
256
256
  var frontmatterOptions = _this.frontmatterOptions;
257
257
  var textOverlayHTML;
258
258
 
259
+ // apply DEFAULT settings for textOverlayTitle|textOverlayTagline
260
+ // on the FIRST backstretch instance if title|tagline NOT set
261
+ //
262
+ if (index == 0) {
263
+ if (typeof instance.images[index].title == 'undefined') {
264
+ textOverlayTitle = frontmatterOptions.title;
265
+ }
266
+ if (typeof instance.images[index].tagline == 'undefined') {
267
+ textOverlayTagline = frontmatterOptions.tagline;
268
+ }
269
+ }
270
+
259
271
  if (typeof instance.images[index].badge != 'undefined') {
260
272
  var bType = instance.images[index].badge.type;
261
273
  var bAuthor = instance.images[index].badge.author;
@@ -314,8 +326,13 @@ j1.adapter.attic = (function (j1, window) {
314
326
 
315
327
  $('.textOverlay').show();
316
328
  $('.textOverlay').css('opacity', '1');
317
- $('.attic-caption').show();
318
- $('.attic-caption').css('opacity', '1');
329
+
330
+ // jadams, 2022-08-19: show a badge only if defined
331
+ //
332
+ if (typeof instance.images[index].badge != 'undefined') {
333
+ $('.attic-caption').show();
334
+ $('.attic-caption').css('opacity', '1');
335
+ }
319
336
 
320
337
  // jadams, 2022-08-09:
321
338
  // resize the (background-)image to make sure the 'attic'
@@ -110,6 +110,16 @@ j1.adapter.rtable = (function (j1, window) {
110
110
  generated: '{{site.time}}'
111
111
  }, options);
112
112
 
113
+ var bsMediaBreakpoints = {
114
+ xs: 575,
115
+ sm: 576,
116
+ md: 768,
117
+ lg: 992,
118
+ xl: 1200
119
+ };
120
+
121
+ var breakpoint;
122
+
113
123
  // -----------------------------------------------------------------------
114
124
  // Global variable settings
115
125
  // -----------------------------------------------------------------------
@@ -147,15 +157,30 @@ j1.adapter.rtable = (function (j1, window) {
147
157
  var log_text;
148
158
  // jadams, 2020-09-16: class 'rtable' indicate use of 'tablesaw'
149
159
  if ($(curTable).hasClass('rtable')) {
150
- // jadams, 2020-09-16: add needed CSS class/attribute for tablesaw
160
+ // add needed CSS class/attribute for tablesaw
161
+ $(curTable).addClass('table');
151
162
  $(curTable).addClass('tablesaw');
152
- $(curTable).attr('data-tablesaw-mode','stack');
163
+ $(curTable).attr('data-tablesaw-mode', moduleOptions.rtable.mode);
164
+
165
+ // Advanced mode NOT supported (mode stack only)
166
+ //
167
+ // $(curTable).attr('data-tablesaw-sortable', '');
168
+ // $(curTable).attr('data-tablesaw-sortable-switch', '');
169
+ // $(curTable).attr('data-tablesaw-minimap', '');
170
+ // $(curTable).attr('data-tablesaw-mode-switch', '');
153
171
 
154
- Tablesaw.init(curTable, moduleOptions);
172
+ Tablesaw.init(curTable, {
173
+ breakpoint: moduleOptions.rtable.breakpoint
174
+ });
155
175
 
156
176
  // set initial state for all table/colgroup elements
157
177
  //
158
- if ($(window).width() < moduleOptions.breakpoint) {
178
+ breakpoint = bsMediaBreakpoints[moduleOptions.rtable.breakpoint];
179
+ if (! breakpoint) {
180
+ breakpoint = bsMediaBreakpoints['lg'];
181
+ }
182
+
183
+ if ($(window).width() < breakpoint) {
159
184
  log_text = '\n' + 'hide colgroups: ' + curTable.attr('id')
160
185
  curTable.find('colgroup').hide();
161
186
  logger.debug(log_text);
@@ -165,6 +190,44 @@ j1.adapter.rtable = (function (j1, window) {
165
190
  logger.debug(log_text);
166
191
  }
167
192
  } // END if hasClass 'rtable'
193
+
194
+ // add needed div element needed for BS to move the table found
195
+ // for BS responsiveness
196
+ //
197
+ if ($(curTable).hasClass(/table-responsive/)) {
198
+ // see: https://stackoverflow.com/questions/2596833/how-to-move-child-element-from-one-parent-to-another-using-jquery
199
+ // see: https://github.com/NV/jquery-regexp-classes
200
+ //
201
+ const re = /table-responsive[-]*\w*/;
202
+ const myID = 'b-table-' + Math.floor(Math.random() * 10000) + 1;
203
+ var myClasses = $(curTable).attr("class");
204
+ var responsiveClassFound = myClasses.match(re);
205
+ var responsiveClass;
206
+
207
+ if (responsiveClassFound) {
208
+ responsiveClass = responsiveClassFound[0];
209
+ } else {
210
+ // failsafe
211
+ log_text = '\n' + 'no matching responsive class found';
212
+ logger.warn(log_text);
213
+ }
214
+
215
+ // remove responsive class from the table
216
+ //
217
+ $(curTable).removeClass(/table-responsive[-]*\w+/);
218
+ $(curTable).addClass('table');
219
+
220
+ // add needed div element needed for BS
221
+ //
222
+ jQuery('<div>', {
223
+ id: myID,
224
+ class: responsiveClass
225
+ }).insertBefore($(curTable));
226
+
227
+ // move the table found for BS responsiveness
228
+ //
229
+ $('#' + myID ).append($(curTable));
230
+ } // END if hasClass 'table-responsive'
168
231
  });
169
232
 
170
233
  _this.setState('finished');
@@ -177,7 +240,7 @@ j1.adapter.rtable = (function (j1, window) {
177
240
  }, // END init
178
241
 
179
242
  // -------------------------------------------------------------------------
180
- // messageHandler: MessageHandler for J1 CookieConsent module
243
+ // messageHandler:
181
244
  // Manage messages send from other J1 modules
182
245
  // -------------------------------------------------------------------------
183
246
  messageHandler: function (sender, message) {
@@ -89,6 +89,13 @@ var logger;
89
89
  var logText;
90
90
  var lastPageInfo;
91
91
 
92
+ // var platform_name = platform.name;
93
+ // var platform_version = platform.version;
94
+ // var platform_layout = platform.layout;
95
+ // var platform_os = platform.os;
96
+ // var platform_description = platform.description;
97
+
98
+
92
99
  // ---------------------------------------------------------------------------
93
100
  // Main object
94
101
  // ---------------------------------------------------------------------------
@@ -58,19 +58,19 @@ pre code {
58
58
  background-color: transparent; }
59
59
 
60
60
  h2, .h2 {
61
- font-size: 200%;
61
+ font-size: 200% !important;
62
62
  font-weight: 500; }
63
63
 
64
64
  h3, .h3 {
65
- font-size: 175%;
65
+ font-size: 175% !important;
66
66
  font-weight: 500; }
67
67
 
68
68
  h4, .h4 {
69
- font-size: 150%;
69
+ font-size: 150% !important;
70
70
  font-weight: 400; }
71
71
 
72
72
  h5, .h5 {
73
- font-size: 150%;
73
+ font-size: 150% !important;
74
74
  font-weight: 400; }
75
75
 
76
76
  div .paragraph p span.scaled img {
@@ -224,8 +224,7 @@ p.tableblock > code:only-child {
224
224
  padding: 0; }
225
225
 
226
226
  p.tableblock {
227
- font-size: 1em;
228
- margin-top: 1.5em; }
227
+ font-size: 1em; }
229
228
 
230
229
  .quoteblock {
231
230
  margin: 1.5em 6em 1.25em 4em;