j1-template 2022.3.1 → 2022.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/modules/navigator/generator.html +1 -1
  3. data/assets/data/cookieconsent.html +4 -4
  4. data/assets/data/nbinteract.html +128 -0
  5. data/assets/data/quicklinks.html +15 -0
  6. data/assets/data/translator.html +15 -15
  7. data/assets/themes/j1/adapter/js/mmenu.js +25 -3
  8. data/assets/themes/j1/adapter/js/navigator.js +2 -2
  9. data/assets/themes/j1/adapter/js/nbinteract.js +230 -34
  10. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +27 -54
  11. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  12. data/assets/themes/j1/core/js/template.js +14 -3
  13. data/assets/themes/j1/core/js/template.min.js +1 -1
  14. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  15. data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.js +1 -1
  16. data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.js.map +1 -1
  17. data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.min.js +1 -1
  18. data/lib/j1/version.rb +3 -3
  19. data/lib/starter_web/Gemfile +1 -1
  20. data/lib/starter_web/_config.yml +1 -1
  21. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +51 -41
  22. data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -0
  23. data/lib/starter_web/_data/modules/defaults/nbinteract.yml +95 -1
  24. data/lib/starter_web/_data/modules/defaults/translator.yml +24 -12
  25. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  26. data/lib/starter_web/package.json +1 -1
  27. data/lib/starter_web/pages/public/jupyter/docs/j1-nbinteract-doc.adoc +2 -3
  28. data/lib/starter_web/pages/public/jupyter/docs/nbinteract-doc.adoc +17 -17
  29. data/lib/starter_web/pages/public/jupyter/examples/j1-circular-times-table.adoc +7 -8
  30. data/lib/starter_web/pages/public/jupyter/examples/j1-interactive-widgets.adoc +4 -5
  31. data/lib/starter_web/pages/public/jupyter/examples/j1-odes-in-python.adoc +5 -6
  32. data/lib/starter_web/pages/public/jupyter/examples/j1-testing-plotly.adoc +3 -4
  33. data/lib/starter_web/pages/public/jupyter/examples/j1_climate-change-forecast.adoc +4 -4
  34. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-checkpoint.ipynb +26 -26
  35. data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_interactive_widgets.ipynb +26 -26
  36. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_central_limit_theorem-checkpoint.ipynb +247 -0
  37. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_graphing-checkpoint.ipynb +18 -18
  38. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/nbi_docs_examples_central_limit_theorem.ipynb +1 -2
  39. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/nbi_docs_recipes_graphing.ipynb +18 -18
  40. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +919 -919
  41. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/nbi_docs_recipes_graphing.html +473 -473
  42. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  43. data/lib/starter_web/utilsrv/package.json +1 -1
  44. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e8a8bf49396d4fe36c0390c3d0e56028fc6836f7d796a0a848d4446a4925c0a
4
- data.tar.gz: ff9e9fb6c8063c8f623a72a5ca396cbd0aba4e2bc7b6de639c53e4ad224c1830
3
+ metadata.gz: 9bfab6f09ca384febbbce89e8ac08a3d384dfb3f4fd4dbf34d308d9af1b4b615
4
+ data.tar.gz: c9b599cad6eaaf894765da798fc4d80ea69c1b9f95d5f20ff1ecf6b623bb72f9
5
5
  SHA512:
6
- metadata.gz: e662b6d65a3a15424e157bfb2acb767575dac5c31cb65b2ec3d4ba575ef534d40de491e981a523330765cc8f198157b03f02ce623b6fca6c47e4df12bfeb9194
7
- data.tar.gz: 2872c3531e4f5adecb327af16d5cb7cac8e680b3cfb44b5f3d07121eb3d47a827e86c1ff2a8887391aaf9223744b0ea94cad5c46961a08a8747933fd5c356693
6
+ metadata.gz: 990fe41a371a2b94625581807a6afdfd49d787c877341d89b661d3a243a21c41c729565ea493a460459d69119f154e7e23266d400a90a896da5a0265023bc9f8
7
+ data.tar.gz: a7eee8acf6a6952dd326a11f52e6839ec8371b71f90bfd91ecb107caba560113d9c7807ef4ce7ef61f6ddc9fcb367fc19566304b1106264832d526a05c73e9e3
@@ -179,7 +179,7 @@
179
179
  <!-- [INFO ] [j1.modules.navigator.generator.html ] [ check for quicklinks ] -->
