j1-template 2022.0.2 → 2022.0.6
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/connectors/analytic/google-analytics.html +3 -13
- data/_includes/themes/j1/modules/connectors/comment/hyvor.html +4 -5
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +4 -4
- data/_includes/themes/j1/procedures/posts/pager.proc +2 -2
- data/_layouts/default.html +3 -11
- data/assets/data/private.json +1 -5
- data/assets/data/quicklinks.html +62 -47
- data/assets/themes/j1/adapter/js/cookieConsent.js +18 -13
- data/assets/themes/j1/adapter/js/j1.js +17 -17
- data/assets/themes/j1/adapter/js/translator.js +10 -6
- data/assets/themes/j1/core/js/template.js +139 -65
- data/assets/themes/j1/core/js/template.min.js +5 -5
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/cryptoJS/js/aes.js +35 -0
- data/assets/themes/j1/modules/cryptoJS/js/aes.min.js +35 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-md5.js +21 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-ripemd160.js +31 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha1.js +17 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha224.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha256.js +18 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha3.js +21 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha384.js +27 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha512.js +25 -0
- data/assets/themes/j1/modules/cryptoJS/js/md5.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/pbkdf2.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/rabbit-legacy.js +36 -0
- data/assets/themes/j1/modules/cryptoJS/js/rabbit.js +36 -0
- data/assets/themes/j1/modules/cryptoJS/js/rc4.js +33 -0
- data/assets/themes/j1/modules/cryptoJS/js/ripemd160.js +29 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha1.js +15 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha224.js +17 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha256.js +16 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha3.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha384.js +25 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha512.js +23 -0
- data/assets/themes/j1/modules/cryptoJS/js/tripledes.js +51 -0
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +460 -0
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +379 -353
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +1 -1
- data/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js +93 -1
- data/assets/themes/j1/modules/scroller/js/scroller.js +6 -6
- data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
- data/exe/j1 +6 -7
- data/lib/j1/commands/generate.rb +15 -16
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +7 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/_defaults/private.yml +3 -2
- data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +50 -44
- data/lib/starter_web/_data/modules/defaults/navigator.yml +31 -11
- data/lib/starter_web/_data/modules/translator.yml +3 -3
- data/lib/starter_web/_data/private.yml +3 -2
- data/lib/starter_web/_data/resources.yml +27 -2
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/encodeBase64.rb +46 -0
- data/lib/starter_web/_plugins/encryptAES.rb +53 -0
- data/lib/starter_web/_plugins/filters.rb +2 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/_plugins/minifyJSON.rb +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -21
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -0
- data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -1
- data/lib/starter_web/pages/public/learn/quickstart.adoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +29 -5
- data/lib/j1/commands/help.rb +0 -32
- data/lib/j1/commands/module.rb +0 -69
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb3d3d9ec50c3accd1a12762ce25a50af83caa99dafd1bee48bccb375cc572c
|
4
|
+
data.tar.gz: 32221fe28fbf693fb2a43063a673ed63c1ee394471959abd7c1b9270b1c36929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c0e049981164833e1aec1719c26e570e0828033fa19ac63fbd7054af416ffb119f451574329a480020fa5af13a31b1b89020d8f58418cd38a6cdde80769b4e6
|
7
|
+
data.tar.gz: 416606126e81685ff50f3ad4bdc8c01c58ff9184af618d876f3b3618414874bdf1e76ce27712a8c1b744779aa3851032d7c3a3a31acf16a5c283ebdb06e8a9b5
|
@@ -25,16 +25,6 @@
|
|
25
25
|
|
26
26
|
{% comment %} Main
|
27
27
|
-------------------------------------------------------------------------------- {% endcomment %}
|
28
|
-
|
29
|
-
<!-- load the GA library -->
|
30
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{tracking_id}}"></script>
|
31
|
-
|
32
|
-
<!-- GA depends on the cookie consent and is enabled/disabled on OptIn/Out-->
|
33
|
-
<!--
|
34
|
-
<script>
|
35
|
-
window.dataLayer = window.dataLayer || [];
|
36
|
-
function gtag(){dataLayer.push(arguments);}
|
37
|
-
gtag('js', new Date());
|
38
|
-
gtag('config', '{{tracking_id}}');
|
39
|
-
</script>
|
40
|
-
-->
|
28
|
+
<!-- [INFO ] [j1.modules.connectors.analytics ] [ GA depends on the cookie consent and is enabled/disabled dynamically on OptIn/Out ] -->
|
29
|
+
<!-- [INFO ] [j1.modules.connectors.analytics ] [ if analytics enabled, load the GA library statically by default ] -->
|
30
|
+
<script async id="google-tag-manager" src="https://www.googletagmanager.com/gtag/js?id={{tracking_id}}"></script>
|
@@ -23,11 +23,10 @@
|
|
23
23
|
{% comment %} Variables
|
24
24
|
-------------------------------------------------------------------------------- {% endcomment %}
|
25
25
|
|
26
|
-
|
27
26
|
{% comment %} Main
|
27
|
+
<!-- thread container places dynamically by j1 adapter
|
28
28
|
-------------------------------------------------------------------------------- {% endcomment %}
|
29
|
-
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ place the thread container: start ] -->
|
30
|
-
<div id="hyvor-talk-view"></div>
|
31
29
|
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector depends on the cookie consent (personalization) ] -->
|
32
|
-
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector
|
33
|
-
<!-- [INFO ] [j1.modules.connectors.hyvor ] [
|
30
|
+
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector is enabled/disabled dynamically by j1 adapter on OptIn/Out ] -->
|
31
|
+
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ thread container disabled, placed dynamically by j1 adapter ] -->
|
32
|
+
<!-- div id="hyvor-talk-view"></div -->
|
@@ -79,7 +79,7 @@
|
|
79
79
|
{% if button_tagline %}
|
80
80
|
{% if button_href and button_target %}
|
81
81
|
{% capture bs_button_html %}
|
82
|
-
<a id="
|
82
|
+
<a id="{{button_id}}" href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
|
83
83
|
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-3"></i>
|
84
84
|
<span class="float-right text-left mt-2">
|
85
85
|
{{button_title}}
|
@@ -89,7 +89,7 @@
|
|
89
89
|
{% endcapture %}
|
90
90
|
{% elsif button_href %}
|
91
91
|
{% capture bs_button_html %}
|
92
|
-
<a id="
|
92
|
+
<a id="{{button_id}}" href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
|
93
93
|
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-3"></i>
|
94
94
|
<span class="float-right text-left mt-2">
|
95
95
|
{{button_title}}
|
@@ -103,7 +103,7 @@
|
|
103
103
|
{% else %}
|
104
104
|
{% if button_href and button_target %}
|
105
105
|
{% capture bs_button_html %}
|
106
|
-
<a id="
|
106
|
+
<a id="{{button_id}}" href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
|
107
107
|
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-1"></i>
|
108
108
|
<span class="float-right text-left">
|
109
109
|
{{button_title}}
|
@@ -112,7 +112,7 @@
|
|
112
112
|
{% endcapture %}
|
113
113
|
{% elsif button_href %}
|
114
114
|
{% capture bs_button_html %}
|
115
|
-
<a id="
|
115
|
+
<a id="{{button_id}}" href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
|
116
116
|
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-1"></i>
|
117
117
|
<span class="float-right text-left">
|
118
118
|
{{button_title}}
|
@@ -100,9 +100,9 @@
|
|
100
100
|
|
101
101
|
<!-- [INFO ] [procedures.global.pager.proc ] [Calculate BackURL from User State Cookie for page: {{page.title}}] -->
|
102
102
|
if (re.test(last_pager)) {
|
103
|
-
last_pager_url = '<li class="page-item"><a class="page-link" href="' + last_pager + '" title="Back to
|
103
|
+
last_pager_url = '<li class="page-item"><a class="page-link" href="' + last_pager + '" title="Back to {{pager_back_button_text}}">{{pager_back_button_text}}</a></li>';
|
104
104
|
} else {
|
105
|
-
last_pager_url = '<li class="page-item disabled"><a class="page-link" title="Back to
|
105
|
+
last_pager_url = '<li class="page-item disabled"><a class="page-link" title="Back to {{pager_back_button_text}}">{{pager_back_button_text}}</a></li>';
|
106
106
|
}
|
107
107
|
document.write( last_pager_url );
|
108
108
|
j1.writeCookie({
|
data/_layouts/default.html
CHANGED
@@ -121,23 +121,15 @@ layout: compress
|
|
121
121
|
{% comment %} collect the head section (region head)
|
122
122
|
------------------------------------------------------------------------------ {% endcomment %}
|
123
123
|
<head data-proofer-ignore>
|
124
|
+
|
124
125
|
{% comment %}
|
125
126
|
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-LRlmVvLKVApDVGuspQFnRQJjkv0P7/YFrw84YYQtmYG4nK8c+M+NlmYDCv0rKWpG" crossorigin="anonymous">
|
126
127
|
{% endcomment %}
|
127
128
|
<!-- [INFO ] [j1.layout.default.html ] [ call default_writer for region: 'head' ] -->
|
128
129
|
{% include {{default_writer}} region='head' items=lanes_collate %}
|
129
130
|
<!-- [INFO ] [j1.layout.default.html ] [ end default_writer for region: 'head' ] -->
|
130
|
-
</head>
|
131
131
|
|
132
|
-
|
133
|
-
------------------------------------------------------------------------------
|
134
|
-
{% if body_scrollbar %}
|
135
|
-
<body>
|
136
|
-
{% else %}
|
137
|
-
<body class="hide-scrollbar">
|
138
|
-
{% endif %}
|
139
|
-
------------------------------------------------------------------------------
|
140
|
-
{% endcomment %}
|
132
|
+
</head>
|
141
133
|
|
142
134
|
<body>
|
143
135
|
|
@@ -174,7 +166,6 @@ layout: compress
|
|
174
166
|
|
175
167
|
</div>
|
176
168
|
<!-- [INFO ] [j1.layout.default.html ] [ end suppress flicker ] -->
|
177
|
-
<!-- [INFO ] [j1.layout.default.html ] [ end default writer] -->
|
178
169
|
|
179
170
|
<!-- [INFO ] [j1.layout.default.html ] [ place noscript info|error page ] -->
|
180
171
|
{% assign language = site.language %}
|
@@ -230,6 +221,7 @@ layout: compress
|
|
230
221
|
<!-- [INFO ] [j1.layout.default.html ] [ place hidden color selector/themes: bg-primary ] -->
|
231
222
|
<div id="bg-primary" class="bg-primary" style="display: none"></div>
|
232
223
|
|
224
|
+
<!-- [INFO ] [j1.layout.default.html ] [ end default writer] -->
|
233
225
|
</body>
|
234
226
|
|
235
227
|
{% comment %} Place container for WebHook modals
|
data/assets/data/private.json
CHANGED
data/assets/data/quicklinks.html
CHANGED
@@ -78,30 +78,15 @@ exclude_from_search: true
|
|
78
78
|
-------------------------------------------------------------------------------- {% endcomment %}
|
79
79
|
{% assign icon_family = quicklinks_options.icon_family | downcase %}
|
80
80
|
|
81
|
-
{%
|
82
|
-
|
83
|
-
{% assign translate_icon = quicklinks_options.translate_icon %}
|
84
|
-
|
85
|
-
{% assign search_icon = quicklinks_options.top_search_icon %}
|
86
|
-
{% assign sidebar_icon = quicklinks_options.sidebar_icon %}
|
87
|
-
|
88
|
-
{% assign signin_icon = auth_client_config.signin_icon %}
|
89
|
-
{% assign signout_icon = auth_client_config.signout_icon %}
|
90
|
-
|
91
|
-
{% assign control_center_icon = cc_app_config_options.quicklinks_icon %}
|
92
|
-
{% assign control_center_url = cc_app_config_options.quicklinks_url %}
|
93
|
-
|
94
|
-
{% assign translator_icon = quicklinks_options.translator_icon %}
|
95
|
-
|
81
|
+
{% comment %} Link buttons
|
82
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
96
83
|
{% assign home_icon = quicklinks_options.home_icon %}
|
97
84
|
{% assign home_url = quicklinks_options.home_url %}
|
98
|
-
|
99
|
-
{% assign r_text_icon = quicklinks_options.r_text_icon %}
|
100
|
-
|
101
|
-
{% assign toc_icon = quicklinks_options.toc_icon %}
|
85
|
+
{% assign home_label = quicklinks_options.home_label %}
|
102
86
|
|
103
87
|
{% assign back_icon = quicklinks_options.back_icon %}
|
104
88
|
{% assign back_url = quicklinks_options.back_url %}
|
89
|
+
{% assign back_label = quicklinks_options.back_label %}
|
105
90
|
|
106
91
|
{% assign disqus_icon = quicklinks_options.disqus_icon %}
|
107
92
|
{% assign github_icon = quicklinks_options.github_icon %}
|
@@ -115,15 +100,50 @@ exclude_from_search: true
|
|
115
100
|
{% assign facebook_url = quicklinks_options.facebook_url %}
|
116
101
|
{% assign twitter_url = quicklinks_options.twitter_url %}
|
117
102
|
|
103
|
+
{% assign disqus_label = quicklinks_options.disqus_label %}
|
104
|
+
{% assign github_label = quicklinks_options.github_label %}
|
105
|
+
{% assign patreon_label = quicklinks_options.patreon_label %}
|
106
|
+
{% assign facebook_label = quicklinks_options.facebook_label %}
|
107
|
+
{% assign twitter_label = quicklinks_options.twitter_label %}
|
108
|
+
|
109
|
+
{% comment %} Action buttons
|
110
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
111
|
+
{% assign cookies_icon = quicklinks_options.cookies_icon %}
|
112
|
+
{% assign cookies_action = quicklinks_options.cookies_action %}
|
113
|
+
{% assign cookies_label = quicklinks_options.cookies_label %}
|
114
|
+
|
115
|
+
{% assign translate_icon = quicklinks_options.translate_icon %}
|
116
|
+
{% assign translate_action = quicklinks_options.translate_action %}
|
117
|
+
{% assign translate_label = quicklinks_options.translate_label %}
|
118
|
+
|
119
|
+
{% assign quicksearch_icon = quicklinks_options.quicksearch_icon %}
|
120
|
+
{% assign quicksearch_action = quicklinks_options.quicksearch_action %}
|
121
|
+
{% assign quicksearch_label = quicklinks_options.quicksearch_label %}
|
122
|
+
|
123
|
+
{% assign translator_icon = quicklinks_options.translator_icon %}
|
124
|
+
{% assign translator_action = quicklinks_options.translator_action %}
|
125
|
+
{% assign translator_label = quicklinks_options.translator_label %}
|
126
|
+
|
127
|
+
{% assign r_text_icon = quicklinks_options.r_text_icon %}
|
128
|
+
{% assign r_text_action = quicklinks_options.r_text_action %}
|
129
|
+
{% assign r_text_label = quicklinks_options.r_text_label %}
|
130
|
+
|
131
|
+
{% comment %} Legacy buttons
|
132
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
133
|
+
{% assign signin_icon = auth_client_config.signin_icon %}
|
134
|
+
{% assign signout_icon = auth_client_config.signout_icon %}
|
118
135
|
{% assign signin_modal_id = auth_client_config.signin_modal_id %}
|
119
136
|
|
137
|
+
{% assign control_center_icon = cc_app_config_options.quicklinks_icon %}
|
138
|
+
{% assign control_center_url = cc_app_config_options.quicklinks_url %}
|
139
|
+
|
120
140
|
|
121
141
|
{% comment %} Show|Hide Quicksearch icon
|
122
142
|
-------------------------------------------------------------------------------- {% endcomment %}
|
123
143
|
{% if quick_search_options.enabled %}
|
124
|
-
{% assign
|
144
|
+
{% assign show_quicksearch_icon = true %}
|
125
145
|
{% else %}
|
126
|
-
{% assign
|
146
|
+
{% assign show_quicksearch_icon = false %}
|
127
147
|
{% endif %}
|
128
148
|
|
129
149
|
{% comment %} Show|Hide Translator icon
|
@@ -154,19 +174,9 @@ exclude_from_search: true
|
|
154
174
|
{% assign show_control_center_icon = false %}
|
155
175
|
{% endif %}
|
156
176
|
|
157
|
-
{% comment %} Show|Hide Sidebar icon
|
158
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
159
|
-
{% if quicklinks_options.sidebar %}
|
160
|
-
{% assign show_sidebar_icon = true %}
|
161
|
-
{% else %}
|
162
|
-
{% assign show_sidebar_icon = false %}
|
163
|
-
{% endif %}
|
164
|
-
|
165
|
-
{% assign show_sidebar_icon = false %}
|
166
|
-
|
167
177
|
{% comment %} Show|Hide RSizer icon
|
168
178
|
-------------------------------------------------------------------------------- {% endcomment %}
|
169
|
-
{% if quicklinks_options.
|
179
|
+
{% if quicklinks_options.r_text_icon %}
|
170
180
|
{% assign show_r_text_icon = true %}
|
171
181
|
{% else %}
|
172
182
|
{% assign show_r_text_icon = false %}
|
@@ -238,24 +248,29 @@ exclude_from_search: true
|
|
238
248
|
|
239
249
|
<ul id="{{quicklinks_options.xhr_data_element}}" class="navbar-nav show">
|
240
250
|
|
241
|
-
{%
|
242
|
-
|
243
|
-
{% if
|
244
|
-
{% if
|
245
|
-
{% if
|
246
|
-
{% if
|
247
|
-
{% if
|
248
|
-
{% if
|
249
|
-
{% if
|
250
|
-
|
251
|
-
{%
|
252
|
-
|
253
|
-
{% if
|
251
|
+
{% comment %} Link buttons
|
252
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
253
|
+
{% if back_url != "none" %}<li id="quickLinksBackButton" class="nav-item"><a id="page_back_id" class="nav-icon" href="{{back_url}}" aria-label="{{back_label}}"><i class="{{icon_family}} {{icon_family}}-{{back_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
254
|
+
{% if home_url != "none" %}<li id="quickLinksHomeButton" class="nav-item"><a id="home_id" class="nav-icon" href="{{home_url}}" aria-label="{{home_label}}"><i class="{{icon_family}} {{icon_family}}-{{home_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
255
|
+
{% if disqus_url != "none" %}<li id="quickLinksDisqusButton" class="nav-item"><a id="disqus_id" class="nav-icon" href="{{disqus_url}}" aria-label="{{disqus_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{disqus_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
256
|
+
{% if github_url != "none" %}<li id="quickLinksGithubButton" class="nav-item"><a id="github_id" class="nav-icon" href="{{github_url}}" aria-label="{{github_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{github_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
257
|
+
{% if patreon_url != "none" %}<li id="quickLinksPatreonButton" class="nav-item"><a id="patreon_id" class="nav-icon" href="{{patreon_url}}" aria-label="{{patreon_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{patreon_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
258
|
+
{% if facebook_url != "none" %}<li id="quickLinksFacebookButton" class="nav-item"><a id="facebook_id" class="nav-icon" href="{{facebook_url}}" aria-label="{{facebook_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{facebook_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
259
|
+
{% if twitter_url != "none" %}<li id="quickLinksTwitterButton" class="nav-item"><a id="twitter_id" class="nav-icon" href="{{twitter_url}}" aria-label="{{twitter_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{twitter_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
260
|
+
|
261
|
+
{% comment %} Action buttons
|
262
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
263
|
+
{% if show_quicksearch_icon %}<li id="quickLinksSearchButton" class="nav-item {{quicksearch_action}}"><a class="nav-icon" href="#" aria-label="{{quicksearch_label}}"><i class="nav-icon {{icon_family}} {{icon_family}}-{{quicksearch_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
264
|
+
{% if show_auth_manager_icon %}<li id="quickLinksSignInOutButton" class="nav-item sign-inout" style="display: none;"><a class="nav-icon" id="navLinkSignInOut" aria-label="SignOut" href="#" data-bs-toggle="modal" data-bs-target="#{{signin_modal_id}}"><i id="iconSignInOut" class="nav-icon {{icon_family}} {{icon_family}}-{{signin_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
265
|
+
{% if show_cookieconsent_icon %}<li id="quickLinksCookieButton" class="nav-item {{cookies_action}}" style="display: block;"><a href="#" aria-label="{{cookies_label}}"><i class="nav-icon {{icon_family}} {{icon_family}}-{{cookies_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
266
|
+
{% if show_r_text_icon %}<li id="quickLinksRTextButton" class="nav-item {{r_text_action}}" style="display: block;"><a class="nav-icon" href="#" aria-label="{{r_text_label}}" data-bs-toggle="modal" data-bs-target="#fluidModalRTextResizer"><i class="nav-icon {{icon_family}} {{icon_family}}-{{r_text_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
267
|
+
{% if show_google_translate_icon %}<li id="quickLinksTranslateButton" class="nav-item {{translate_action}}" style="display: block;"><a href="#" aria-label="{{translate_label}}"><i class="nav-icon {{icon_family}} {{icon_family}}-{{translate_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
254
268
|
|
255
269
|
{% comment %} Unused
|
256
270
|
--------------------------------------------------------------------------------
|
257
|
-
{% if
|
258
|
-
{% if
|
271
|
+
{% if show_control_center_icon %}<li id="quickLinksControlCenterButton" class="nav-item control-center" style="display: block;"><a class="nav-icon" href="{{control_center_url}}" aria-label="ControlCenter"><i class="{{icon_family}} {{icon_family}}-{{control_center_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
272
|
+
{% if show_translator_icon %}<li id="quickLinksLanguageButton" class="nav-item translator"><a class="nav-icon" href="#void" aria-label="Translator"><i class="nav-icon {{icon_family}} {{icon_family}}-{{translator_icon}} {{icon_size}}"></i></a></li>{% endif %}
|
273
|
+
{% if show_google_translate_lang %}<li id="quickLinksTranslateLangButton" class="nav-item" style="display: block;"><a href="javascript:j1.translator.showDialog()" aria-label="Google Translate"><i class="nav-icon flag-icon flag-icon-{{translate_lang}} rectangle size-md"></i></a></li>{% endif %}
|
259
274
|
-------------------------------------------------------------------------------- {% endcomment %}
|
260
275
|
|
261
276
|
</ul>
|
@@ -190,10 +190,12 @@ j1.adapter['cookieConsent'] = (function (j1, window) {
|
|
190
190
|
logger.info('\n' + 'state: ' + _this.getState());
|
191
191
|
logger.debug('\n' + 'module initialized successfully');
|
192
192
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
193
|
+
// Click events moved to Navigator (core)
|
194
|
+
//
|
195
|
+
// $('#quickLinksCookieButton').click(function(e) {
|
196
|
+
// logger.info('\n' + 'call default action');
|
197
|
+
// j1.cookieConsent.showDialog();
|
198
|
+
// });
|
197
199
|
|
198
200
|
clearInterval(dependencies_met_page_ready);
|
199
201
|
}
|
@@ -267,15 +269,18 @@ j1.adapter['cookieConsent'] = (function (j1, window) {
|
|
267
269
|
$('#quickLinksCookieButton').css('display', 'block');
|
268
270
|
}
|
269
271
|
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
272
|
+
// jadams, 2021-11-29: disabled additional logs to verify the existance
|
273
|
+
// of J1 and GA cookies (testing only)
|
274
|
+
//
|
275
|
+
// logger.debug('\n' + 'j1 cookies found:' + j1Cookies.length);
|
276
|
+
// j1Cookies.forEach(item => console.log('j1.core.switcher: ' + item));
|
277
|
+
// logger.debug('\n' + 'ga cookies found:' + gaCookies.length);
|
278
|
+
// gaCookies.forEach(item => console.log('j1.core.switcher: ' + item));
|
279
|
+
//
|
280
|
+
// if (user_agent.includes('iPad')) {
|
281
|
+
// logger.warn('\n' + 'product detected : ' + platform.product);
|
282
|
+
// logger.warn('\n' + 'skip deleting (unwanted) cookies for this platform');
|
283
|
+
// }
|
279
284
|
|
280
285
|
// Manage Google Analytics OptIn/Out
|
281
286
|
// See: https://github.com/luciomartinez/gtag-opt-in/wiki
|
@@ -776,7 +776,7 @@ var j1 = (function () {
|
|
776
776
|
}
|
777
777
|
} else {
|
778
778
|
logText = '\n' + 'no banner found in site';
|
779
|
-
logger.
|
779
|
+
logger.debug(logText);
|
780
780
|
return false;
|
781
781
|
}
|
782
782
|
return true;
|
@@ -879,7 +879,7 @@ var j1 = (function () {
|
|
879
879
|
}
|
880
880
|
} else {
|
881
881
|
logText = '\n' + 'no panel found in site';
|
882
|
-
logger.
|
882
|
+
logger.debug(logText);
|
883
883
|
return false;
|
884
884
|
}
|
885
885
|
return true;
|
@@ -931,7 +931,7 @@ var j1 = (function () {
|
|
931
931
|
selector.load(footer_data_path, cb_load_closure(id));
|
932
932
|
} else {
|
933
933
|
logText = '\n' + 'data not loaded';
|
934
|
-
logger.
|
934
|
+
logger.debug(logText);
|
935
935
|
j1.setXhrDataState(id, 'not loaded');
|
936
936
|
j1.setXhrDomState(id, 'pending');
|
937
937
|
return false;
|
@@ -1041,8 +1041,8 @@ var j1 = (function () {
|
|
1041
1041
|
setTimeout (function() {
|
1042
1042
|
// Manage providers for personalization OptIn/Out (Comments|Ads)
|
1043
1043
|
if (!user_consent.personalization) {
|
1044
|
-
logger.
|
1045
|
-
logger.
|
1044
|
+
logger.debug('\n' + 'disable comment provider: ' + comment_provider);
|
1045
|
+
logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
|
1046
1046
|
$('#leave-a-comment').remove();
|
1047
1047
|
if (comment_provider === 'disqus') {
|
1048
1048
|
$('#dsq-count-scr').remove();
|
@@ -1079,7 +1079,7 @@ var j1 = (function () {
|
|
1079
1079
|
// no dropcaps if translation enabled
|
1080
1080
|
if (user_translate.translationEnabled) {
|
1081
1081
|
logger.info('\n' + 'translation enabled: ' + user_translate.translationEnabled);
|
1082
|
-
logger.
|
1082
|
+
logger.debug('\n' + 'skipped processing of dropcaps');
|
1083
1083
|
} else {
|
1084
1084
|
// initialize dropcaps
|
1085
1085
|
logger.info('\n' + 'post processing: createDropCap');
|
@@ -1107,7 +1107,7 @@ var j1 = (function () {
|
|
1107
1107
|
logger.info('\n' + 'tracking disabled, tracking id found: ' + tracking_id);
|
1108
1108
|
}
|
1109
1109
|
} else {
|
1110
|
-
logger.
|
1110
|
+
logger.debug('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analysis);
|
1111
1111
|
}
|
1112
1112
|
|
1113
1113
|
// show|hide cookie icon (should MOVED to Cookiebar ???)
|
@@ -1155,8 +1155,8 @@ var j1 = (function () {
|
|
1155
1155
|
// for GDPR compliance, themes feature may disabled on
|
1156
1156
|
// privacy settings
|
1157
1157
|
if (!user_consent.personalization) {
|
1158
|
-
logger.
|
1159
|
-
logger.
|
1158
|
+
logger.debug('\n' + 'disable themes feature because of privacy settings');
|
1159
|
+
logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
|
1160
1160
|
$("#themes_menu").hide();
|
1161
1161
|
} else {
|
1162
1162
|
$("#themes_menu").show();
|
@@ -1198,8 +1198,8 @@ var j1 = (function () {
|
|
1198
1198
|
|
1199
1199
|
// Manage providers for personalization OptIn/Out (Comments|Ads)
|
1200
1200
|
if (!user_consent.personalization) {
|
1201
|
-
logger.
|
1202
|
-
logger.
|
1201
|
+
logger.debug('\n' + 'disable comment provider: ' + comment_provider);
|
1202
|
+
logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
|
1203
1203
|
$('#leave-a-comment').remove();
|
1204
1204
|
if (comment_provider === 'disqus') {
|
1205
1205
|
$('#dsq-count-scr').remove();
|
@@ -1260,7 +1260,7 @@ var j1 = (function () {
|
|
1260
1260
|
// no dropcaps if translation enabled
|
1261
1261
|
if (user_translate.translationEnabled) {
|
1262
1262
|
logger.info('\n' + 'translation enabled: ' + user_translate.translationEnabled);
|
1263
|
-
logger.
|
1263
|
+
logger.debug('\n' + 'skipped processing of dropcaps');
|
1264
1264
|
} else {
|
1265
1265
|
// initialize dropcaps
|
1266
1266
|
logger.info('\n' + 'post processing: createDropCap');
|
@@ -1289,7 +1289,7 @@ var j1 = (function () {
|
|
1289
1289
|
logger.info('\n' + 'tracking disabled, tracking id found: ' + tracking_id);
|
1290
1290
|
}
|
1291
1291
|
} else {
|
1292
|
-
logger.
|
1292
|
+
logger.debug('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analysis);
|
1293
1293
|
}
|
1294
1294
|
|
1295
1295
|
logger.info('\n' + 'mode detected: web');
|
@@ -1338,8 +1338,8 @@ var j1 = (function () {
|
|
1338
1338
|
// for GDPR compliance, themes feature may disabled on
|
1339
1339
|
// privacy settings
|
1340
1340
|
if (!user_consent.personalization) {
|
1341
|
-
logger.
|
1342
|
-
logger.
|
1341
|
+
logger.debug('\n' + 'disable themes feature because of privacy settings');
|
1342
|
+
logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
|
1343
1343
|
$("#themes_menu").hide();
|
1344
1344
|
} else {
|
1345
1345
|
$("#themes_menu").show();
|
@@ -1594,7 +1594,7 @@ var j1 = (function () {
|
|
1594
1594
|
if (options.xhr_data_element !== '') {
|
1595
1595
|
logger.info('\n' + 'XHR data element found: ' + options.xhr_data_element);
|
1596
1596
|
} else {
|
1597
|
-
logger.
|
1597
|
+
logger.debug('\n' + 'no XHR data element found, loading data aborted');
|
1598
1598
|
return;
|
1599
1599
|
}
|
1600
1600
|
|
@@ -1626,7 +1626,7 @@ var j1 = (function () {
|
|
1626
1626
|
// failsafe - prevent XHR load errors
|
1627
1627
|
if (id != '#undefined') {
|
1628
1628
|
logText = '\n' + 'data not loaded on id:' + id;
|
1629
|
-
logger.
|
1629
|
+
logger.debug(logText);
|
1630
1630
|
j1.setXhrDataState(id, 'not loaded');
|
1631
1631
|
j1.setXhrDomState(id, 'not loaded');
|
1632
1632
|
// Set processing state to 'finished' to complete module load
|
@@ -98,7 +98,6 @@ j1.adapter['translator'] = (function (j1, window) {
|
|
98
98
|
var secure;
|
99
99
|
var logText;
|
100
100
|
var cookie_written;
|
101
|
-
var modal_language;
|
102
101
|
var navigator_language;
|
103
102
|
var translation_language;
|
104
103
|
var ddSourceLanguage;
|
@@ -171,7 +170,6 @@ j1.adapter['translator'] = (function (j1, window) {
|
|
171
170
|
domain = hostname.substring(hostname.lastIndexOf('.', hostname.lastIndexOf('.') - 1) + 1);
|
172
171
|
cookie_domain = (domain.includes('.')) ? '.' + domain : domain;
|
173
172
|
secure = (url.protocol.includes('https')) ? true : false;
|
174
|
-
modal_language = "{{site.language}}";
|
175
173
|
navigator_language = navigator.language || navigator.userLanguage; // userLanguage for MS IE compatibility
|
176
174
|
translation_language = navigator_language.split('-')[0];
|
177
175
|
cookie_names = j1.getCookieNames();
|
@@ -270,6 +268,10 @@ j1.adapter['translator'] = (function (j1, window) {
|
|
270
268
|
expires: 365
|
271
269
|
});
|
272
270
|
|
271
|
+
if (moduleOptions.dialogLanguage === 'auto') {
|
272
|
+
moduleOptions.dialogLanguage = '{{contentLanguage}}';
|
273
|
+
}
|
274
|
+
|
273
275
|
j1.translator = new Translator({
|
274
276
|
contentURL: moduleOptions.contentURL, // dialog content (modals) for all supported languages
|
275
277
|
cookieName: moduleOptions.cookieName, // the name of the User State Cookie (primary data)
|
@@ -302,10 +304,12 @@ j1.adapter['translator'] = (function (j1, window) {
|
|
302
304
|
}
|
303
305
|
}
|
304
306
|
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
307
|
+
// Click events moved to Navigator (core)
|
308
|
+
//
|
309
|
+
// $('#quickLinksTranslateButton').click(function(e) {
|
310
|
+
// logger.info('\n' + 'call default action');
|
311
|
+
// j1.translator.showDialog();
|
312
|
+
// });
|
309
313
|
|
310
314
|
_this.setState('finished');
|
311
315
|
logger.info('\n' + 'state: ' + _this.getState());
|