j1-template 2021.1.28 → 2021.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +6 -6
- data/_includes/themes/j1/layouts/content_generator_post.html +3 -0
- data/_includes/themes/j1/modules/navigator/generator.html +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +5 -5
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +6 -6
- data/_layouts/default.html +6 -2
- data/assets/data/mdil_icons.json +2417 -0
- data/assets/data/panel.html +10 -10
- data/assets/themes/j1/adapter/js/j1.js +8 -7
- data/assets/themes/j1/adapter/js/j1scroll.js +19 -1
- data/assets/themes/j1/adapter/js/navigator.js +11 -4
- data/assets/themes/j1/adapter/js/rtable.js +77 -24
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.css +1222 -0
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.min.css +1 -0
- data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +58 -109
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +28 -18
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +7 -20
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/eot/materialdesignicons-light-webfont.eot +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff2 +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/svg/materialdesignicons-light-webfont.svg +801 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/ttf/materialdesignicons-light-webfont.ttf +0 -0
- data/assets/themes/j1/core/js/template.js +4 -4
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +4 -4
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.js +11 -21
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.min.js +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +5 -15
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.css +97 -0
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.min.css +15 -0
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.js +125 -0
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js +15 -0
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +3 -3
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +2 -174
- data/assets/themes/j1/modules/rtable/js/rtable.js +59 -25
- data/assets/themes/j1/modules/rtable/js/rtable.min.js +12 -683
- data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.js +73 -73
- data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.min.js +15 -15
- data/lib/j1/commands/generate.rb +5 -8
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +15 -51
- data/lib/starter_web/_data/blocks/banner.yml +4 -5
- data/lib/starter_web/_data/blocks/panel.yml +217 -183
- data/lib/starter_web/_data/layouts/home.yml +20 -16
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/rtable.yml +34 -0
- data/lib/starter_web/_data/modules/j1scroll.yml +12 -2
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
- data/lib/starter_web/_data/modules/rtable.yml +34 -0
- data/lib/starter_web/_data/resources.yml +38 -16
- data/lib/starter_web/_includes/attributes.asciidoc +6 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/annie-spratt-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/humble-lamb-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/{pages/videos → modules/attics}/szabo-viktor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/asciidoc_skeletons/example-pdf-screenshot.png +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-01-01-about-cookies.adoc → 2021-01-01-about-cookies.adoc} +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/{2021-03-01-site-generators.adoc → 2021-02-01-site-generators.adoc} +0 -0
- 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
- 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
- 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
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/attributes.asciidoc +0 -0
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/tables/readme +0 -0
- data/lib/starter_web/index.html +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/000_intro.adoc +5 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +43 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +61 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/attributes.asciidoc +95 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/000_intro.asciidoc +54 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/000_basic_example.asciidoc +31 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +111 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +95 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +39 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter.asciidoc +8 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/211_language_overview.asciidoc +122 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +502 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/213_fonts.asciidoc +261 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes.asciidoc +8 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.bat +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.sh +2 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book/book.a2p → documentation/documentation.a2p} +2 -8
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +86 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +848 -40
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +149 -38
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +2 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +312 -119
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +5 -5
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +5 -5
- data/lib/starter_web/pages/public/blog/navigator/archive.html +5 -5
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +51 -82
- data/assets/themes/j1/modules/rtable/js/tablesaw-init.js +0 -18
- data/assets/themes/j1/modules/rtable/js/tablesaw.stackonly.js +0 -2371
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -128
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -131
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -131
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -132
- data/lib/starter_web/pages/infinite-scroll-tester-5.adoc +0 -119
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/blindtext.asciidoc +0 -11
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/font_icons.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +0 -5
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/lightbox.asciidoc +0 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/chapter_document.asciidoc +0 -9
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/entry_document.asciidoc +0 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/images/image.asciidoc +0 -6
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column.asciidoc +0 -12
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column_options.asciidoc +0 -30
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_3_column.asciidoc +0 -16
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_4_column.asciidoc +0 -25
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +0 -62
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +0 -64
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +0 -73
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/attributes.asciidoc +0 -74
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/000_intro.asciidoc +0 -33
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/100_chapter_document.asciidoc +0 -21
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/110_chapter_document.asciidoc +0 -36
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter.asciidoc +0 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter/200_chapter_document.asciidoc +0 -53
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter.asciidoc +0 -5
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/000_intro.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/100_chapter_document.asciidoc +0 -33
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/200_chapter_document.asciidoc +0 -26
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/900_sources.asciidoc +0 -81
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +0 -136
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +0 -60
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +0 -59
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
- data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +0 -60
- data/lib/starter_web/pages/public/previewer/_includes/documents/licenses/mit.asciidoc +0 -19
- data/lib/starter_web/pages/public/previewer/_includes/documents/readme +0 -0
- data/lib/starter_web/pages/public/previewer/_includes/documents/rouge/100_language_examples.asciidoc +0 -119
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +0 -39
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/120_relative_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/200_rotate.asciidoc +0 -71
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/300_flip.asciidoc +0 -31
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +0 -39
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +0 -61
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +0 -55
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/600_md_color_palette.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/200_rouge_attributes.asciidoc +0 -41
- data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/300_supported_languages.asciidoc +0 -857
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/200_rotate.asciidoc +0 -71
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/300_flip.asciidoc +0 -30
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +0 -31
- data/lib/starter_web/pages/public/previewer/iframer.adoc +0 -93
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +0 -41
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +0 -574
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +0 -220
- data/lib/starter_web/pages/public/previewer/rouge.adoc +0 -133
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +0 -191
data/assets/data/panel.html
CHANGED
@@ -262,7 +262,7 @@ exclude_from_search: true
|
|
262
262
|
</div>
|
263
263
|
|
264
264
|
<div class="card-body g-min-height-200 r-text-300">{{card_text}}</div>
|
265
|
-
<div class="card-footer r-text-200 text-lowercase">
|
265
|
+
<div class="card-footer r-text-200 md-grey-900 text-lowercase">
|
266
266
|
{% for data in card_buttons %} {% for item in data %} {% for button in item[1] %}
|
267
267
|
{% assign key = button[0] %}
|
268
268
|
{% assign value = button[1] %}
|
@@ -277,9 +277,9 @@ exclude_from_search: true
|
|
277
277
|
{% endfor %} {% endfor %}{% endfor %}
|
278
278
|
|
279
279
|
{% if button_target == null %}
|
280
|
-
<a class="card-link
|
280
|
+
<a class="card-link md-grey-900" href="{{button_href}}">{{readmore_text}} · {{button_text}}</a>
|
281
281
|
{% else %}
|
282
|
-
<a class="card-link
|
282
|
+
<a class="card-link md-grey-900" href="{{button_href}}" target="{{button_target}}">{{readmore_text}} · {{button_text}}</a>
|
283
283
|
{% endif %}
|
284
284
|
</div>
|
285
285
|
|
@@ -416,7 +416,7 @@ exclude_from_search: true
|
|
416
416
|
{{list.service.description}}
|
417
417
|
<hr>
|
418
418
|
<a class="card-link text-muted text-lowercase" href="{{list.service.href}}">
|
419
|
-
|
419
|
+
{{readmore_text}} · {{list.service.title}}
|
420
420
|
</a>
|
421
421
|
</div>
|
422
422
|
</div>
|
@@ -548,13 +548,13 @@ exclude_from_search: true
|
|
548
548
|
|
549
549
|
<div class="card-footer-text">
|
550
550
|
{% if language == "en" %}
|
551
|
-
<i class="mdi mdi-calendar-blank md-grey-
|
551
|
+
<i class="mdi mdi-calendar-blank md-grey-900 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
|
552
552
|
{% endif %}
|
553
553
|
{% if language == "de" %}
|
554
|
-
<i class="mdi mdi-calendar-blank md-grey-
|
554
|
+
<i class="mdi mdi-calendar-blank md-grey-900 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
|
555
555
|
{% endif %}
|
556
556
|
</div>
|
557
|
-
<a class="card-link
|
557
|
+
<a class="card-link md-grey-900 text-lowercase"
|
558
558
|
href="{{post.url}}">
|
559
559
|
{{readmore_text}} · {{post.tagline}}
|
560
560
|
</a>
|
@@ -596,13 +596,13 @@ exclude_from_search: true
|
|
596
596
|
|
597
597
|
<div class="card-footer-text">
|
598
598
|
{% if language == "en" %}
|
599
|
-
<i class="mdi mdi-calendar-blank md-grey-
|
599
|
+
<i class="mdi mdi-calendar-blank md-grey-900 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
|
600
600
|
{% endif %}
|
601
601
|
{% if language == "de" %}
|
602
|
-
<i class="mdi mdi-calendar-blank md-grey-
|
602
|
+
<i class="mdi mdi-calendar-blank md-grey-900 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
|
603
603
|
{% endif %}
|
604
604
|
</div>
|
605
|
-
<a class="card-link
|
605
|
+
<a class="card-link md-grey-900 text-lowercase"
|
606
606
|
href="{{post.url}}">
|
607
607
|
{{readmore_text}} · {{post.tagline}}
|
608
608
|
</a>
|
@@ -1000,7 +1000,7 @@ var j1 = (function () {
|
|
1000
1000
|
}
|
1001
1001
|
} else {
|
1002
1002
|
if (comments) {
|
1003
|
-
logger.
|
1003
|
+
logger.info('\n' + 'enable comment provider: ' + comment_provider);
|
1004
1004
|
$('#main-content').append('<h2 id="leave-a-comment" class="mt-4">{{comments_headline}}</h2>');
|
1005
1005
|
if (comment_provider === 'disqus') {
|
1006
1006
|
logger.info('\n' + 'load comment provider code: ' + comment_provider);
|
@@ -1042,9 +1042,9 @@ var j1 = (function () {
|
|
1042
1042
|
if (tracking_enabled && !tracking_id_valid) {
|
1043
1043
|
logger.error('\n' + 'tracking enabled, but invalid tracking id found: ' + tracking_id);
|
1044
1044
|
} else if (tracking_enabled && tracking_id_valid) {
|
1045
|
-
logger.
|
1045
|
+
logger.info('\n' + 'tracking enabled, tracking id found: ' + tracking_id);
|
1046
1046
|
} else {
|
1047
|
-
logger.
|
1047
|
+
logger.info('\n' + 'tracking disabled, tracking id found: ' + tracking_id);
|
1048
1048
|
}
|
1049
1049
|
} else {
|
1050
1050
|
logger.warn('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analyses);
|
@@ -1150,7 +1150,7 @@ var j1 = (function () {
|
|
1150
1150
|
}
|
1151
1151
|
} else {
|
1152
1152
|
if (comments) {
|
1153
|
-
logger.
|
1153
|
+
logger.info('\n' + 'enable comment provider: ' + comment_provider);
|
1154
1154
|
$('#main-content').append('<h2 id="leave-a-comment" class="mt-4">{{comments_headline}}</h2>');
|
1155
1155
|
if (comment_provider === 'disqus') {
|
1156
1156
|
logger.info('\n' + 'load comment provider code: ' + comment_provider);
|
@@ -1203,9 +1203,9 @@ var j1 = (function () {
|
|
1203
1203
|
if (tracking_enabled && !tracking_id_valid) {
|
1204
1204
|
logger.error('\n' + 'tracking enabled, but invalid tracking id found: ' + tracking_id);
|
1205
1205
|
} else if (tracking_enabled && tracking_id_valid) {
|
1206
|
-
logger.
|
1206
|
+
logger.info('\n' + 'tracking enabled, tracking id found: ' + tracking_id);
|
1207
1207
|
} else {
|
1208
|
-
logger.
|
1208
|
+
logger.info('\n' + 'tracking disabled, tracking id found: ' + tracking_id);
|
1209
1209
|
}
|
1210
1210
|
} else {
|
1211
1211
|
logger.warn('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analyses);
|
@@ -1289,7 +1289,8 @@ var j1 = (function () {
|
|
1289
1289
|
logText = '\n' + 'page finalized successfully';
|
1290
1290
|
logger.info(logText);
|
1291
1291
|
|
1292
|
-
}, flickerTimeout);
|
1292
|
+
// }, flickerTimeout);
|
1293
|
+
}, 500);
|
1293
1294
|
} // END WEB mode
|
1294
1295
|
}, // END displayPage
|
1295
1296
|
|
@@ -27,7 +27,6 @@ regenerate: true
|
|
27
27
|
{% comment %} Set global settings
|
28
28
|
-------------------------------------------------------------------------------- {% endcomment %}
|
29
29
|
{% assign environment = site.environment %}
|
30
|
-
{% assign template_version = site.version %}
|
31
30
|
{% assign asset_path = "/assets/themes/j1" %}
|
32
31
|
|
33
32
|
{% comment %} Process YML config data
|
@@ -83,9 +82,11 @@ j1.adapter['j1Scroll'] = (function (j1, window) {
|
|
83
82
|
{% comment %} Set global variables
|
84
83
|
------------------------------------------------------------------------------ {% endcomment %}
|
85
84
|
var environment = '{{environment}}';
|
85
|
+
var language = '{{site.language}}';
|
86
86
|
var user_agent = platform.ua;
|
87
87
|
var moduleOptions = {};
|
88
88
|
var _this;
|
89
|
+
var lastPageInfo;
|
89
90
|
var logger;
|
90
91
|
var logText;
|
91
92
|
|
@@ -173,6 +174,8 @@ j1.adapter['j1Scroll'] = (function (j1, window) {
|
|
173
174
|
{% assign scrollOffset = item.scroller.scrollOffset %}
|
174
175
|
{% assign lastPage = item.scroller.lastPage %}
|
175
176
|
{% assign infoLastPage = item.scroller.infoLastPage %}
|
177
|
+
{% assign lastPageInfo_en = item.scroller.lastPageInfo_en %}
|
178
|
+
{% assign lastPageInfo_de = item.scroller.lastPageInfo_de %}
|
176
179
|
|
177
180
|
// scroller_id: {{ scroller_id }}
|
178
181
|
var log_text = '\n' + 'j1Scroll is being initialized on: ' + '{{scroller_id}}';
|
@@ -190,6 +193,20 @@ j1.adapter['j1Scroll'] = (function (j1, window) {
|
|
190
193
|
var container = '#' + '{{container}}';
|
191
194
|
var pagePath = '{{path}}';
|
192
195
|
|
196
|
+
if (language === 'en') {
|
197
|
+
lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
|
198
|
+
lastPageInfo += '{{lastPageInfo_en|strip_newlines}}';
|
199
|
+
lastPageInfo += '</p></div>';
|
200
|
+
} else if (language === 'de') {
|
201
|
+
lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
|
202
|
+
lastPageInfo += '{{lastPageInfo_de|strip_newlines}}';
|
203
|
+
lastPageInfo += '</p></div>';
|
204
|
+
} else {
|
205
|
+
lastPageInfo = '<div class="page-scroll-last"><p class="infinite-scroll-last">';
|
206
|
+
lastPageInfo += '{{lastPageInfo_en|strip_newlines}}';
|
207
|
+
lastPageInfo += '</p></div>';
|
208
|
+
}
|
209
|
+
|
193
210
|
// Create an j1Scroll instance if container exists
|
194
211
|
if ($(container).length) {
|
195
212
|
$(container).j1Scroll({
|
@@ -198,6 +215,7 @@ j1.adapter['j1Scroll'] = (function (j1, window) {
|
|
198
215
|
scrollOffset: {{scrollOffset}},
|
199
216
|
lastPage: {{lastPage}},
|
200
217
|
infoLastPage: {{infoLastPage}},
|
218
|
+
lastPageInfo: lastPageInfo,
|
201
219
|
});
|
202
220
|
}
|
203
221
|
|
@@ -410,10 +410,10 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
410
410
|
// -----------------------------------------------------------------
|
411
411
|
// event handler|css styles
|
412
412
|
// -----------------------------------------------------------------
|
413
|
-
// continue if themer|navigator are INITIALIZED
|
414
413
|
var dependencies_met_initialized = setInterval(function() {
|
415
414
|
if (themerEnabled) {
|
416
|
-
if (
|
415
|
+
// for themes, initialize if page is visible (DOM ready)
|
416
|
+
if (j1.getState() === 'finished') {
|
417
417
|
_this.setState('processing');
|
418
418
|
|
419
419
|
// set general|global theme colors
|
@@ -433,6 +433,7 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
433
433
|
clearInterval(dependencies_met_initialized);
|
434
434
|
}
|
435
435
|
} else {
|
436
|
+
// no themes used
|
436
437
|
_this.setState('processing');
|
437
438
|
|
438
439
|
// set general|global theme colors
|
@@ -681,14 +682,20 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
681
682
|
|
682
683
|
// Set dymanic styles
|
683
684
|
// -----------------------------------------------------------------------
|
684
|
-
// $('nav-primary').css({"background-color": "navPrimaryColor"});
|
685
685
|
|
686
686
|
// navBar styles
|
687
687
|
// -----------------------------------------------------------------------
|
688
|
-
|
688
|
+
// read current background colors
|
689
|
+
var bg_primary = $('#bg-primary').css('background-color');
|
690
|
+
var bg_table = $('body').css('background-color');
|
691
|
+
|
692
|
+
// set navbar background colors
|
689
693
|
var bg_scrolled = bg_primary;
|
690
694
|
var bg_collapsed = bg_primary;
|
691
695
|
|
696
|
+
// set current body background color for all tables
|
697
|
+
$('table').css('background', bg_table);
|
698
|
+
|
692
699
|
$('head').append('<style>.mdi-bg-primary {color: ' +bg_scrolled+ ';}</style>');
|
693
700
|
|
694
701
|
// Size of brand image
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -21,6 +21,37 @@ regenerate: false
|
|
21
21
|
# -----------------------------------------------------------------------------
|
22
22
|
{% endcomment %}
|
23
23
|
|
24
|
+
{% comment %} Liquid procedures
|
25
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
26
|
+
|
27
|
+
{% comment %} Set global settings
|
28
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
29
|
+
{% assign environment = site.environment %}
|
30
|
+
{% assign asset_path = "/assets/themes/j1" %}
|
31
|
+
|
32
|
+
{% comment %} Process YML config data
|
33
|
+
================================================================================ {% endcomment %}
|
34
|
+
|
35
|
+
{% comment %} Set config files
|
36
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
37
|
+
{% assign template_config = site.data.j1_config %}
|
38
|
+
{% assign blocks = site.data.blocks %}
|
39
|
+
{% assign modules = site.data.modules %}
|
40
|
+
|
41
|
+
{% comment %} Set config data
|
42
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
43
|
+
{% assign rtable_defaults = modules.defaults.rtable.defaults %}
|
44
|
+
{% assign rtable_settings = modules.rtable.settings %}
|
45
|
+
|
46
|
+
{% comment %} Set config options
|
47
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
48
|
+
{% assign rtable_options = rtable_defaults | merge: rtable_settings %}
|
49
|
+
|
50
|
+
{% assign production = false %}
|
51
|
+
{% if environment == 'prod' or environment == 'production' %}
|
52
|
+
{% assign production = true %}
|
53
|
+
{% endif %}
|
54
|
+
|
24
55
|
/*
|
25
56
|
# -----------------------------------------------------------------------------
|
26
57
|
# ~/assets/themes/j1/adapter/js/rtable.js
|
@@ -53,6 +84,7 @@ j1.adapter['rtable'] = (function (j1, window) {
|
|
53
84
|
------------------------------------------------------------------------------ {% endcomment %}
|
54
85
|
var environment = '{{environment}}';
|
55
86
|
var moduleOptions = {};
|
87
|
+
var frontmatterOptions;
|
56
88
|
var _this;
|
57
89
|
var logger;
|
58
90
|
var logText;
|
@@ -90,34 +122,55 @@ j1.adapter['rtable'] = (function (j1, window) {
|
|
90
122
|
generated: '{{site.time}}'
|
91
123
|
}, options);
|
92
124
|
|
93
|
-
//
|
94
|
-
|
95
|
-
|
96
|
-
var log_text = '\n' + 'rtable is being initialized';
|
97
|
-
logger.info(log_text);
|
125
|
+
// create settings object from frontmatterOptions
|
126
|
+
frontmatterOptions = options != null ? $.extend({}, options) : {};
|
127
|
+
moduleOptions = $.extend({}, {{rtable_options | replace: 'nil', 'null' | replace: '=>', ':' }});
|
98
128
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
//
|
103
|
-
$('table').each(function(){
|
104
|
-
var curTable = $(this);
|
105
|
-
// jadams, 2020-09-16: class 'rtable' indicate use of 'tablesaw'
|
106
|
-
if ($(curTable).hasClass('rtable')) {
|
107
|
-
// jadams, 2020-09-17: add BS responsive class in case of an overflow
|
108
|
-
// jadams, 2020-11-21: BS responsive class disabled, bcause the
|
109
|
-
// table doesn't stretch full page width
|
110
|
-
//$(curTable).addClass('table-responsive')
|
111
|
-
// jadams, 2020-09-16: add needed CSS class/attribute for tablesaw
|
112
|
-
$(curTable).addClass('tablesaw');
|
113
|
-
$(curTable).attr('data-tablesaw-mode','stack');
|
114
|
-
}
|
115
|
-
});
|
129
|
+
if (typeof frontmatterOptions !== 'undefined') {
|
130
|
+
moduleOptions = j1.mergeData(moduleOptions, frontmatterOptions);
|
131
|
+
}
|
116
132
|
|
117
133
|
var dependencies_met_j1_finished = setInterval(function() {
|
118
134
|
if (j1.getState() == 'finished') {
|
119
135
|
|
120
|
-
|
136
|
+
// -----------------------------------------------------------------------
|
137
|
+
// rtable initializer
|
138
|
+
// -----------------------------------------------------------------------
|
139
|
+
var log_text = '\n' + 'rtable is being initialized';
|
140
|
+
// -----------------------------------------------------------------------
|
141
|
+
// rtable initializer
|
142
|
+
// -----------------------------------------------------------------------
|
143
|
+
var log_text = '\n' + 'rtable is being initialized';
|
144
|
+
logger.info(log_text);
|
145
|
+
|
146
|
+
// Add data attributes for tablesaw to all tables of a page
|
147
|
+
// as Asciidoctor has NO option to pass 'data attributes'
|
148
|
+
// See: https://stackoverflow.com/questions/50600405/how-to-add-custom-data-attributes-with-asciidoctor
|
149
|
+
//
|
150
|
+
$('table').each(function(){
|
151
|
+
var curTable = $(this);
|
152
|
+
var log_text;
|
153
|
+
// jadams, 2020-09-16: class 'rtable' indicate use of 'tablesaw'
|
154
|
+
if ($(curTable).hasClass('rtable')) {
|
155
|
+
// jadams, 2020-09-16: add needed CSS class/attribute for tablesaw
|
156
|
+
$(curTable).addClass('tablesaw');
|
157
|
+
$(curTable).attr('data-tablesaw-mode','stack');
|
158
|
+
|
159
|
+
Tablesaw.init(curTable, moduleOptions);
|
160
|
+
|
161
|
+
// set initial state for all table/colgroup elements
|
162
|
+
//
|
163
|
+
if ($(window).width() < moduleOptions.breakpoint) {
|
164
|
+
log_text = '\n' + 'hide colgroups: ' + curTable.attr('id')
|
165
|
+
curTable.find('colgroup').hide();
|
166
|
+
logger.debug(log_text);
|
167
|
+
} else {
|
168
|
+
log_text = '\n' + 'show colgroup: ' + curTable.attr('id')
|
169
|
+
curTable.find('colgroup').show();
|
170
|
+
logger.debug(log_text);
|
171
|
+
}
|
172
|
+
} // END if hasClass 'rtable'
|
173
|
+
});
|
121
174
|
|
122
175
|
_this.setState('finished');
|
123
176
|
logger.info('\n' + 'state: ' + _this.getState());
|