180
180
  {% if quicklinks_options.enabled %}
181
181
  <!-- [INFO ] [j1.modules.navigator.generator.html ] [ place container for: quicklinks ] -->
182
- <div id="{{nav_quicklinks_id}}" class="attr-nav collapse navbar-collapse justify-content-end"></div>
182
+ <div id="{{nav_quicklinks_id}}" class="quicklink-nav collapse navbar-collapse justify-content-end"></div>
183
183
  {% endif %}
184
184
 
185
185
  </nav>
@@ -76,7 +76,7 @@ exclude_from_search: true
76
76
 
77
77
  <div class="modal-body">
78
78
  <div class="bccs-body-text" style="font-size: 90%">
79
- <p class="mb-4">{{consent_options.modal_settings.body_text.en}}</p>
79
+ <p>{{consent_options.modal_settings.body_text.en}}</p>
80
80
  </div>
81
81
  <p>
82
82
  <a href="#bccs-privacy" data-bs-toggle="collapse" class="">Privacy Notice</a>
@@ -85,7 +85,7 @@ exclude_from_search: true
85
85
 
86
86
  <div id="bccs-privacy" class="collapse">
87
87
  <div class="bccs-body-text" style="font-size: 90%">
88
- <p class="mb-4">{{consent_options.modal_settings.privacy_notice.en}}</p>
88
+ <p>{{consent_options.modal_settings.privacy_notice.en}}</p>
89
89
  </div>
90
90
  </div>
91
91
 
@@ -170,7 +170,7 @@ exclude_from_search: true
170
170
 
171
171
  <div class="modal-body">
172
172
  <div class="bccs-body-text" style="font-size: 90%">
173
- <p class="mb-4">{{consent_options.modal_settings.body_text.de}}</p>
173
+ <p>{{consent_options.modal_settings.body_text.de}}</p>
174
174
  </div>
175
175
  <p>
176
176
  <a href="#bccs-privacy" data-bs-toggle="collapse" class="">Datenschutzerklärung</a>
@@ -179,7 +179,7 @@ exclude_from_search: true
179
179
 
180
180
  <div id="bccs-privacy" class="collapse">
181
181
  <div class="bccs-body-text" style="font-size: 90%">
182
- <p class="mb-4">{{consent_options.modal_settings.privacy_notice.de}}</p>
182
+ <p>{{consent_options.modal_settings.privacy_notice.de}}</p>
183
183
  </div>
184
184
  </div>
185
185
 
