swedbank-pay-design-guide-jekyll-theme 2.8.0 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/default.html +7 -11
- data/assets/js/cookie-consent.js +50 -0
- data/lib/gem_version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bef43c1bda12a011153336c8c23e3b82fbd5a8cc9525f1e8973e475052cee712
|
|
4
|
+
data.tar.gz: 374ea1214fde77125e260129aa954d13a052b8bdc64d99cc35620e2fad253578
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9dedc80e83d9446d65f7352774bbeffbbfd7dc57ae5ef30a6c5d87ffcd84752cbe66307ede6a8264d7d5e9bf6ef2c8000489a4a0127aa2c6d2dcc136fd79fbff
|
|
7
|
+
data.tar.gz: 8d545455cf8025a821628c6d91553bb44733bcc9bf627f4ed71abc2f578d306c213b16bd091fd00e7a14ef84e20d74493ecf7a1b34d1fab860b3c66944b385b2
|
data/_layouts/default.html
CHANGED
|
@@ -44,24 +44,19 @@
|
|
|
44
44
|
<title>{{ title }}</title>
|
|
45
45
|
<link rel="stylesheet" href="{{ design_guide_url }}/styles/swedbankpay.css" />
|
|
46
46
|
<link rel="stylesheet" href="{{ design_guide_url }}/styles/documentation-swedbankpay.css" />
|
|
47
|
-
<link rel="stylesheet" href="{{ "
|
|
48
|
-
<link rel="stylesheet" href="{{ "
|
|
47
|
+
<link rel="stylesheet" href="{{- "/assets/css/style.css" | relative_url -}}">
|
|
48
|
+
<link rel="stylesheet" href="{{- "/assets/css/pygments-autumn.css" | relative_url -}}">
|
|
49
49
|
<link rel="shortcut icon" href="{{ design_guide_url }}/icons/favicon.ico">
|
|
50
50
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ design_guide_url }}/icons/favicon-16x16.png">
|
|
51
51
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ design_guide_url }}/icons/favicon-32x32.png">
|
|
52
52
|
<link href="https://fonts.googleapis.com/css?family=Material+Icons+Outlined" rel="stylesheet">
|
|
53
|
-
{% if site.custom_head_scripts %}
|
|
54
|
-
{% for script in site.custom_head_scripts %}
|
|
55
|
-
<script src="{{ script | relative_url }}"></script>
|
|
56
|
-
{% endfor %}
|
|
57
|
-
{% endif %}
|
|
58
53
|
{%- include apple-mobile-headers.html design_guide_url=design_guide_url -%}
|
|
59
|
-
<script src="{{ '/assets/js/mermaid.min.js' | relative_url }}"></script>
|
|
54
|
+
<script src="{{- '/assets/js/mermaid.min.js' | relative_url -}}"></script>
|
|
60
55
|
{%- if site.search.enabled == true %}
|
|
61
56
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|
62
|
-
<script src="{{ "
|
|
63
|
-
<script src="{{ "
|
|
64
|
-
<script src="{{ "
|
|
57
|
+
<script src="{{- "/assets/tipuesearch/tipuesearch_content.js" | relative_url -}}"></script>
|
|
58
|
+
<script src="{{- "/assets/tipuesearch/tipuesearch_set.js" | relative_url -}}"></script>
|
|
59
|
+
<script src="{{- "/assets/tipuesearch/tipuesearch.min.js" | relative_url -}}"></script>
|
|
65
60
|
{%- endif %}
|
|
66
61
|
</head>
|
|
67
62
|
|
|
@@ -119,6 +114,7 @@
|
|
|
119
114
|
</div>
|
|
120
115
|
<script src="{{ design_guide_url }}/scripts/dg.js" global="true" autoload="true"></script>
|
|
121
116
|
<script src="{{ '/assets/js/swedbank-pay-design-guide-theme.js' | relative_url }}"></script>
|
|
117
|
+
<script src="{{ '/assets/js/cookie-consent.js' | relative_url }}"></script>
|
|
122
118
|
{%- if site.google_analytics.tracking_id %}
|
|
123
119
|
{% include google_analytics.html %}
|
|
124
120
|
{%- endif %}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Ensure DOM is ready before manipulating it
|
|
2
|
+
if (document.readyState === 'loading') {
|
|
3
|
+
document.addEventListener('DOMContentLoaded', initCookieConsent);
|
|
4
|
+
} else {
|
|
5
|
+
initCookieConsent();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function initCookieConsent() {
|
|
9
|
+
if (location.host === "developer.swedbankpay.com") {
|
|
10
|
+
var script = document.createElement('script');
|
|
11
|
+
script.src = 'https://cdn.consentmanager.net/delivery/js/semiautomatic.min.js';
|
|
12
|
+
script.type = "text/javascript";
|
|
13
|
+
script.setAttribute("data-cmp-ab", "1");
|
|
14
|
+
script.setAttribute("data-cmp-host", "d.delivery.consentmanager.net");
|
|
15
|
+
script.setAttribute("data-cmp-cdn", "cdn.consentmanager.net");
|
|
16
|
+
script.setAttribute("data-cmp-cdid", "4da9d0f9328c3");
|
|
17
|
+
script.setAttribute("data-cmp-codesrc", "0");
|
|
18
|
+
document.body.appendChild(script);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Clarity script - do not change
|
|
23
|
+
(function (c, l, a, r, i, t, y) {
|
|
24
|
+
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
|
|
25
|
+
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
|
|
26
|
+
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
|
|
27
|
+
})(window, document, "clarity", "script", "jd3awxna38");
|
|
28
|
+
// End of Clarity script
|
|
29
|
+
|
|
30
|
+
function updateConsent(e, o) {
|
|
31
|
+
var clarityVendorId = "s2631";
|
|
32
|
+
var result = __cmp('getCMPData');
|
|
33
|
+
if ("vendorConsents" in result) {
|
|
34
|
+
if (clarityVendorId in result.vendorConsents && result.vendorConsents[clarityVendorId]) {
|
|
35
|
+
window.clarity("consentv2", { analytics_Storage: "granted" });
|
|
36
|
+
} else {
|
|
37
|
+
window.clarity("consentv2", { analytics_Storage: "denied" });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function initCMP() {
|
|
43
|
+
if (typeof __cmp !== 'undefined') {
|
|
44
|
+
__cmp("addEventListener", ["consent", updateConsent, false], null);
|
|
45
|
+
} else {
|
|
46
|
+
setTimeout(initCMP, 100);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
initCMP();
|
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.8.
|
|
4
|
+
version: 2.8.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: 2025-12-
|
|
11
|
+
date: 2025-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -462,6 +462,7 @@ files:
|
|
|
462
462
|
- assets/img/flag-dk.svg
|
|
463
463
|
- assets/img/flag-no.svg
|
|
464
464
|
- assets/img/flag-se.svg
|
|
465
|
+
- assets/js/cookie-consent.js
|
|
465
466
|
- assets/js/mermaid.min.js
|
|
466
467
|
- assets/js/swedbank-pay-design-guide-theme.js
|
|
467
468
|
- assets/puml-theme-swedbankpay.puml
|