swedbank-pay-design-guide-jekyll-theme 2.1.11 → 2.1.12.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/default.html +2 -0
- data/assets/js/cookie-consent.js +40 -0
- data/lib/gem_version.rb +1 -1
- metadata +33 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1c49ca2882215cc207fbab5b8901ce5b963d4429204faf5f972dbbdcb8f397b
|
4
|
+
data.tar.gz: b8fb9787ebc2fd49d00181fa0d92735e14be6afdff7536053629e6979c763770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f53bd9dfede5ecd4cf928e27f3148cda03d8d3cdec058a9b712e0ad003be91a5275c8e9a42de51590bb431fdd79a5ae32bf0d8fe82bb6b829fac9fbf938ee824
|
7
|
+
data.tar.gz: a50b9968d8d03cf05d26368e8d311b5176bf8437e9aeff9e6ab8849d4db7bcc98e2a764ea342793251e72f739b4718a37a94fcbc793c160215f9bc68de56cfdc
|
data/_layouts/default.html
CHANGED
@@ -54,6 +54,7 @@
|
|
54
54
|
<script src="{{ "/assets/tipuesearch/tipuesearch_set.js" | relative_url }}"></script>
|
55
55
|
<script src="{{ "/assets/tipuesearch/tipuesearch.min.js" | relative_url }}"></script>
|
56
56
|
{%- endif %}
|
57
|
+
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="77c777e5-115a-4e3d-81ec-cc857a4ac846"></script>
|
57
58
|
</head>
|
58
59
|
|
59
60
|
<body>
|
@@ -111,6 +112,7 @@
|
|
111
112
|
</div>
|
112
113
|
<script src="{{ design_guide_url }}/scripts/dg.js" global="true" autoload="true"></script>
|
113
114
|
<script src="{{ '/assets/js/swedbank-pay-design-guide-theme.js' | relative_url }}"></script>
|
115
|
+
<script src="{{ '/assets/js/cookie-consent.js' | relative_url }}"></script>
|
114
116
|
{%- if site.google_analytics.tracking_id %}
|
115
117
|
{% include google_analytics.html %}
|
116
118
|
{%- endif %}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
function OptanonWrapper() { }
|
2
|
+
|
3
|
+
function activateClarity() {
|
4
|
+
// Clarity script - do not change
|
5
|
+
(function(c,l,a,r,i,t,y){
|
6
|
+
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
7
|
+
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
8
|
+
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
9
|
+
})(window, document, "clarity", "script", "jd3awxna38");
|
10
|
+
// End of Clarity script
|
11
|
+
}
|
12
|
+
|
13
|
+
function getCookie(name) {
|
14
|
+
if (document.cookie.split(";").some((c) => c.trim().startsWith(name + "="))) {
|
15
|
+
return document.cookie.split(";").find((c) => c.trim().startsWith(name + "="));
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
return false;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
function deleteCookie(name) {
|
23
|
+
if (getCookie(name)) {
|
24
|
+
document.cookie = name + "=;domain=.swedbankpay.com;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
function inactivateClarityCookies() {
|
29
|
+
deleteCookie("_clck");
|
30
|
+
deleteCookie("_clsk");
|
31
|
+
}
|
32
|
+
|
33
|
+
window.addEventListener("OneTrustGroupsUpdated", (event) => {
|
34
|
+
if (event.detail.indexOf("C0002") !== -1) {
|
35
|
+
activateClarity();
|
36
|
+
}
|
37
|
+
else {
|
38
|
+
inactivateClarityCookies();
|
39
|
+
}
|
40
|
+
});
|
data/lib/gem_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swedbank-pay-design-guide-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.12.pre.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swedbank Pay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -172,6 +172,20 @@ dependencies:
|
|
172
172
|
- - ">="
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '3.7'
|
175
|
+
- !ruby/object:Gem::Dependency
|
176
|
+
name: awesome_print
|
177
|
+
requirement: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :runtime
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
175
189
|
- !ruby/object:Gem::Dependency
|
176
190
|
name: bundler
|
177
191
|
requirement: !ruby/object:Gem::Requirement
|
@@ -352,6 +366,20 @@ dependencies:
|
|
352
366
|
- - ">="
|
353
367
|
- !ruby/object:Gem::Version
|
354
368
|
version: '0'
|
369
|
+
- !ruby/object:Gem::Dependency
|
370
|
+
name: awesome_print
|
371
|
+
requirement: !ruby/object:Gem::Requirement
|
372
|
+
requirements:
|
373
|
+
- - ">="
|
374
|
+
- !ruby/object:Gem::Version
|
375
|
+
version: '0'
|
376
|
+
type: :development
|
377
|
+
prerelease: false
|
378
|
+
version_requirements: !ruby/object:Gem::Requirement
|
379
|
+
requirements:
|
380
|
+
- - ">="
|
381
|
+
- !ruby/object:Gem::Version
|
382
|
+
version: '0'
|
355
383
|
description:
|
356
384
|
email:
|
357
385
|
- opensource@swedbankpay.com
|
@@ -429,6 +457,7 @@ files:
|
|
429
457
|
- assets/img/demoshop.svg
|
430
458
|
- assets/img/external-url-dark-bg.svg
|
431
459
|
- assets/img/external-url.svg
|
460
|
+
- assets/js/cookie-consent.js
|
432
461
|
- assets/js/mermaid.min.js
|
433
462
|
- assets/js/swedbank-pay-design-guide-theme.js
|
434
463
|
- assets/puml-theme-swedbankpay.puml
|
@@ -472,9 +501,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
472
501
|
version: 2.5.0
|
473
502
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
474
503
|
requirements:
|
475
|
-
- - "
|
504
|
+
- - ">"
|
476
505
|
- !ruby/object:Gem::Version
|
477
|
-
version:
|
506
|
+
version: 1.3.1
|
478
507
|
requirements: []
|
479
508
|
rubygems_version: 3.1.6
|
480
509
|
signing_key:
|