j1-template 2022.0.9 → 2022.0.13
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/modules/ads/google_ad_content_home.html +11 -0
- data/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
- data/apps/public/cc/index.adoc +0 -1
- data/assets/data/article_navigator/index.html +0 -1
- data/assets/data/news_panel_posts/index.html +0 -1
- data/assets/error_pages/HTTP445.html +5 -4
- data/assets/error_pages/HTTP446.html +2 -2
- data/assets/error_pages/HTTP447.html +110 -0
- data/assets/error_pages/HTTP448.html +111 -0
- data/assets/themes/j1/adapter/js/advertising.js +442 -0
- data/assets/themes/j1/adapter/js/algolia.js +10 -13
- data/assets/themes/j1/adapter/js/analytics.js +259 -0
- data/assets/themes/j1/adapter/js/asciidoctor.js +10 -13
- data/assets/themes/j1/adapter/js/attic.js +10 -5
- data/assets/themes/j1/adapter/js/bmd.js +10 -14
- data/assets/themes/j1/adapter/js/carousel.js +10 -13
- data/assets/themes/j1/adapter/js/clipboard.js +9 -10
- data/assets/themes/j1/adapter/js/comments.js +407 -0
- data/assets/themes/j1/adapter/js/cookieConsent.js +107 -84
- data/assets/themes/j1/adapter/js/fab.js +11 -11
- data/assets/themes/j1/adapter/js/framer.js +59 -64
- data/assets/themes/j1/adapter/js/j1.js +203 -258
- data/assets/themes/j1/adapter/js/justifiedGallery.js +12 -14
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +10 -13
- data/assets/themes/j1/adapter/js/lightbox.js +12 -9
- data/assets/themes/j1/adapter/js/logger.js +11 -5
- data/assets/themes/j1/adapter/js/mmenu.js +11 -12
- data/assets/themes/j1/adapter/js/navigator.js +13 -12
- data/assets/themes/j1/adapter/js/quicksearch.js +10 -13
- data/assets/themes/j1/adapter/js/rouge.js +11 -14
- data/assets/themes/j1/adapter/js/rtable.js +10 -13
- data/assets/themes/j1/adapter/js/rtextResizer.js +10 -13
- data/assets/themes/j1/adapter/js/scroller.js +14 -12
- data/assets/themes/j1/adapter/js/themer.js +12 -3
- data/assets/themes/j1/adapter/js/toccer.js +10 -13
- data/assets/themes/j1/adapter/js/translator.js +50 -96
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +6 -0
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +13 -5
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/advertising/js/google/adInitializer.js +127 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +11 -2
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +1 -1
- data/assets/themes/j1/modules/scroller/js/scroller.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +1 -13
- data/lib/starter_web/_data/apps/carousel.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/carousel.yml +3 -2
- data/lib/starter_web/_data/apps/defaults/justifiedGallery.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/lightGallery.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/lightbox.yml +2 -2
- data/lib/starter_web/_data/apps/justifiedGallery.yml +2 -2
- data/lib/starter_web/_data/apps/justifiedGalleryCustomizer.yml +2 -2
- data/lib/starter_web/_data/apps/lightGallery.yml +2 -2
- data/lib/starter_web/_data/apps/lightbox.yml +2 -2
- data/lib/starter_web/_data/blocks/banner.yml +3 -2
- data/lib/starter_web/_data/blocks/defaults/banner.yml +9 -0
- data/lib/starter_web/_data/blocks/defaults/footer.yml +9 -0
- data/lib/starter_web/_data/blocks/defaults/panel.yml +9 -0
- data/lib/starter_web/_data/blocks/footer.yml +3 -2
- data/lib/starter_web/_data/blocks/panel.yml +3 -2
- data/lib/starter_web/_data/builder/blog_navigator.yml +3 -2
- data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +8 -8
- data/lib/starter_web/_data/j1_config.yml +0 -116
- data/lib/starter_web/_data/layouts/default.yml +21 -21
- data/lib/starter_web/_data/layouts/home.ads.yml +262 -0
- data/lib/starter_web/_data/layouts/home.no-ads.yml +262 -0
- data/lib/starter_web/_data/layouts/home.yml +24 -0
- data/lib/starter_web/_data/layouts/page.yml +7 -18
- data/lib/starter_web/_data/layouts/post.yml +0 -11
- data/lib/starter_web/_data/modules/advertising.yml +139 -12
- data/lib/starter_web/_data/modules/analytics.yml +99 -0
- data/lib/starter_web/_data/modules/attics.yml +3 -2
- data/lib/starter_web/_data/modules/comments.yml +55 -0
- data/lib/starter_web/_data/modules/cookieconsent.yml +2 -1
- data/lib/starter_web/_data/modules/cookies.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/advertising.yml +105 -0
- data/lib/starter_web/_data/modules/defaults/analytics.yml +93 -0
- data/lib/starter_web/_data/modules/defaults/attics.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/authentication.yml +51 -48
- data/lib/starter_web/_data/modules/defaults/comments.yml +114 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/cookies.yml +105 -26
- data/lib/starter_web/_data/modules/defaults/fab.yml +4 -2
- data/lib/starter_web/_data/modules/defaults/framer.yml +2 -3
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/log4r.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -2
- data/lib/starter_web/_data/modules/defaults/quicksearch.yml +4 -3
- data/lib/starter_web/_data/modules/defaults/rtable.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/scoller.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/themer.yml +119 -118
- data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/translator.yml +1 -1
- data/lib/starter_web/_data/modules/fab.yml +3 -2
- data/lib/starter_web/_data/modules/framer.yml +3 -4
- data/lib/starter_web/_data/modules/log4r.yml +2 -2
- data/lib/starter_web/_data/modules/navigator.yml +4 -2
- data/lib/starter_web/_data/modules/quicksearch.yml +3 -3
- data/lib/starter_web/_data/modules/rtable.yml +3 -3
- data/lib/starter_web/_data/modules/scroller.yml +2 -3
- data/lib/starter_web/_data/modules/themer.yml +2 -3
- data/lib/starter_web/_data/modules/toccer.yml +3 -3
- data/lib/starter_web/_data/modules/translator.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +2 -2
- data/lib/starter_web/_data/plugins/paginator.yml +2 -2
- data/lib/starter_web/_data/resources.yml +447 -290
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_content_home.html +11 -0
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.ads.asciidoc +196 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.comments.asciidoc +182 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +1 -1
- data/lib/starter_web/index.html +0 -4
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/index.html +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +265 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.base.asciidoc +237 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +237 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +62 -0
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/google-ad.js +130 -0
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +0 -1
- data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +23 -2
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +100 -166
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +25 -70
- data/_includes/themes/j1/blocks/ads/ad.html +0 -64
- data/_includes/themes/j1/modules/boards/news_pin_board.html +0 -183
- data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +0 -30
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +0 -62
- data/_includes/themes/j1/modules/connectors/ads +0 -56
- data/_includes/themes/j1/modules/connectors/analytic/custom-provider.html +0 -32
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +0 -30
- data/_includes/themes/j1/modules/connectors/analytics +0 -60
- data/_includes/themes/j1/modules/connectors/comment/commento.html +0 -31
- data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +0 -30
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +0 -32
- data/_includes/themes/j1/modules/connectors/comment/facebook.html +0 -30
- data/_includes/themes/j1/modules/connectors/comment/hyvor.html +0 -32
- data/_includes/themes/j1/modules/connectors/comment/just-comments.html +0 -31
- data/_includes/themes/j1/modules/connectors/comments +0 -64
- data/_includes/themes/j1/modules/connectors/sharing +0 -29
- data/_includes/themes/j1/modules/connectors/survey/custom-provider.html +0 -30
- data/_includes/themes/j1/modules/connectors/survey/jotform.html +0 -32
- data/_includes/themes/j1/modules/connectors/surveys +0 -58
- data/_includes/themes/j1/modules/connectors/translator +0 -58
- data/_includes/themes/j1/modules/connectors/translators/custom-translator.html +0 -32
- data/_includes/themes/j1/modules/connectors/translators/google-translator.html +0 -53
- data/_includes/themes/j1/modules/search/algolia.html +0 -181
- data/_includes/themes/j1/modules/search/docsearch.html +0 -42
- data/assets/data/disqus.js +0 -81
- data/assets/data/hyvor.js +0 -72
- data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +0 -244
- data/lib/starter_web/pages/_test_pages/_includes/attributes.asciidoc +0 -110
- data/lib/starter_web/pages/_test_pages/_includes/documents/100_gistblock.asciidoc +0 -28
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +0 -14
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +0 -337
- data/lib/starter_web/pages/_test_pages/_includes/documents/tables/bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +0 -220
- data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +0 -177
- data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +0 -148
- data/lib/starter_web/pages/_test_pages/attribute-changes-01-tester.adoc +0 -226
- data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +0 -109
- data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +0 -127
- data/lib/starter_web/pages/_test_pages/card-tester.adoc +0 -128
- data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +0 -96
- data/lib/starter_web/pages/_test_pages/deepl.0.adoc +0 -258
- data/lib/starter_web/pages/_test_pages/deepl.adoc +0 -204
- data/lib/starter_web/pages/_test_pages/desandro-button.adoc +0 -171
- data/lib/starter_web/pages/_test_pages/desandro.adoc +0 -147
- data/lib/starter_web/pages/_test_pages/flipcard-1-tester.adoc +0 -308
- data/lib/starter_web/pages/_test_pages/formular-01-tester.adoc +0 -167
- data/lib/starter_web/pages/_test_pages/formular-02-tester.adoc +0 -727
- data/lib/starter_web/pages/_test_pages/google-translate-tester.0.adoc +0 -113
- data/lib/starter_web/pages/_test_pages/google-translate-tester.1.adoc +0 -231
- data/lib/starter_web/pages/_test_pages/google-translate-tester.3.adoc +0 -149
- data/lib/starter_web/pages/_test_pages/google-translate-tester.4.adoc +0 -237
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-2.adoc +0 -183
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-3.adoc +0 -235
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-4.adoc +0 -222
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-5.adoc +0 -119
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.1.adoc +0 -236
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +0 -225
- data/lib/starter_web/pages/_test_pages/list-group-tester.adoc +0 -265
- data/lib/starter_web/pages/_test_pages/tictok.adoc +0 -127
@@ -0,0 +1,127 @@
|
|
1
|
+
---
|
2
|
+
regenerate: true
|
3
|
+
---
|
4
|
+
|
5
|
+
{% capture cache %}
|
6
|
+
|
7
|
+
{% comment %}
|
8
|
+
# -----------------------------------------------------------------------------
|
9
|
+
# ~/assets/themes/j1/modules/advertising/js/google/adInitializer.js
|
10
|
+
# Liquid template for Google Adsense to initialze all units in a page
|
11
|
+
#
|
12
|
+
# Product/Info:
|
13
|
+
# https://jekyll.one
|
14
|
+
# Copyright (C) 2021 Juergen Adams
|
15
|
+
#
|
16
|
+
# J1 Template is licensed under the MIT License.
|
17
|
+
# For details, see https://jekyll.one
|
18
|
+
# -----------------------------------------------------------------------------
|
19
|
+
# Test data:
|
20
|
+
# {{ liquid_var | debug }}
|
21
|
+
# -----------------------------------------------------------------------------
|
22
|
+
{% endcomment %}
|
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 (settings only)
|
42
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
43
|
+
{% assign cookie_defaults = modules.defaults.cookies.defaults %}
|
44
|
+
{% assign cookie_settings = modules.cookies.settings %}
|
45
|
+
|
46
|
+
{% assign advertising_options = modules.defaults.advertising.defaults %}
|
47
|
+
{% assign advertising_settings = modules.advertising.settings %}
|
48
|
+
|
49
|
+
{% comment %} Set config options (settings only)
|
50
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
51
|
+
{% assign cookie_options = cookie_defaults | merge: cookie_settings %}
|
52
|
+
{% assign advertising_options = advertising_options | merge: advertising_settings %}
|
53
|
+
|
54
|
+
{% comment %} Variables
|
55
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
56
|
+
{% assign advertising = advertising_options.enabled %}
|
57
|
+
{% assign advertising_provider = advertising_options.provider %}
|
58
|
+
|
59
|
+
{% assign production = false %}
|
60
|
+
{% if environment == 'prod' or environment == 'production' %}
|
61
|
+
{% assign production = true %}
|
62
|
+
{% endif %}
|
63
|
+
|
64
|
+
/*
|
65
|
+
# -----------------------------------------------------------------------------
|
66
|
+
# ~/assets/themes/j1/modules/advertising/js/google/adInitializer.js
|
67
|
+
# JS helper for Google Adsense to initialze all units in a page
|
68
|
+
#
|
69
|
+
# Product/Info:
|
70
|
+
# http://jekyll.one
|
71
|
+
#
|
72
|
+
# Copyright (C) 2021 Juergen Adams
|
73
|
+
#
|
74
|
+
# J1 Template is licensed under MIT License.
|
75
|
+
# See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE
|
76
|
+
# -----------------------------------------------------------------------------
|
77
|
+
*/
|
78
|
+
|
79
|
+
$(document).ready(function() {
|
80
|
+
// [INFO ] [j1.adapter.advertising ] [ detected advertising provider: {{advertising_provider}}} ]
|
81
|
+
// [INFO ] [j1.adapter.advertising ] [ advertising detected as: {{advertising}} ]
|
82
|
+
{% if advertising %}
|
83
|
+
var logger = log4javascript.getLogger('j1.core.advertising.google');
|
84
|
+
var ads_found = document.getElementsByClassName('adsbygoogle').length;
|
85
|
+
var cookie_names = j1.getCookieNames();
|
86
|
+
var user_consent = j1.readCookie(cookie_names.user_consent);
|
87
|
+
var providerID = '{{advertising_options.google.publisherID}}';
|
88
|
+
var validProviderID = (providerID.includes('your')) ? false : true;
|
89
|
+
var advertisingProvider = 'Google Adsense';
|
90
|
+
|
91
|
+
var dependencies_met_page_ready = setInterval (function (options) {
|
92
|
+
if (j1.getState() === 'finished') {
|
93
|
+
|
94
|
+
if (!validProviderID) {
|
95
|
+
logger.warn('\n' + 'disabled provider: ' + advertisingProvider);
|
96
|
+
clearInterval(dependencies_met_page_ready);
|
97
|
+
return false;
|
98
|
+
}
|
99
|
+
|
100
|
+
if (user_consent.personalization) {
|
101
|
+
if (ads_found) {
|
102
|
+
logger.info('\n' + 'initialize all ads in page: #' + ads_found);
|
103
|
+
[].forEach.call(document.querySelectorAll('.adsbygoogle'), function() {
|
104
|
+
(adsbygoogle = window.adsbygoogle || []).push({});
|
105
|
+
});
|
106
|
+
} else {
|
107
|
+
logger.warn('\n' + 'no ads found in page');
|
108
|
+
}
|
109
|
+
} else {
|
110
|
+
logger.warn('\n' + 'initializing ads skipped');
|
111
|
+
logger.warn('\n' + 'consent on cookies disabled for personalization');
|
112
|
+
}
|
113
|
+
clearInterval(dependencies_met_page_ready);
|
114
|
+
}
|
115
|
+
}, 25);
|
116
|
+
{% else %}
|
117
|
+
// [WARN ] [j1.core.advertising ] [ no init code placed ]
|
118
|
+
{% endif %}
|
119
|
+
});
|
120
|
+
|
121
|
+
{% endcapture %}
|
122
|
+
{% if production %}
|
123
|
+
{{ cache | minifyJS }}
|
124
|
+
{% else %}
|
125
|
+
{{ cache | strip_empty_lines }}
|
126
|
+
{% endif %}
|
127
|
+
{% assign cache = nil %}
|
@@ -86,15 +86,24 @@ function CookieConsent(props) {
|
|
86
86
|
set: function (name, value, days, cookieSameSite, cookieDomain, cookieSecure) {
|
87
87
|
var value_encoded = window.btoa(value);
|
88
88
|
var expires = '; expires=Thu, 01 Jan 1970 00:00:00 UTC';
|
89
|
+
|
89
90
|
if (days>0) {
|
90
91
|
var date = new Date();
|
91
92
|
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
92
93
|
expires = "; expires=" + date.toUTCString();
|
93
94
|
}
|
95
|
+
|
96
|
+
// TODO: cookie attriebutes should be 'stringified' as done
|
97
|
+
// in j1.adapter.writeCookie()
|
98
|
+
// NOTE: DISABLED attribute 'Domain' for now
|
99
|
+
//------------------------------------------------------------------------
|
100
|
+
|
94
101
|
if (cookieSecure) {
|
95
|
-
|
102
|
+
// document.cookie = name + "=" + (value_encoded || '') + expires + '; Path=/; SameSite=' + cookieSameSite + '; ' + 'Domain=' + cookieDomain + '; ' + 'Secure=' + cookieSecure + ';';
|
103
|
+
document.cookie = name + "=" + (value_encoded || '') + expires + '; Path=/; SameSite=' + cookieSameSite + '; ' + 'Secure=' + cookieSecure + ';';
|
96
104
|
} else {
|
97
|
-
|
105
|
+
// document.cookie = name + "=" + (value_encoded || '') + expires + '; Path=/; SameSite=' + cookieSameSite + ';' + 'Domain=' + cookieDomain + '; ';
|
106
|
+
document.cookie = name + "=" + (value_encoded || '') + expires + '; Path=/; SameSite=' + cookieSameSite + ';';
|
98
107
|
}
|
99
108
|
},
|
100
109
|
get: function (name) {
|
@@ -24,4 +24,4 @@
|
|
24
24
|
# outside of J1 Template!
|
25
25
|
# -----------------------------------------------------------------------------
|
26
26
|
*/
|
27
|
-
"use strict";function CookieConsent(d){var v=log4javascript.getLogger("j1.core.CookieConsent");var p=this;var q=false;var e=new liteURL(window.location.href);var c=(e.protocol.includes("https"))?true:false;var j;var g;var t;v.info("\ninitializing core module: started");v.info("\nstate: started");this.props={autoShowDialog:true,dialogLanguage:"content",dialogLanguages:["en","de"],contentURL:"/assets/data/cookieconsent",postSelectionCallback:"",whitelisted:[],xhrDataElement:"consent-data",dialogContainerID:"consent-modal"};for(var f in d){this.props[f]=d[f]}if(this.props.dialogLanguage.indexOf("-")!==-1){this.props.dialogLanguage=this.props.dialogLanguage.split("-")[0]}if(!this.props.dialogLanguages.includes(this.props.dialogLanguage)){this.props.dialogLanguage=this.props.dialogLanguages[0]}this.props.xhrDataElement=this.props.xhrDataElement+"-"+this.props.dialogLanguage;this.props.cookieSecure=c;var h={set:function(w,C,E,z,D,A){var B=window.btoa(C);var x="; expires=Thu, 01 Jan 1970 00:00:00 UTC";if(E>0){var y=new Date();y.setTime(y.getTime()+(E*24*60*60*1000));x="; expires="+y.toUTCString()}if(A){document.cookie=w+"="+(B||"")+x+"; Path=/; SameSite="+z+";
|
27
|
+
"use strict";function CookieConsent(d){var v=log4javascript.getLogger("j1.core.CookieConsent");var p=this;var q=false;var e=new liteURL(window.location.href);var c=(e.protocol.includes("https"))?true:false;var j;var g;var t;v.info("\ninitializing core module: started");v.info("\nstate: started");this.props={autoShowDialog:true,dialogLanguage:"content",dialogLanguages:["en","de"],contentURL:"/assets/data/cookieconsent",postSelectionCallback:"",whitelisted:[],xhrDataElement:"consent-data",dialogContainerID:"consent-modal"};for(var f in d){this.props[f]=d[f]}if(this.props.dialogLanguage.indexOf("-")!==-1){this.props.dialogLanguage=this.props.dialogLanguage.split("-")[0]}if(!this.props.dialogLanguages.includes(this.props.dialogLanguage)){this.props.dialogLanguage=this.props.dialogLanguages[0]}this.props.xhrDataElement=this.props.xhrDataElement+"-"+this.props.dialogLanguage;this.props.cookieSecure=c;var h={set:function(w,C,E,z,D,A){var B=window.btoa(C);var x="; expires=Thu, 01 Jan 1970 00:00:00 UTC";if(E>0){var y=new Date();y.setTime(y.getTime()+(E*24*60*60*1000));x="; expires="+y.toUTCString()}if(A){document.cookie=w+"="+(B||"")+x+"; Path=/; SameSite="+z+"; Secure="+A+";"}else{document.cookie=w+"="+(B||"")+x+"; Path=/; SameSite="+z+";"}},get:function(x){var A=x+"=";var w=document.cookie.split(";");for(var y=0;y<w.length;y++){var C=w[y];while(C.charAt(0)===" "){C=C.substring(1,C.length)}if(C.indexOf(A)===0){var B=C.substring(A.length,C.length);var z=window.atob(B);return z}}return undefined}};var n={documentReady:function(w){if(document.readyState!=="loading"){w()}else{document.addEventListener("DOMContentLoaded",w)}}};function u(){var w={};var x=false;var y=0;var z=arguments.length;if(Object.prototype.toString.call(arguments[0])==="[object Boolean]"){x=arguments[0];y++}var B=function(C){for(var D in C){if(Object.prototype.hasOwnProperty.call(C,D)){if(x&&Object.prototype.toString.call(C[D])==="[object Object]"){w[D]=u(true,w[D],C[D])}else{w[D]=C[D]}}}};for(;y<z;y++){var A=arguments[y];B(A)}return w}function i(B,y){var w=Array.prototype.slice.call(arguments,2);var A=B.split(".");var z=A.pop();for(var x=0;x<A.length;x++){y=y[A[x]]}return y[z].apply(y,w)}function m(w){n.documentReady(function(){p.modal=document.getElementById(p.props.dialogContainerID);if(!p.modal){v.info("\nload consent modal");p.modal=document.createElement("div");p.modal.id=p.props.dialogContainerID;p.modal.style.display="none";p.modal.setAttribute("class","modal fade");p.modal.setAttribute("tabindex","-1");p.modal.setAttribute("role","dialog");p.modal.setAttribute("aria-labelledby",p.props.dialogContainerID);document.body.append(p.modal);p.$modal=$(p.modal);p.$modal.on("hidden.bs.modal",function(){i(p.props.postSelectionCallback,window)});var x=p.props.contentURL+"/index.html";$.get(x).done(function(y){v.info("\nloading consent modal: successfully");p.modal.innerHTML=y;p.modal.innerHTML=$("#"+p.props.xhrDataElement).eq(0).html();p.modal.style.display="block";$(p.modal).modal({backdrop:"static",keyboard:false});p.$buttonDoNotAgree=$("#bccs-buttonDoNotAgree");p.$buttonAgree=$("#bccs-buttonAgree");p.$buttonSave=$("#bccs-buttonSave");p.$buttonAgreeAll=$("#bccs-buttonAgreeAll");v.info("\nload/initialze options from cookie");l();k();$("#bccs-options").on("hide.bs.collapse",function(){q=false;l()}).on("show.bs.collapse",function(){q=true;l()});v.info("\ninitialze event handler");p.$buttonDoNotAgree.click(function(){b()});p.$buttonAgree.click(function(){o()});p.$buttonSave.click(function(){$("#bccs-options").collapse("hide");s();k()});p.$buttonAgreeAll.click(function(){$("#bccs-options").collapse("hide");o();k()});p.$modal.modal("show")}).fail(function(){v.error("\nloading consent modal: failed");v.warn("\nprobably no `contentURL` set")})}else{p.$modal.modal("show")}}.bind(this))}function k(){var y=p.getSettings();if(y){for(var x in y){var w=p.$modal.find("#bccs-options .bccs-option[data-name='"+x+"'] input[type='checkbox']");w.prop("checked",y[x])}}}function l(){if(q){p.$buttonDoNotAgree.hide();p.$buttonAgree.hide();p.$buttonSave.show();p.$buttonAgreeAll.show()}else{p.$buttonDoNotAgree.show();p.$buttonAgree.show();p.$buttonSave.hide();p.$buttonAgreeAll.hide()}}function a(x){var w=p.$modal.find("#bccs-options .bccs-option");var z={};for(var A=0;A<w.length;A++){var C=w[A];var y=C.getAttribute("data-name");if(y==="necessary"){z[y]=true}else{if(x===undefined){var B=$(C).find("input[type='checkbox']");z[y]=B.prop("checked")}else{z[y]=!!x}}}return z}function o(){h.set(p.props.cookieName,JSON.stringify(a(true)),p.props.cookieStorageDays,p.props.cookieSameSite,p.props.cookieDomain,c);p.$modal.modal("hide")}function b(){h.set(p.props.cookieName,JSON.stringify(a(false)),0,p.props.cookieSameSite,p.props.cookieDomain,c);p.$modal.modal("hide");window.location.href="/445.html"}function s(){h.set(p.props.cookieName,JSON.stringify(a()),p.props.cookieStorageDays,p.props.cookieSameSite,p.props.cookieDomain,c);p.$modal.modal("hide")}t=(this.props.whitelisted.indexOf(window.location.pathname)>-1);var r=h.get(this.props.cookieName);if((r===undefined||r==="false")&&this.props.autoShowDialog&&!t){m()}v.info("\ninitializing core module finished");v.info("\nstate: finished");this.showDialog=function(){t=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(!t){m()}};this.getSettings=function(x){var w=h.get(p.props.cookieName);if(w){var y=JSON.parse(h.get(p.props.cookieName));if(x===undefined){return y}else{if(y){return y[x]}else{return false}}}else{return undefined}}};
|
data/lib/j1/version.rb
CHANGED
data/lib/starter_web/Gemfile
CHANGED
@@ -53,7 +53,7 @@ gem 'jekyll', '~> 4.2'
|
|
53
53
|
|
54
54
|
# Theme Rubies, default: J1 Template (NOT used for the development system)
|
55
55
|
#
|
56
|
-
gem 'j1-template', '~> 2022.0.
|
56
|
+
gem 'j1-template', '~> 2022.0.13'
|
57
57
|
|
58
58
|
# ------------------------------------------------------------------------------
|
59
59
|
# PRODUCTION: Gem needed for the Jekyll and J1 prod environment
|
data/lib/starter_web/_config.yml
CHANGED
@@ -53,7 +53,7 @@ environment: development
|
|
53
53
|
# ------------------------------------------------------------------------------
|
54
54
|
# Sets the build version of J1 Template Gem
|
55
55
|
#
|
56
|
-
version: 2022.0.
|
56
|
+
version: 2022.0.13
|
57
57
|
|
58
58
|
# version
|
59
59
|
# ------------------------------------------------------------------------------
|
@@ -598,9 +598,6 @@ defaults:
|
|
598
598
|
personalization: false
|
599
599
|
exclude_from_search: false
|
600
600
|
|
601
|
-
analytics: true
|
602
|
-
comments: true
|
603
|
-
advertising: false
|
604
601
|
youtube: true
|
605
602
|
vimeo: true
|
606
603
|
|
@@ -643,9 +640,6 @@ defaults:
|
|
643
640
|
personalization: false
|
644
641
|
exclude_from_search: false
|
645
642
|
|
646
|
-
analytics: true
|
647
|
-
comments: true
|
648
|
-
advertising: false
|
649
643
|
youtube: true
|
650
644
|
vimeo: true
|
651
645
|
|
@@ -692,9 +686,6 @@ defaults:
|
|
692
686
|
personalization: false
|
693
687
|
exclude_from_search: false
|
694
688
|
|
695
|
-
analytics: true
|
696
|
-
comments: true
|
697
|
-
advertising: false
|
698
689
|
youtube: true
|
699
690
|
vimeo: true
|
700
691
|
|
@@ -731,9 +722,6 @@ defaults:
|
|
731
722
|
personalization: false
|
732
723
|
exclude_from_search: true
|
733
724
|
|
734
|
-
analytics: false
|
735
|
-
comments: false
|
736
|
-
advertising: false
|
737
725
|
youtube: false
|
738
726
|
vimeo: false
|
739
727
|
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Carousel
|
20
20
|
scope: User settings
|
@@ -11,9 +11,10 @@
|
|
11
11
|
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
|
-
#
|
14
|
+
# ------------------------------------------------------------------------------
|
15
|
+
# Description (used for J1 CC only)
|
15
16
|
#
|
16
|
-
|
17
|
+
description:
|
17
18
|
|
18
19
|
title: Carousel
|
19
20
|
scope: Default settings
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Justified Gallery
|
20
20
|
scope: Default settings
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Gallery Customizer
|
20
20
|
scope: Default settings
|
@@ -13,9 +13,9 @@
|
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
15
|
# ------------------------------------------------------------------------------
|
16
|
-
#
|
16
|
+
# Description (used for J1 CC only)
|
17
17
|
#
|
18
|
-
|
18
|
+
description:
|
19
19
|
|
20
20
|
title: Light Gallery
|
21
21
|
scope: Default settings
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Lightbox
|
20
20
|
scope: User settings
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Justified Gallery
|
20
20
|
scope: User settings
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Gallery Customizer
|
20
20
|
scope: User settings
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Light Gallery
|
20
20
|
scope: User settings
|
@@ -12,9 +12,9 @@
|
|
12
12
|
# ------------------------------------------------------------------------------
|
13
13
|
|
14
14
|
# ------------------------------------------------------------------------------
|
15
|
-
#
|
15
|
+
# Description (used for J1 CC only)
|
16
16
|
#
|
17
|
-
|
17
|
+
description:
|
18
18
|
|
19
19
|
title: Lightbox
|
20
20
|
scope: User settings
|
@@ -13,9 +13,10 @@
|
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
15
|
# ------------------------------------------------------------------------------
|
16
|
-
#
|
16
|
+
# Description (used for J1 CC only)
|
17
17
|
#
|
18
|
-
|
18
|
+
description:
|
19
|
+
|
19
20
|
title: Banner
|
20
21
|
scope: User settings
|
21
22
|
location: _data/blocks/banner.yml
|
@@ -12,6 +12,15 @@
|
|
12
12
|
#
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
|
+
# ------------------------------------------------------------------------------
|
16
|
+
# Description (used for J1 CC only)
|
17
|
+
#
|
18
|
+
description:
|
19
|
+
|
20
|
+
title: Banner
|
21
|
+
scope: Default settings
|
22
|
+
location: _data/blocks/defaults/banner.yml
|
23
|
+
|
15
24
|
# ------------------------------------------------------------------------------
|
16
25
|
# DEFAULT settings
|
17
26
|
#
|
@@ -12,6 +12,15 @@
|
|
12
12
|
#
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
|
+
# ------------------------------------------------------------------------------
|
16
|
+
# Description (used for J1 CC only)
|
17
|
+
#
|
18
|
+
description:
|
19
|
+
|
20
|
+
title: Footer
|
21
|
+
scope: Default settings
|
22
|
+
location: _data/blocks/defaults/footer.yml
|
23
|
+
|
15
24
|
# ------------------------------------------------------------------------------
|
16
25
|
# DEFAULT settings
|
17
26
|
#
|
@@ -12,6 +12,15 @@
|
|
12
12
|
#
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
|
+
# ------------------------------------------------------------------------------
|
16
|
+
# Description (used for J1 CC only)
|
17
|
+
#
|
18
|
+
description:
|
19
|
+
|
20
|
+
title: Panel
|
21
|
+
scope: Default settings
|
22
|
+
location: _data/blocks/defaults/panel.yml
|
23
|
+
|
15
24
|
# ------------------------------------------------------------------------------
|
16
25
|
# DEFAULT settings
|
17
26
|
#
|
@@ -13,9 +13,10 @@
|
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
15
|
# ------------------------------------------------------------------------------
|
16
|
-
#
|
16
|
+
# Description (used for J1 CC only)
|
17
17
|
#
|
18
|
-
|
18
|
+
description:
|
19
|
+
|
19
20
|
title: Footer
|
20
21
|
scope: User settings
|
21
22
|
location: _data/blocks/footer.yml
|
@@ -13,9 +13,10 @@
|
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
15
|
# ------------------------------------------------------------------------------
|
16
|
-
#
|
16
|
+
# Description (used for J1 CC only)
|
17
17
|
#
|
18
|
-
|
18
|
+
description:
|
19
|
+
|
19
20
|
title: Panel
|
20
21
|
scope: User settings
|
21
22
|
location: _data/blocks/panel.yml
|
@@ -13,9 +13,10 @@
|
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
15
|
# ------------------------------------------------------------------------------
|
16
|
-
#
|
16
|
+
# Description (used for J1 CC only)
|
17
17
|
#
|
18
|
-
|
18
|
+
description:
|
19
|
+
|
19
20
|
title: Blog Navigator
|
20
21
|
scope: User settings
|
21
22
|
location: _data/builder/blog_navigator.yml
|
@@ -12,6 +12,14 @@
|
|
12
12
|
#
|
13
13
|
# ------------------------------------------------------------------------------
|
14
14
|
|
15
|
+
# ------------------------------------------------------------------------------
|
16
|
+
# Description (used for J1 CC only)
|
17
|
+
#
|
18
|
+
description:
|
19
|
+
title: Blog Navigator
|
20
|
+
scope: Default settings
|
21
|
+
location: _data/builder/defaults/blog_navigator.yml
|
22
|
+
|
15
23
|
# ------------------------------------------------------------------------------
|
16
24
|
# Global Builder settings
|
17
25
|
# ------------------------------------------------------------------------------
|
@@ -128,14 +136,6 @@
|
|
128
136
|
#
|
129
137
|
# ------------------------------------------------------------------------------
|
130
138
|
|
131
|
-
# ------------------------------------------------------------------------------
|
132
|
-
# About this configuration (used for J1 CC only)
|
133
|
-
#
|
134
|
-
about_config:
|
135
|
-
title: Blog Navigator
|
136
|
-
scope: Default settings
|
137
|
-
location: _data/builder/defaults/blog_navigator.yml
|
138
|
-
|
139
139
|
# ------------------------------------------------------------------------------
|
140
140
|
# Default settings
|
141
141
|
#
|