@@ -0,0 +1,128 @@
1
+ ---
2
+ regenerate: true
3
+ exclude_from_search: true
4
+ ---
5
+
6
+ {% capture cache %}
7
+
8
+ {% comment %}
9
+ # -----------------------------------------------------------------------------
10
+ # ~/assets/data/nbinteract.html
11
+ # Liquid PROCEDURE to generate the HTML (data) portion of all dialog modals
12
+ # used by the J1 NBI module
13
+ #
14
+ # Product/Info:
15
+ # https://jekyll.one
16
+ #
17
+ # Copyright (C) 2022 Juergen Adams
18
+ #
19
+ # J1 Template is licensed under the MIT License.
20
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
21
+ # -----------------------------------------------------------------------------
22
+ # Test data:
23
+ # liquid_var: {{ liquid_var | debug }}
24
+ # config: {{ config | debug }}
25
+ # -----------------------------------------------------------------------------
26
+ {% endcomment %}
27
+
28
+ {% comment %} Liquid procedures
29
+ -------------------------------------------------------------------------------- {% endcomment %}
30
+
31
+ {% comment %} Set global settings
32
+ -------------------------------------------------------------------------------- {% endcomment %}
33
+ {% assign environment = site.environment %}
34
+
35
+ {% comment %} Set config files
36
+ -------------------------------------------------------------------------------- {% endcomment %}
37
+ {% assign modules = site.data.modules %}
38
+
39
+ {% comment %} Process YML config data
40
+ ================================================================================ {% endcomment %}
41
+
42
+ {% comment %} Set config files
43
+ -------------------------------------------------------------------------------- {% endcomment %}
44
+ {% assign nbinteract_defaults = modules.defaults.nbinteract.defaults %}
45
+ {% assign nbinteract_settings = modules.nbinteract.settings %}
46
+
47
+ {% comment %} Set config options
48
+ -------------------------------------------------------------------------------- {% endcomment %}
49
+ {% assign nbinteract_options = nbinteract_defaults | merge: nbinteract_settings %}
50
+
51
+ {% assign production = false %}
52
+ {% if environment == 'prod' or environment == 'production' %}
53
+ {% assign production = true %}
54
+ {% endif %}
55
+
56
+
57
+ {% comment %} Main
58
+ ================================================================================ {% endcomment %}
59
+ <!-- [INFO ] [j1.assets.data.nbinteract.html ] [ set meta data (robots) to exclude HTML datafiles from index ] -->
60
+ <head>
61
+ <meta name="robots" content="noindex, nofollow" />
62
+ </head>
63
+
64
+ {% comment %} Modal NBI dialog
65
+ -------------------------------------------------------------------------------- {% endcomment %}
66
+ <div id="nbi-modal-data">
67
+ <div id="nbi-dialog" class="modal-dialog modal-frame modal-top modal-notify modal-primary" role="document">
68
+ <div class="modal-content">
69
+
70
+ <div class="modal-header">
71
+ <p class="lead">{{nbinteract_options.dialogTitle}}</p>
72
+ </div>
73
+
74
+ <div class="modal-body">
75
+ <div class="modal-body-text" style="font-size: 90%">
76
+ <p class="mb-3">{{nbinteract_options.dialogBodyText}}</p>
77
+ </div>
78
+
79
+ <p>
80
+ <a href="#nbi-privacy" data-bs-toggle="collapse" class="">Privacy Notice</a>
81
+ <a href="#nbi-actions" data-bs-toggle="collapse" class="float-right">My Actions</a>
82
+ </p>
83
+
84
+ <div id="nbi-privacy" class="collapse">
85
+ <div class="modal-body-text" style="font-size: 90%">
86
+ <p class="mb-2">{{nbinteract_options.dialogPrivacyNotice}}</p>
87
+ </div>
88
+ </div>
89
+
90
+ <div id="nbi-actions" class="collapse">
91
+ <p class="tagline mt-4 mb-1"><b>Actions</b></p>
92
+ <div class="d-inline-block g-width-50 g-height-2 bg-primary mb-3"></div>
93
+
94
+ <div class="translator-option" data-name="ClearLocalStorage">
95
+ <div class="switch mb-1">
96
+ <label>
97
+ <input id="checkboxClearLocalStorage" type="checkbox" name="checkboxClearLocalStorage" checked>
98
+ Clear Binder Settings
99
+ </label>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+
105
+ <div class="modal-footer">
106
+ <button id="nbi-buttonDoNotAgree" type="button" class="btn btn-outline-secondary mb-1 mr-2" style="min-width: 20rem">
107
+ No, do nothing
108
+ </button>
109
+ <button id="nbi-buttonAgree" type="button" class="btn btn-primary mb-1 mr-2" style="min-width: 20rem">
110
+ Yes, please run all actions
111
+ </button>
112
+ </div>
113
+
114
+ </div>
115
+ </div>
116
+ </div>
117
+
118
+ {% comment %} END Modal NBI dialog
119
+ -------------------------------------------------------------------------------- {% endcomment %}
120
+
121
+ {% endcapture %}
122
+
123
+ {% if production %}
124
+ {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
125
+ {% else %}
126
+ {{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
127
+ {% endif %}
128
+ {% assign cache = nil %}
@@ -43,6 +43,8 @@ exclude_from_search: true
43
43
  {% assign consent_settings = modules.cookieconsent.settings %}
44
44
  {% assign lunr_search_defaults = modules.defaults.lunr.defaults %}
45
45
  {% assign lunr_search_settings = modules.lunr.settings %}
46
+ {% assign nbi_defaults = modules.defaults.nbinteract.defaults %}
47
+
46
48
 
47
49
  {% comment %} Control Center disabled
48
50
  --------------------------------------------------------------------------------
@@ -124,6 +126,10 @@ exclude_from_search: true
124
126
  {% assign translator_action = quicklinks_options.translator_action %}
125
127
  {% assign translator_label = quicklinks_options.translator_label %}
126
128
 
129
+ {% assign notebooks_icon = quicklinks_options.notebooks_icon %}
130
+ {% assign notebooks_action = quicklinks_options.notebooks_action %}
131
+ {% assign notebooks_label = quicklinks_options.notebooks_label %}
132
+
127
133
  {% assign r_text_icon = quicklinks_options.r_text_icon %}
128
134
  {% assign r_text_action = quicklinks_options.r_text_action %}
129
135
  {% assign r_text_label = quicklinks_options.r_text_label %}
@@ -154,6 +160,14 @@ exclude_from_search: true
154
160
  {% assign show_translator_icon = false %}
155
161
  {% endif %}
156
162
 
163
+ {% comment %} Show|Hide Notebooks icon
164
+ -------------------------------------------------------------------------------- {% endcomment %}
165
+ {% if nbi_defaults.enabled %}
166
+ {% assign show_notebooks_icon = true %}
167
+ {% else %}
168
+ {% assign show_notebooks_icon = false %}
169
+ {% endif %}
170
+
157
171
  {% comment %} Show|Hide AuthManager icon
158
172
  -------------------------------------------------------------------------------- {% endcomment %}
159
173
  {% if authentication_enabled %}
@@ -265,6 +279,7 @@ exclude_from_search: true
265
279
  {% 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
280
  {% 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
281
  {% 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 %}
282
+ {% if show_notebooks_icon %}<li id="quickLinksNotebookseButton" class="nav-item {{notebooks_action}}" style="display: none;"><a href="#" aria-label="{{translate_label}}"><i class="nav-icon {{icon_family}} {{icon_family}}-{{notebooks_icon}} {{icon_size}}"></i></a></li>{% endif %}
268
283
 
269
284
  {% comment %} Unused
270
285
  --------------------------------------------------------------------------------
@@ -79,7 +79,7 @@ exclude_from_search: true
79
79
  <p class="mb-3">{{translate_options.google.modal_settings.body_text.en}}</p>
80
80
  </div>
81
81
  <p style="font-size: 90%">{{translate_options.google.modal_settings.language_selector_title.en}}</p>
82
- <div id="dropdownJSON" class="mb-4" style="display:none"></div>
82
+ <div id="dropdownJSON" class="mb-2" style="display:none"></div>
83
83
  <p>
84
84
  <a href="#google-privacy" data-bs-toggle="collapse" class="">Privacy Notice</a>
85
85
  <a href="#google-options" data-bs-toggle="collapse" class="float-right">My Settings</a>
@@ -87,7 +87,7 @@ exclude_from_search: true
87
87
 
88
88
  <div id="google-privacy" class="collapse">
89
89
  <div class="modal-body-text" style="font-size: 90%">
90
- <p class="mb-4">{{translate_options.google.modal_settings.privacy_notice.en}}</p>
90
+ <p class="mb-2">{{translate_options.google.modal_settings.privacy_notice.en}}</p>
91
91
  </div>
92
92
  </div>
93
93
 
@@ -96,7 +96,7 @@ exclude_from_search: true
96
96
  <div class="d-inline-block g-width-50 g-height-2 bg-primary mb-3"></div>
97
97
 
98
98
  <div class="translator-option" data-name="analysis">
99
- <div class="switch">
99
+ <div class="switch mb-1">
100
100
  <label>
101
101
  <input id="checkboxAnalysis" type="checkbox" name="checkboxAnalysis" checked>
102
102
  <span class="bmd-switch-track"></span>
@@ -106,7 +106,7 @@ exclude_from_search: true
106
106
  </div>
107
107
 
108
108
  <div class="translator-option" data-name="personalization">
109
- <div class="switch">
109
+ <div class="switch mb-1">
110
110
  <label>
111
111
  <input id="checkboxPersonalization" type="checkbox" name="checkboxPersonalization" checked>
112
112
  <span class="bmd-switch-track"></span>
@@ -116,7 +116,7 @@ exclude_from_search: true
116
116
  </div>
117
117
 
118
118
  <div class="translator-option" data-name="useLanguageFromBrowser">
119
- <div class="switch">
119
+ <div class="switch mb-1">
120
120
  <label>
121
121
  <input id="checkboxuseLanguageFromBrowser" type="checkbox" name="checkboxuseLanguageFromBrowser" checked disabled>
122
122
  <span class="bmd-switch-track"></span>
@@ -126,7 +126,7 @@ exclude_from_search: true
126
126
  </div>
127
127
 
128
128
  <div class="translator-option" data-name="translateAllPages">
129
- <div class="switch">
129
+ <div class="switch mb-1">
130
130
  <label>
131
131
  <input id="checkboxTranslateAllPages" type="checkbox" name="checkboxTranslateAllPages" checked disabled>
132
132
  <span class="bmd-switch-track"></span>
@@ -136,7 +136,7 @@ exclude_from_search: true
136
136
  </div>
137
137
 
138
138
  <div class="translator-option" data-name="translationEnabled">
139
- <div class="switch">
139
+ <div class="switch mb-1">
140
140
  <label>
141
141
  <input id="checkboxTranslationEnabled" type="checkbox" name="checkboxTranslationEnabled" checked>
142
142
  <span class="bmd-switch-track"></span>
@@ -181,7 +181,7 @@ exclude_from_search: true
181
181
  </div>
182
182
  <div class="modal-body">
183
183
  <div class="modal-body-text" style="font-size: 90%">
184
- <p class="mb-4">{{translate_options.google.modal_settings.body_text.de}}</p>
184
+ <p class="mb-2">{{translate_options.google.modal_settings.body_text.de}}</p>
185
185
  </div>
186
186
  <p style="font-size: 90%">{{translate_options.google.modal_settings.language_selector_title.de}}</p>
187
187
  <div id="dropdownJSON" class="mb-4" style="display:none"></div>
@@ -192,7 +192,7 @@ exclude_from_search: true
192
192
 
193
193
  <div id="google-privacy" class="collapse">
194
194
  <div class="modal-body-text" style="font-size: 90%">
195
- <p class="mb-4">{{translate_options.google.modal_settings.privacy_notice.de}}</p>
195
+ <p class="mb-2">{{translate_options.google.modal_settings.privacy_notice.de}}</p>
196
196
  </div>
197
197
  </div>
198
198
 
@@ -201,7 +201,7 @@ exclude_from_search: true
201
201
  <div class="d-inline-block g-width-50 g-height-2 bg-primary mb-3"></div>
202
202
 
203
203
  <div class="translator-option" data-name="analysis">
204
- <div class="switch">
204
+ <div class="switch mb-1">
205
205
  <label>
206
206
  <input id="checkboxAnalysis" type="checkbox" name="checkboxAnalysis" checked>
207
207
  <span class="bmd-switch-track"></span>
@@ -211,7 +211,7 @@ exclude_from_search: true
211
211
  </div>
212
212
 
213
213
  <div class="translator-option" data-name="personalization">
214
- <div class="switch">
214
+ <div class="switch mb-1">
215
215
  <label>
216
216
  <input id="checkboxPersonalization" type="checkbox" name="checkboxPersonalization" checked>
217
217
  <span class="bmd-switch-track"></span>
@@ -221,7 +221,7 @@ exclude_from_search: true
221
221
  </div>
222
222
 
223
223
  <div class="translator-option" data-name="useLanguageFromBrowser">
224
- <div class="switch">
224
+ <div class="switch mb-1">
225
225
  <label>
226
226
  <input id="checkboxUseLanguageFromBrowser" type="checkbox" name="checkboxUseLanguageFromBrowser" checked>
227
227
  <span class="bmd-switch-track"></span>
@@ -231,7 +231,7 @@ exclude_from_search: true
231
231
  </div>
232
232
 
233
233
  <div class="translator-option" data-name="translateAllPages">
234
- <div class="switch">
234
+ <div class="switch mb-1">
235
235
  <label>
236
236
  <input id="checkboxTranslateAllPages" type="checkbox" name="checkboxTranslateAllPages" checked disabled>
237
237
  <span class="bmd-switch-track"></span>
@@ -241,7 +241,7 @@ exclude_from_search: true
241
241
  </div>
242
242
 
243
243
  <!-- div class="translator-option" data-name="translatorName">
244
- <div class="switch">
244
+ <div class="switch mb-1">
245
245
  <label>
246
246
  <input id="checkboxTranslatorName" type="checkbox" name="checkboxTranslatorNameEnabled" disabled="true" checked>
247
247
  <span class="bmd-switch-track"></span>
@@ -251,7 +251,7 @@ exclude_from_search: true
251
251
  </div -->
252
252
 
253
253
  <div class="translator-option" data-name="translationEnabled">
254
- <div class="switch">
254
+ <div class="switch mb-1">
255
255
  <label>
256
256
  <input id="checkboxTranslator" type="checkbox" name="checkboxTranslator" checked>
257
257
  <span class="bmd-switch-track"></span>
@@ -275,7 +275,8 @@ j1.adapter.mmenu = (function (j1, window) {
275
275
 
276
276
  const drawer_{{menu_id}} = mmenu_{{menu_id}}.offcanvas ({
277
277
  // drawer options
278
- position: mmOptions.mmenu_drawer.position
278
+ position: mmOptions.mmenu_drawer.position,
279
+ toggle_mode: false
279
280
  });
280
281
 
281
282
  const navigator_{{menu_id}} = mmenu_{{menu_id}}.navigation ({
@@ -286,19 +287,40 @@ j1.adapter.mmenu = (function (j1, window) {
286
287
  theme: mmOptions.mmenu_navigator.theme
287
288
  });
288
289
 
290
+ // make sure the QL menu is shown, if mmenu is closed
291
+ // by mmenu backdrop
292
+ //
293
+ $(".mm-ocd").click(function() {
294
+ $('#quicklinks').show();
295
+ return false
296
+ });
297
+
289
298
  // Toggle Bars (Hamburger) for the NavBar to open|close
290
299
  // the mmenu drawer
300
+ //
291
301
  $('{{item.menu.content.button}}').each(function(e) {
292
302
  var $this = $(this);
303
+ var clicked;
293
304
 
294
- $this.on('click', function(e){
305
+ $this.on('click', function(e) {
295
306
  const button_{{menu_id}} = this;
296
307
  e.preventDefault();
297
- drawer_{{menu_id}}.open();
308
+ // toggle mmenu open|clse
309
+ clicked = $('body.mm-ocd-opened').length ? true : false;
310
+ if (clicked) {
311
+ drawer_{{menu_id}}.close();
312
+ $('#quicklinks').show();
313
+ clicked = false;
314
+ } else {
315
+ $('#quicklinks').hide();
316
+ drawer_{{menu_id}}.open();
317
+ clicked = true;
318
+ }
298
319
  });
299
320
  });
300
321
 
301
322
  // jadams, 2020-09-30: loading the menues (themes) if enabled
323
+ //
302
324
  if (themerEnabled) {
303
325
  // load REMOTE themes from Bootswatch API (localFeed EMPTY!)
304
326
  $('#remote_themes_mmenu').bootstrapThemeSwitcher({
@@ -716,8 +716,8 @@ j1.adapter.navigator = (function (j1, window) {
716
716
 
717
717
  // navQuicklinks styles
718
718
  // -----------------------------------------------------------------------
719
- $('head').append('<style>.attr-nav> ul > li > a { color: ' +navQuicklinksOptions.icon_color+ ' !important; }</style>');
720
- $('head').append('<style>.attr-nav> ul > li > a:hover { color: ' +navQuicklinksOptions.icon_color_hover+ ' !important; }</style>');
719
+ $('head').append('<style>.quicklink-nav> ul > li > a { color: ' +navQuicklinksOptions.icon_color+ ' !important; }</style>');
720
+ $('head').append('<style>.quicklink-nav> ul > li > a:hover { color: ' +navQuicklinksOptions.icon_color_hover+ ' !important; }</style>');
721
721
 
722
722
  // navMenu styles
723
723
  // -----------------------------------------------------------------------