j1-template 2021.1.4 → 2021.1.5
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/ad/google-adsense.html +7 -15
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +9 -5
- data/_includes/themes/j1/modules/navigator/generator.html +2 -2
- data/_layouts/default.html +4 -7
- data/assets/data/cookieconsent.html +249 -0
- data/assets/data/quicklinks.html +18 -16
- data/assets/themes/j1/adapter/js/{cookiebar.js → cookieConsent.js} +102 -54
- data/assets/themes/j1/adapter/js/j1.js +40 -15
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +2 -2
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +3 -9
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +3 -9
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/cookieConsent/LICENSE +21 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +286 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +28 -0
- data/assets/themes/j1/modules/iframeResizer/examples/frame.absolute.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.content.html +4 -3
- data/assets/themes/j1/modules/iframeResizer/examples/frame.hover.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.nested.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.textarea.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.tolerance.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/index.html +2 -0
- data/assets/themes/j1/modules/iframeResizer/examples/two.html +4 -2
- data/assets/themes/j1/modules/util/js/domready.js +146 -0
- data/assets/themes/j1/modules/util/js/gtag-opt-in.js +1 -0
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +2 -1
- data/lib/starter_web/_data/_defaults/resources.yml +11 -8
- data/lib/starter_web/_data/modules/{cookiebar.yml → cookieconsent.yml} +4 -4
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +135 -0
- data/lib/starter_web/_data/pages/builder.yml +7 -7
- data/lib/starter_web/_data/private.yml +6 -6
- data/lib/starter_web/_data/resources.yml +9 -7
- data/lib/starter_web/_includes/attributes.asciidoc +10 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/{cookies-1920x1200-bw.jpg → cookies-1920x1200.jpg} +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/cookieConsent.adoc +93 -0
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +2 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +104 -209
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +14 -13
- data/_includes/themes/j1/modules/navigator/generator.org.html +0 -232
- data/assets/data/cookiebar.html +0 -288
- data/assets/data/footer.new.1.html +0 -256
- data/assets/data/footer.new.2.html +0 -256
- data/assets/data/footer.org.html +0 -249
- data/assets/themes/j1/adapter/js/j1.new.js +0 -1878
- data/assets/themes/j1/adapter/js/j1.org.js +0 -1874
- data/lib/starter_web/_data/modules/defaults/cookiebar.yml +0 -133
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GTagOptIn=t():e.GTagOptIn=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return i})),n.d(t,"optIn",(function(){return f})),n.d(t,"optOut",(function(){return a}));let r=!1,o=void 0;const i=e=>{u(e),o=e},u=e=>{if(!e)throw new Error("gtag-opt-in: invalid value passed to `register` method. Make sure to use a valid Analytics ID.")},a=()=>{d(),window["ga-disable-"+o]=!0},f=()=>{d(),c(),window["ga-disable-"+o]=!1},d=()=>{if(!o)throw new Error("gtag-opt-in: no value found for Analytics ID. Make sure to register before by calling the `register` method.")},c=()=>{r||(l(),r=!0)},l=()=>{const e=s();p(e)},s=()=>(window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}),p=e=>{e("js",new Date),e("config",o,{anonymize_ip:!0})}}])}));
|
data/lib/j1/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module J1
|
2
|
-
VERSION = '2021.1.
|
3
|
-
end
|
1
|
+
module J1
|
2
|
+
VERSION = '2021.1.5'
|
3
|
+
end
|
data/lib/starter_web/Gemfile
CHANGED
@@ -54,7 +54,7 @@ gem 'jekyll', '~> 4.2'
|
|
54
54
|
|
55
55
|
# Theme Rubies, default: J1 Template (NOT used for the development system)
|
56
56
|
#
|
57
|
-
gem 'j1-template', '~> 2021.1.
|
57
|
+
gem 'j1-template', '~> 2021.1.5'
|
58
58
|
|
59
59
|
# ------------------------------------------------------------------------------
|
60
60
|
# PRODUCTION: Gem needed for the Jekyll and J1 prod environment
|
data/lib/starter_web/_config.yml
CHANGED
@@ -53,7 +53,7 @@ environment: production
|
|
53
53
|
# ------------------------------------------------------------------------------
|
54
54
|
# Sets the build version of J1 Template Gem
|
55
55
|
#
|
56
|
-
version: 2021.1.
|
56
|
+
version: 2021.1.5
|
57
57
|
|
58
58
|
# version
|
59
59
|
# ------------------------------------------------------------------------------
|
@@ -520,6 +520,7 @@ whitelist:
|
|
520
520
|
# EXCERPT settings
|
521
521
|
#
|
522
522
|
excerpt_separator: excerpt__end
|
523
|
+
excerpt_truncate_words: 100
|
523
524
|
|
524
525
|
# ------------------------------------------------------------------------------
|
525
526
|
# COLLECTION settings
|
@@ -549,13 +549,13 @@ resources:
|
|
549
549
|
init_function: [ j1.adapter.back2top.init ]
|
550
550
|
|
551
551
|
# ----------------------------------------------------------------------------
|
552
|
-
#
|
552
|
+
# GDPR compatible Cookie Consent for J1 Template
|
553
553
|
#
|
554
|
-
- name:
|
554
|
+
- name: J1 CookieConsent
|
555
555
|
resource:
|
556
|
-
id:
|
556
|
+
id: cookieConsent
|
557
557
|
enabled: true
|
558
|
-
comment: module
|
558
|
+
comment: module cookieConsent
|
559
559
|
region: head
|
560
560
|
layout: [ all ]
|
561
561
|
required: always
|
@@ -565,9 +565,9 @@ resources:
|
|
565
565
|
pass_init_data: false
|
566
566
|
data:
|
567
567
|
css: []
|
568
|
-
files: [ adapter/js/
|
569
|
-
js: []
|
570
|
-
init_function: [ j1.adapter.
|
568
|
+
files: [ adapter/js/cookieConsent.js ]
|
569
|
+
js: [ modules/cookieConsent/js/cookieConsent ]
|
570
|
+
init_function: [ j1.adapter.cookieConsent.init ]
|
571
571
|
|
572
572
|
# ----------------------------------------------------------------------------
|
573
573
|
# jqMouseWheel, jQuery plugin to add cross-browser mouse wheel support
|
@@ -1170,7 +1170,10 @@ resources:
|
|
1170
1170
|
enabled: true
|
1171
1171
|
comment: Floating Button Menu
|
1172
1172
|
region: head
|
1173
|
-
layout: [
|
1173
|
+
layout: [ # TODO: check if FAM makes sense for layout app
|
1174
|
+
home, page, post, collection,
|
1175
|
+
blog_archive
|
1176
|
+
]
|
1174
1177
|
required: always
|
1175
1178
|
preload: false # property currently unused
|
1176
1179
|
script_load: sync
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------
|
2
|
-
# ~/_data/modules/
|
3
|
-
# User configuration settings for J1
|
2
|
+
# ~/_data/modules/j1_cookieconsent.yml
|
3
|
+
# User configuration settings for J1 Cookie Consent module
|
4
4
|
#
|
5
5
|
# Product/Info:
|
6
6
|
# https://jekyll.one
|
@@ -16,9 +16,9 @@
|
|
16
16
|
#
|
17
17
|
description:
|
18
18
|
|
19
|
-
title:
|
19
|
+
title: CookieConsent
|
20
20
|
scope: User settings
|
21
|
-
location: _data/modules/
|
21
|
+
location: _data/modules/cookieconsent.yml
|
22
22
|
|
23
23
|
# ------------------------------------------------------------------------------
|
24
24
|
# User configuration settings
|
@@ -0,0 +1,135 @@
|
|
1
|
+
# ------------------------------------------------------------------------------
|
2
|
+
# ~/_data/modules/defaults/cookieconsent.yml
|
3
|
+
# Default configuration settings for J1 Cookie Consent module
|
4
|
+
#
|
5
|
+
# Product/Info:
|
6
|
+
# https://jekyll.one
|
7
|
+
#
|
8
|
+
# Copyright (C) 2021 Juergen Adams
|
9
|
+
#
|
10
|
+
# J1 Template is licensed under the MIT License.
|
11
|
+
# See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE
|
12
|
+
# ------------------------------------------------------------------------------
|
13
|
+
|
14
|
+
# ------------------------------------------------------------------------------
|
15
|
+
# About this configuration (used for J1 CC only)
|
16
|
+
#
|
17
|
+
about_config:
|
18
|
+
title: CookieConsent
|
19
|
+
scope: Default settings
|
20
|
+
location: _data/modules/defaults/cookieconsent.yml
|
21
|
+
|
22
|
+
# ------------------------------------------------------------------------------
|
23
|
+
# Default settings
|
24
|
+
#
|
25
|
+
defaults:
|
26
|
+
|
27
|
+
enabled: false
|
28
|
+
|
29
|
+
autoShowDialog: true # disable autoShowModal on the privacy policy and legal notice pages, to make these pages readable
|
30
|
+
language: en # the language, in which the modal is shown. Default navigator.language
|
31
|
+
languages: [en, de] # supported languages, defaults to first language in array (en)
|
32
|
+
contentURL: /assets/data/cookieconsent # this URL must contain the dialogs content in the needed languages
|
33
|
+
cookieName: j1.user.consent # the name of the cookie in which the configuration is stored as JSON
|
34
|
+
cookieStorageDays: 365 # the duration the cookie configuration is stored on the client
|
35
|
+
|
36
|
+
reloadPageOnChange: false # reload current page if any user settings has been changed
|
37
|
+
xhr_data_element: consent-data # container for the language-specific consent modal taken from /assets/data/cookieconsent.html
|
38
|
+
whitelisted: [ "/pages/public/legal/en/privacy" ] # pages no consent issued
|
39
|
+
|
40
|
+
consent_modal_title:
|
41
|
+
de: Ihre Privatsphäre
|
42
|
+
en: Your Privacy
|
43
|
+
|
44
|
+
body_text:
|
45
|
+
en: >
|
46
|
+
This website is using cookies and similar technologies that
|
47
|
+
are required for operation. You are free to decide to give,
|
48
|
+
refuse or withdraw your consent at any time by clicking
|
49
|
+
the <code>My Settings</code> button. Subsequent changes are
|
50
|
+
possible at any time by clicking on the <code>cookie icon</code>
|
51
|
+
in the menu bar.
|
52
|
+
<br><br>
|
53
|
+
Extended cookies are only used with your consent. Additional
|
54
|
+
cookies are used to analyze the usage of this website.
|
55
|
+
Analysis of the use of this website help gives you a better
|
56
|
+
user experience of the website to offer. More information
|
57
|
+
about what data is collected and how they may be passed on
|
58
|
+
to partners can be found in the <code>Privacy Policy</code>.
|
59
|
+
<br><br>
|
60
|
+
Visiting this website, you consent to the use of by clicking the
|
61
|
+
<code>I agree</code> button.
|
62
|
+
de: >
|
63
|
+
Diese Website nutzt Cookies und ähnliche Technologien, die
|
64
|
+
zum Betrieb erforderlich sind. Es steht Ihnen frei, Ihre
|
65
|
+
Zustimmung jederzeit zu geben, zu verweigern oder zurückzuziehen,
|
66
|
+
indem Sie auf die Schaltfläche <code>Meine Einstellungen</code>
|
67
|
+
klicken. Nachträgliche Änderungen sind jederzeit möglich, indem Sie
|
68
|
+
auf das <code>Cookie-Icon</code> in der Menüleiste klicken.
|
69
|
+
<br><br>
|
70
|
+
Erweiterte Cookies werden nur mit Ihrer Zustimmung verwendet.
|
71
|
+
Zusätzliche Cookies werden eingesetzt, um Analysen der Nutzung
|
72
|
+
dieser Website durchzuführen. Analysen der Nutzung dieser Website
|
73
|
+
helfen dabei, Ihnen ein besseres Nutzungserlebnis der Website
|
74
|
+
zu bieten. Weitere Informationen welche Daten gesammelt und
|
75
|
+
wie sie ggf. an Partner weitergegeben werden finden Sie in der
|
76
|
+
<code>Datenschutzerklärung</code>.
|
77
|
+
<br><br>
|
78
|
+
Für den Besuch dieser Webseite stimmen Sie der Verwendung zu,
|
79
|
+
indem Sie auf die Schaltfläche <code>Einverstanden</code> klicken.
|
80
|
+
|
81
|
+
privacy_notice:
|
82
|
+
en: >
|
83
|
+
The operators of this website take the protection of your personal data
|
84
|
+
seriously. We treat your data confidential and comply with the
|
85
|
+
General Data Protection Regulation (GDPR) of the European Union to
|
86
|
+
protect your privacy.
|
87
|
+
A small set of data is stored in persistent cookies, e.g. what data
|
88
|
+
you agree to be stored in cookies. Persistent cookies have a lifespan
|
89
|
+
of 365 days (a year). We and our partners make use of persistent cookies.
|
90
|
+
Those additional cookies are only used with your consent.
|
91
|
+
<br><br>
|
92
|
+
<code>Necessary</code> data is stored to run base services of this site.
|
93
|
+
This website is based on static content, and no database is used behind it.
|
94
|
+
All information (data) needed to control this site is stored in
|
95
|
+
so-called session cookies. Session cookies are automatically removed by your
|
96
|
+
browser if you close all windows.
|
97
|
+
<br><br>
|
98
|
+
<code>Analysis</code> of the use of this website helps us to optimize your
|
99
|
+
user experience of the website. For analysis, Google Analytics (GA) is used.
|
100
|
+
This website does <b>not</b> transfer any personal data to GA. Implicit
|
101
|
+
personal information, like IP addresses, is anonymized to protect your privacy.
|
102
|
+
<br><br>
|
103
|
+
<code>Personalization</code> is used e.g. to collect user feedback or running
|
104
|
+
advertising campaigns to provide you a website free of charge. Partners like
|
105
|
+
Disqus or Google enables us to provide you excellent personalized services and
|
106
|
+
enables us to finance the costs for running this site.
|
107
|
+
de: >
|
108
|
+
Die Betreiber dieser Website nehmen den Schutz Ihrer persönlichen Daten ernst.
|
109
|
+
Wir behandeln Ihre Daten vertraulich und halten uns zum Schutz Ihrer Privatsphäre
|
110
|
+
an die Datenschutz-Grundverordnung (DSGVO) der Europäischen Union. In persistenten
|
111
|
+
Cookies wird ein kleiner Datensatz gespeichert, z.B. mit welchen Daten Sie
|
112
|
+
einverstanden sind, in Cookies gespeichert zu werden. Dauerhafte Cookies haben
|
113
|
+
eine Lebensdauer von 365 Tagen (ein Jahr). Wir und unsere Partner verwenden
|
114
|
+
dauerhafte Cookies. Diese zusätzlichen Cookies werden nur mit Ihrer Zustimmung
|
115
|
+
verwendet.
|
116
|
+
<br><br>
|
117
|
+
<code>Notwendige</code> Daten werden gespeichert, um Basisdienste dieser Site zu
|
118
|
+
betreiben. Diese Website basiert auf statischen Inhalten und es wird keine
|
119
|
+
Datenbank dahinter verwendet. Alle Informationen (Daten), die zur Steuerung dieser
|
120
|
+
Seite benötigt werden, werden in sogenannten Session-Cookies gespeichert. Sitzungscookies
|
121
|
+
werden von Ihrem Browser automatisch entfernt, wenn Sie alle Fenster schließen.
|
122
|
+
<br><br>
|
123
|
+
<code>Analysen</code> der Nutzung dieser Website hilft uns, Ihr Nutzungserlebnis der
|
124
|
+
Website zu optimieren. Zur Analyse wird Google Analytics (GA) verwendet. Diese Website
|
125
|
+
übermittelt keine personenbezogenen Daten an GA. Implizite personenbezogene Daten wie
|
126
|
+
IP-Adressen werden zum Schutz Ihrer Privatsphäre anonymisiert.
|
127
|
+
<br><br>
|
128
|
+
<code>Personalisierung</code> wird z.B. um Benutzerfeedback zu sammeln oder
|
129
|
+
Werbekampagnen durchzuführen, um Ihnen eine Website kostenlos zur Verfügung zu
|
130
|
+
stellen. Partner wie Disqus oder Google ermöglichen es uns, Ihnen exzellente
|
131
|
+
personalisierte Dienste anzubieten und die Kosten für den Betrieb dieser Website
|
132
|
+
zu finanzieren.
|
133
|
+
|
134
|
+
# ------------------------------------------------------------------------------
|
135
|
+
# END config
|
@@ -75,13 +75,13 @@ generators:
|
|
75
75
|
title: Mansonry grid layout of Justified Gallery
|
76
76
|
tagline:
|
77
77
|
|
78
|
-
css: [
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
78
|
+
# css: [
|
79
|
+
# {
|
80
|
+
# local: "modules/cookiebar/css/cookiebar",
|
81
|
+
# remote: "https://cdnjs.cloudflare.com/ajax/libs/jquery-cookiebar/1.0.5/jquery.cookiebar"
|
82
|
+
# }
|
83
|
+
# ]
|
84
84
|
|
85
85
|
|
86
86
|
# ------------------------------------------------------------------------------
|
87
|
-
# END config
|
87
|
+
# END config
|
@@ -64,8 +64,8 @@ util_srv:
|
|
64
64
|
strategy: members
|
65
65
|
members: all
|
66
66
|
|
67
|
-
site_url: http://localhost:
|
68
|
-
site_redirect_url: http://localhost:
|
67
|
+
site_url: http://localhost:41010
|
68
|
+
site_redirect_url: http://localhost:41010/auth/github/callback
|
69
69
|
client_scope: repo, user
|
70
70
|
client_id: <your-client-id>
|
71
71
|
client_secret: <your-client-secret>
|
@@ -91,8 +91,8 @@ middleware:
|
|
91
91
|
name: <your-disqus-config-name>
|
92
92
|
user: <your-disqus-user>
|
93
93
|
|
94
|
-
client_url: http://localhost:
|
95
|
-
client_redirect_url: http://localhost:
|
94
|
+
client_url: http://localhost:41010
|
95
|
+
client_redirect_url: http://localhost:41010/auth/disqus/callback
|
96
96
|
client_id: <your-disqus-client-id>
|
97
97
|
client_secret: <your-disqus-client-secret>
|
98
98
|
|
@@ -110,8 +110,8 @@ middleware:
|
|
110
110
|
strategy: members
|
111
111
|
members: all
|
112
112
|
|
113
|
-
client_url: http://localhost:
|
114
|
-
client_redirect_url: http://localhost:
|
113
|
+
client_url: http://localhost:41010
|
114
|
+
client_redirect_url: http://localhost:41010/auth/github/callback
|
115
115
|
client_id: <your-gh-client-id>
|
116
116
|
client_secret: <your-gh-client-secret>
|
117
117
|
|
@@ -365,6 +365,8 @@ resources:
|
|
365
365
|
modules/util/js/js.cookie.js,
|
366
366
|
modules/util/js/lite-url.js,
|
367
367
|
modules/util/js/platform.js,
|
368
|
+
modules/util/js/domready.js,
|
369
|
+
modules/util/js/gtag-opt-in.js,
|
368
370
|
adapter/js/j1.js
|
369
371
|
]
|
370
372
|
js: [
|
@@ -549,13 +551,13 @@ resources:
|
|
549
551
|
init_function: [ j1.adapter.back2top.init ]
|
550
552
|
|
551
553
|
# ----------------------------------------------------------------------------
|
552
|
-
#
|
554
|
+
# GDPR compatible Cookie Consent for J1 Template
|
553
555
|
#
|
554
|
-
- name:
|
556
|
+
- name: J1 CookieConsent
|
555
557
|
resource:
|
556
|
-
id:
|
558
|
+
id: cookieConsent
|
557
559
|
enabled: true
|
558
|
-
comment: module
|
560
|
+
comment: module cookieConsent
|
559
561
|
region: head
|
560
562
|
layout: [ all ]
|
561
563
|
required: always
|
@@ -565,9 +567,9 @@ resources:
|
|
565
567
|
pass_init_data: false
|
566
568
|
data:
|
567
569
|
css: []
|
568
|
-
files: [ adapter/js/
|
569
|
-
js: []
|
570
|
-
init_function: [ j1.adapter.
|
570
|
+
files: [ adapter/js/cookieConsent.js ]
|
571
|
+
js: [ modules/cookieConsent/js/cookieConsent ]
|
572
|
+
init_function: [ j1.adapter.cookieConsent.init ]
|
571
573
|
|
572
574
|
# ----------------------------------------------------------------------------
|
573
575
|
# jqMouseWheel, jQuery plugin to add cross-browser mouse wheel support
|
@@ -113,6 +113,9 @@ tag::urls[]
|
|
113
113
|
|
114
114
|
:url-execjs--gh-repo: https://github.com/rails/execjs
|
115
115
|
|
116
|
+
:url-facebook--privacy-policy-en: https://www.facebook.com/policy.php
|
117
|
+
:url-facebook--privacy-policy-de: https://de-de.facebook.com/policy.php
|
118
|
+
|
116
119
|
:url-filamentgroup--home: https://www.filamentgroup.com/
|
117
120
|
|
118
121
|
:url-fontawesome--home: https://fontawesome.com/
|
@@ -137,6 +140,8 @@ tag::urls[]
|
|
137
140
|
:url-gdpr-eu--home: https://gdpr.eu/
|
138
141
|
|
139
142
|
:url-google-material-design-icons--gh-repo: https://github.com/google/material-design-icons
|
143
|
+
:url-google--deactivate-ga-en: http://tools.google.com/dlpage/gaoptout?hl=en
|
144
|
+
:url-google--privacy-policy-en: https://www.google.de/intl/en/policies/privacy
|
140
145
|
|
141
146
|
:url-heroku--home: https://www.heroku.com/home
|
142
147
|
|
@@ -145,6 +150,8 @@ tag::urls[]
|
|
145
150
|
:url-iconify--medical-icons: https://iconify.design/icon-sets/medical-icon/
|
146
151
|
:url-iconify--brand-icons: https://iconify.design/icon-sets/logos/
|
147
152
|
|
153
|
+
:url-instagram--privacy-policy: http://instagram.com/about/legal/privacy/
|
154
|
+
|
148
155
|
:url-iframe-resizer--gh-repo: https://github.com/davidjbradshaw/iframe-resizer
|
149
156
|
|
150
157
|
:url-j1--home: https://jekyll.one/
|
@@ -304,6 +311,8 @@ tag::urls[]
|
|
304
311
|
|
305
312
|
:url-twitter-emoji--gh-repo: https://github.com/twitter/twemoji
|
306
313
|
:url-twitter-emoji-picker--gh-repo: https://github.com/xLs51/Twemoji-Picker
|
314
|
+
:url-twitter--privacy-en: https://twitter.com/en/privacy
|
315
|
+
:url-twitter--login: https://twitter.com/login
|
307
316
|
|
308
317
|
:url-uglifier--gh-repo: https://github.com/lautis/uglifier
|
309
318
|
|
@@ -403,7 +412,7 @@ end::tables[]
|
|
403
412
|
// -----------------------------------------------------------------------------
|
404
413
|
tag::products[]
|
405
414
|
:j1--license: MIT License
|
406
|
-
:j1--version: 2021.1.
|
415
|
+
:j1--version: 2021.1.5
|
407
416
|
:j1--site-name: Jekyll One
|
408
417
|
end::products[]
|
409
418
|
|
data/lib/starter_web/assets/images/modules/attics/{cookies-1920x1200-bw.jpg → cookies-1920x1200.jpg}
RENAMED
File without changes
|
Binary file
|
@@ -5,7 +5,7 @@ tagline: good to know
|
|
5
5
|
categories: [ Featured, Post ]
|
6
6
|
tags: [ Cookies ]
|
7
7
|
|
8
|
-
image: /assets/images/modules/attics/cookies-1920x1200
|
8
|
+
image: /assets/images/modules/attics/cookies-1920x1200.jpg
|
9
9
|
|
10
10
|
regenerate: false
|
11
11
|
|
@@ -16,7 +16,7 @@ resource_options:
|
|
16
16
|
padding_bottom: 50
|
17
17
|
opacity: 0.5
|
18
18
|
slides:
|
19
|
-
- url: /assets/images/modules/attics/cookies-1920x1200
|
19
|
+
- url: /assets/images/modules/attics/cookies-1920x1200.jpg
|
20
20
|
alt: Photo by Miroslava on Unsplash
|
21
21
|
# caption:
|
22
22
|
# text: Photo by Miroslava on Unsplash
|
@@ -0,0 +1,93 @@
|
|
1
|
+
---
|
2
|
+
title: J1
|
3
|
+
tagline: Cookie Consent
|
4
|
+
date: 2021-06-24 00:00:00 +100
|
5
|
+
description: >
|
6
|
+
Bootstrap Cookie Consent Module
|
7
|
+
for J1 Template
|
8
|
+
|
9
|
+
categories: [ Software ]
|
10
|
+
tags: [ Cookie, Consent ]
|
11
|
+
|
12
|
+
scrollbar: false
|
13
|
+
fam_menu_id: default
|
14
|
+
|
15
|
+
permalink: /pages/public/cookieConsent/
|
16
|
+
regenerate: true
|
17
|
+
|
18
|
+
resources: [ bsCookieConsent ]
|
19
|
+
resource_options:
|
20
|
+
- attic:
|
21
|
+
padding_top: 400
|
22
|
+
padding_bottom: 50
|
23
|
+
opacity: 0.5
|
24
|
+
slides:
|
25
|
+
- url: /assets/images/modules/attics/cookies-1920x1200.jpg
|
26
|
+
---
|
27
|
+
|
28
|
+
// Page Initializer
|
29
|
+
// =============================================================================
|
30
|
+
// Enable the Liquid Preprocessor
|
31
|
+
:page-liquid:
|
32
|
+
|
33
|
+
// Set (local) page attributes here
|
34
|
+
// -----------------------------------------------------------------------------
|
35
|
+
// :page--attr: <attr-value>
|
36
|
+
:badges-enabled: false
|
37
|
+
|
38
|
+
// Load Liquid procedures
|
39
|
+
// -----------------------------------------------------------------------------
|
40
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
41
|
+
|
42
|
+
// Load page attributes
|
43
|
+
// -----------------------------------------------------------------------------
|
44
|
+
{% include {{load_attributes}} scope="global" %}
|
45
|
+
|
46
|
+
|
47
|
+
// Page content
|
48
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
49
|
+
|
50
|
+
++++
|
51
|
+
<div class="container">
|
52
|
+
<h2>Usage</h2>
|
53
|
+
<p>Initialize the cookie consent framework with the constructor</p>
|
54
|
+
<p><code>var cookieSettings = new BootstrapCookieConsent()</code></p>
|
55
|
+
<h3>Show the Dialog</h3>
|
56
|
+
<p>
|
57
|
+
On a new visit the dialog is shown automatically. For reconfiguration
|
58
|
+
show the Dialog again with <code>cookieSettings.showDialog()</code>.
|
59
|
+
</p>
|
60
|
+
<p>
|
61
|
+
<a href="javascript:showSettingsDialog()" class="btn btn-primary btn-raised">Cookie Settings</a>
|
62
|
+
</p>
|
63
|
+
<h2>Read the settings</h2>
|
64
|
+
<p>Read all cookie settings with <code>cookieSettings.getSettings()</code></p>
|
65
|
+
<div class="card mb-4">
|
66
|
+
<div class="card-body">
|
67
|
+
<pre class="mb-0" id="settingsOutput"></pre>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
<p>Read a specific cookie setting with <code>cookieSettings.getSettings('analyses')</code></p>
|
71
|
+
<div class="card">
|
72
|
+
<div class="card-body">
|
73
|
+
<pre class="mb-0" id="settingsAnalysisOutput"></pre>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<script>
|
79
|
+
|
80
|
+
function showSettingsDialog() {
|
81
|
+
j1.cookieConsent.showDialog();
|
82
|
+
}
|
83
|
+
|
84
|
+
var dependencies_met_cookie_consent_ready = setInterval (function (options) {
|
85
|
+
if ( typeof j1.cookieConsent !== 'undefined' ) {
|
86
|
+
$("#settingsOutput").text(JSON.stringify(j1.cookieConsent.getSettings()))
|
87
|
+
$("#settingsAnalysisOutput").text(j1.cookieConsent.getSettings('analyses'))
|
88
|
+
clearInterval(dependencies_met_cookie_consent_ready);
|
89
|
+
}
|
90
|
+
});
|
91
|
+
|
92
|
+
</script>
|
93
|
+
++++
|