slow-steps 0.3.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/contact-form.html +1 -1
- data/_includes/cookie-consent.html +21 -0
- data/_includes/footer/footer_redesign.html +53 -21
- data/_includes/forms/mc-register.html +22 -26
- data/_includes/functions/calc-svg-coord.html +2 -0
- data/_includes/functions/reposition-svg-labels.html +44 -0
- data/_includes/head/descriptors/og-meta.html +2 -2
- data/_includes/{google-analytics.html → head/google-analytics.html} +9 -2
- data/_includes/head/head.html +3 -1
- data/_includes/head/stylesheets.html +3 -0
- data/_includes/image-post.html +3 -1
- data/_includes/image.html +1 -1
- data/_includes/navigation/global.html +20 -4
- data/_includes/scripts.html +3 -1
- data/_layouts/about.html +1 -1
- data/_layouts/careers.html +1 -1
- data/_layouts/contact.html +1 -1
- data/_layouts/default.html +3 -0
- data/_layouts/env/clinician.html +6 -6
- data/_layouts/env/landing.html +4 -4
- data/_layouts/env/pwp.html +4 -4
- data/_layouts/error-page.html +1 -1
- data/_layouts/faq.html +1 -1
- data/_layouts/feed.html +2 -2
- data/_layouts/full-width.html +1 -1
- data/_layouts/post.html +2 -2
- data/_layouts/register.html +1 -1
- data/_sass/_colors/_variables.sass +2 -0
- data/_sass/_mixins.sass +3 -1
- data/_sass/env/breakpoints/768.sass +16 -11
- data/_sass/env/clinician.sass +9 -6
- data/_sass/env/pwp.sass +7 -1
- data/_sass/footer_redesign.sass +10 -8
- data/_sass/forms/mc-forms.sass +9 -0
- data/_sass/global.sass +60 -6
- data/_sass/navigation/breakpoints/1024.sass +35 -3
- data/_sass/post.sass +7 -1
- data/_sass/typography/_variables.sass +1 -1
- data/assets/js/svg_text_width.js +4 -4
- metadata +5 -4
- data/_includes/functions/pull_page_args.html +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f139255a97d5ba774425bd881d404f69326bb2372cef233eefea1242deeba391
|
4
|
+
data.tar.gz: f22d8b51ddfb3f79fe11c1aaaa1a1b8a577f028213dc8e8e8667714a567016fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e243fb03a274f344870367f793b22e5343c3d04337e7c6f945b201a5d5371d4fc273e020f3ad529cc08426add20ac3afb871abc6e70177cbeffe7e076b179fcf
|
7
|
+
data.tar.gz: 683f14a06a9918a18025b1b70faad3901b90d3c85f013b244904171b918623d8682c098d42f1ca4f54ae881b689a4dae73788da31c3263727b47fea59f4f9c7b
|
data/_includes/contact-form.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
<form action="https://formspree.io/f/{{ site.formspree }}" method="post" >
|
5
5
|
|
6
|
-
<label for="name">Enter your name</label>
|
6
|
+
<label for="name">Enter your full name</label>
|
7
7
|
<input type="text" class="form-element" name="name" id="name" placeholder="Your Name" required>
|
8
8
|
|
9
9
|
<label for="email">Enter your email</label>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!--
|
2
|
+
This is where we put scripts for managing cookie consent
|
3
|
+
This is placed before /body along with _include/scripts.html
|
4
|
+
-->
|
5
|
+
|
6
|
+
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
window.cookieconsent.initialise({
|
10
|
+
|
11
|
+
"theme": "block",
|
12
|
+
"position": "top",
|
13
|
+
"content": {
|
14
|
+
"message": "{{ site.cookieconsent.message }}",
|
15
|
+
"dismiss": "{{ site.cookieconsent.button }}",
|
16
|
+
"link": "Tell me more.",
|
17
|
+
"href": "/privacy-policy/#cookies",
|
18
|
+
"target": "_self"
|
19
|
+
}
|
20
|
+
});
|
21
|
+
</script>
|
@@ -11,53 +11,85 @@
|
|
11
11
|
<li class="ft__company__logo">
|
12
12
|
{% include /branding/site-logo.svg %}
|
13
13
|
</li>
|
14
|
-
|
14
|
+
|
15
|
+
<li class="ft__company__no">{{ site.company.registration }} {{ site.company.number }}.</li>
|
16
|
+
<!--
|
15
17
|
<li class="address"><h4>Registered office</h4></li>
|
16
18
|
{% for item in site.postal_add %}
|
17
19
|
<li class="address">{{ item[1] }}</li>
|
18
20
|
{% endfor %}
|
19
|
-
|
20
|
-
<!--
|
21
|
-
<ul class="social-media">
|
22
|
-
|
23
|
-
{% for social in site.socials %}
|
24
|
-
<li class="social-media-item">
|
25
|
-
<a href="{{ social.url }}">
|
26
|
-
<i class="fab fa-{{ social.icon }} social--{{ social.name }} social-media-link"></i></a>
|
27
|
-
</li>
|
28
|
-
{% endfor %}
|
29
|
-
|
30
|
-
</ul>
|
31
|
-
-->
|
21
|
+
-->
|
32
22
|
</ul>
|
33
23
|
|
34
24
|
</div>
|
35
25
|
</div>
|
36
26
|
|
27
|
+
|
28
|
+
|
37
29
|
<div class="ft__sitemap">
|
38
30
|
<div class="ft__sitemap--menu">
|
31
|
+
|
32
|
+
{% if page.url != "/" %}
|
33
|
+
|
34
|
+
<h2 class="ft__sitemap--header">COMPANY INFORMATION</h2>
|
35
|
+
|
36
|
+
<div class="ft__sitemap--env-wrap">
|
37
|
+
|
38
|
+
{% for item in site.data.menu.navigation %}
|
39
|
+
|
40
|
+
{% if item.env == page.env %}
|
41
|
+
|
42
|
+
<div class="ft__sitemap--env">
|
43
|
+
|
44
|
+
<ul class="ft__sitemap--submenu ft__sitemap--company">
|
45
|
+
|
46
|
+
{% for sub in item.submenu %}
|
47
|
+
{% if sub.id == 'footer' %}
|
48
|
+
|
49
|
+
<li><a class="ft__sitemap--link " href="{{ sub.url | relative_url }}">{{ sub.alt }}</a></li>
|
50
|
+
|
51
|
+
{% endif %}
|
52
|
+
{% endfor %}
|
53
|
+
|
54
|
+
</ul>
|
55
|
+
</div>
|
56
|
+
{% endif %}
|
57
|
+
|
58
|
+
{% endfor %}
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
{% endif %}
|
63
|
+
|
64
|
+
|
65
|
+
|
39
66
|
<h2 class="ft__sitemap--header">INFORMATION FOR</h2>
|
40
67
|
|
41
68
|
<div class="ft__sitemap--env-wrap">
|
42
|
-
|
69
|
+
{% for item in site.data.menu.navigation %}
|
43
70
|
|
44
71
|
<div class="ft__sitemap--env">
|
45
72
|
|
46
73
|
<h3 class="ft__sitemap--env-header">{{ item.name }}</h3>
|
47
74
|
<ul class="ft__sitemap--submenu">
|
48
|
-
|
49
|
-
{% if sub.id
|
75
|
+
{% for sub in item.submenu %}
|
76
|
+
{% if sub.id == 'nav' %}
|
77
|
+
|
50
78
|
<li><a class="ft__sitemap--link" href="{{ sub.url | relative_url }}">{{ sub.alt }}</a></li>
|
79
|
+
|
51
80
|
{% endif %}
|
52
|
-
|
81
|
+
{% endfor %}
|
53
82
|
</ul>
|
54
83
|
</div>
|
55
84
|
|
56
|
-
|
85
|
+
{% endfor %}
|
86
|
+
|
87
|
+
</div>
|
57
88
|
|
58
|
-
</div>
|
59
89
|
</div>
|
60
90
|
</div>
|
91
|
+
|
92
|
+
|
61
93
|
<div class="ft__contact">
|
62
94
|
|
63
95
|
<h2 class="ft__contact--header">Connect with us</h2>
|
@@ -65,7 +97,7 @@
|
|
65
97
|
<ul>
|
66
98
|
<li class="ft__contact--link"><a href="mailto:{{ site.email }}"><i class="fas fa-envelope"></i>{{ site.email }}</a></li>
|
67
99
|
|
68
|
-
|
100
|
+
<!--- <li class="ft__contact--link"><a href="tel:{{ site.phone }}"><i class="fas fa-phone-square"></i>{{ site.phone }}</a></li> -->
|
69
101
|
|
70
102
|
</ul>
|
71
103
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<div class="form__elem {{ item.type }}__elem mc--{{ item.width }} mc-field-group
|
12
12
|
{% if item.type == 'select' OR item.type == 'radio' %}input-group{% endif %}">
|
13
13
|
|
14
|
-
<label class="form--label {{ item.type }}-label" for="{{ item.
|
14
|
+
<label class="form--label {{ item.type }}-label" for="{{ item.id }}">
|
15
15
|
{{ item.label }}
|
16
16
|
{% if item.required %}
|
17
17
|
<span class="mc-asterisk">*</span>
|
@@ -22,8 +22,8 @@
|
|
22
22
|
{% for option in item.opts %}
|
23
23
|
<li>
|
24
24
|
<input type="{{ item.type }}" value="{{ option.value }}" name="{{ item.name }}"
|
25
|
-
id="{{ item.
|
26
|
-
<label for="{{ item.
|
25
|
+
id="{{ item.id }}-{{ option.id }}" {{ item.autofocus }}>
|
26
|
+
<label for="{{ item.id }}-{{ option.id }}">
|
27
27
|
{{ option.name }}
|
28
28
|
</label>
|
29
29
|
</li>
|
@@ -32,10 +32,9 @@
|
|
32
32
|
{% endif %}
|
33
33
|
|
34
34
|
{% if item.type == 'select' %}
|
35
|
-
<select name="{{ item.name }}" class="form--select form--elem {% if item.required %}required {% endif %}" id="{{ item.
|
35
|
+
<select name="{{ item.name }}" class="form--select form--elem {% if item.required %}required {% endif %}" id="{{ item.id }}" {{ item.autofocus }}>
|
36
36
|
{% for option in item.opts %}
|
37
|
-
<option type="{{ item.type }}" value="{{ option.value }}" name="{{ item.name }}"
|
38
|
-
id="{{ item.mce-id }}-{{ option.mce-id }}">
|
37
|
+
<option type="{{ item.type }}" value="{{ option.value }}" name="{{ item.name }}">
|
39
38
|
{{ option.name }}
|
40
39
|
</option>
|
41
40
|
{% endfor %}
|
@@ -43,15 +42,17 @@
|
|
43
42
|
{% endif %}
|
44
43
|
|
45
44
|
{% if item.type == 'textarea' %}
|
46
|
-
<textarea rows="4" name="{{ item.name }}" id="item.
|
45
|
+
<textarea rows="4" name="{{ item.name }}" id="{{ item.id }}"
|
47
46
|
class="form--textarea form--elem" {{ item.autofocus }}></textarea>
|
48
47
|
{% endif %}
|
49
48
|
|
50
49
|
{% if item.type == 'checkbox' %}
|
51
|
-
<label class="form--label {{ item.type }}-label--mod" for="{{ item.
|
50
|
+
<label class="form--label {{ item.type }}-label--mod" for="{{ item.id }}">
|
52
51
|
<p>{{ item.label }}</p>
|
53
52
|
<span class="styled-checkbox__block">
|
54
|
-
|
53
|
+
|
54
|
+
<input type="checkbox" class="styled-checkbox switch" id="{{ item.id }}" name="{{ item.name }}" {{ item.autofocus }} value="{{ item.value }}">
|
55
|
+
|
55
56
|
<span class="icon"><span class="icon--elem"></span></span>
|
56
57
|
<span class="no">NO</span>
|
57
58
|
<span class="yes">YES</span>
|
@@ -63,13 +64,14 @@
|
|
63
64
|
<input type="{{ item.type }}" value=""
|
64
65
|
{% if item.type == 'tel' %}
|
65
66
|
placeholder="Landline or mobile"
|
66
|
-
pattern="[0-9]{3}-[0-9]{3}-[0-9]{
|
67
|
+
pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}"
|
67
68
|
{% endif %}
|
68
69
|
name="{{ item.name }}"
|
69
70
|
class="{% if item.required %}required{% endif %} form--input form--elem"
|
70
|
-
id="{{ item.
|
71
|
+
id="{{ item.id }}"
|
71
72
|
{{ item.autofocus }}>
|
72
73
|
{% endif %}
|
74
|
+
|
73
75
|
</div>
|
74
76
|
|
75
77
|
{% endfor %}
|
@@ -81,10 +83,10 @@
|
|
81
83
|
|
82
84
|
<fieldset class="mc_fieldset gdprRequired mc-field-group" name="interestgroup_field">
|
83
85
|
{% for item in site.data.forms[page.env].gdpr %}
|
84
|
-
<label class="mc--{{ item.width }} form--label {{ item.type }}-label--mod checkbox subfield" for="
|
86
|
+
<label class="mc--{{ item.width }} form--label {{ item.type }}-label--mod checkbox subfield" for="{{ item.id }}">
|
85
87
|
<p>{{ item.label }}</p>
|
86
88
|
<span class="styled-checkbox__block">
|
87
|
-
<input type="checkbox" class="styled-checkbox switch av-checkbox gdpr" id="
|
89
|
+
<input type="checkbox" class="styled-checkbox switch av-checkbox gdpr" id="{{ item.id }}" value="Y" name="{{ item.name }}">
|
88
90
|
<span class="icon"><span class="icon--elem"></span></span>
|
89
91
|
<span class="no">NO</span>
|
90
92
|
<span class="yes">YES</span>
|
@@ -118,20 +120,14 @@
|
|
118
120
|
<input type="text" name="{{ site.data.forms.pwp.botspot-name }}" tabindex="-1" value="">
|
119
121
|
</div>
|
120
122
|
|
121
|
-
<div class="mc-field-group" style="position: absolute; left: -5000px;" aria-hidden="true">
|
122
|
-
<select name="USERTYPE" class="required" id="mce-USERTYPE">
|
123
|
-
<option value="PWP" {% if page.env == 'pwp' %}selected="selected"{% endif %}>PWP</option>
|
124
|
-
<option value="CLINICIAN" {% if page.env == 'clinician' %}selected="selected"{% endif %}>CLINICIAN</option>
|
125
|
-
|
126
|
-
</select>
|
127
|
-
</div>
|
128
|
-
|
129
123
|
<div class="mc-field-group input-group" style="position: absolute; left: -5000px;" aria-hidden="true">
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
124
|
+
<select name="USERTYPE" class="required" id="mce-USERTYPE" >
|
125
|
+
{% if page.env == 'pwp' %}
|
126
|
+
<option value="PwP" selected></option>
|
127
|
+
{% else %}
|
128
|
+
<option value="Clinician" selected></option>
|
129
|
+
{% endif %}
|
130
|
+
</select>
|
135
131
|
</div>
|
136
132
|
|
137
133
|
</div>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<!-- JS function to reposition SVG labels on images !fullwidth -->
|
2
|
+
<!-- We use Front Matter to determine if this script should be included, hence here and not in assets -->
|
3
|
+
|
4
|
+
<script type="text/javascript">
|
5
|
+
|
6
|
+
function reposition_svg_labels(){
|
7
|
+
|
8
|
+
/* get svg labels */
|
9
|
+
var svg = document.querySelectorAll('.augment-not-fullwidth .svg__labels');
|
10
|
+
|
11
|
+
/* rendered image in pixels */
|
12
|
+
var x_i_px = document.getElementsByClassName("image--guarantee")[0].offsetWidth ;
|
13
|
+
var y_i_px = document.getElementsByClassName("image--guarantee")[0].offsetHeight ;
|
14
|
+
var r_i = x_i_px / y_i_px ;
|
15
|
+
|
16
|
+
/* original image in pixels */
|
17
|
+
var x_0_px = {{ page.images.guarantee.size | split: ', ' | first }} ;
|
18
|
+
var y_0_px = {{ page.images.guarantee.size | split: ', ' | last }} ;
|
19
|
+
var r_0 = x_0_px / y_0_px ;
|
20
|
+
|
21
|
+
for (let i = 0; i < svg.length; i++) {
|
22
|
+
|
23
|
+
/* Reversing the calculation we did in Liquid on build */
|
24
|
+
var dx_0_px = parseInt( svg[i].getAttribute('x'), 10 ) / 100 * x_0_px ;
|
25
|
+
var dy_0_px = parseInt( svg[i].getAttribute('y'), 10 ) / 100 * y_0_px ;
|
26
|
+
|
27
|
+
if (r_i > r_0 ) { /* x_i / y_i > r_0 so x_i is 100% */
|
28
|
+
/* rendered image magnification */
|
29
|
+
var scale = x_i_px / x_0_px ;
|
30
|
+
var dy_i_px = dy_0_px * scale - ( (y_0_px * scale - y_i_px ) / 2 ) ;
|
31
|
+
svg[i].setAttribute("y", ( dy_i_px * 100 / y_i_px + '%') ) ;
|
32
|
+
|
33
|
+
}
|
34
|
+
if (r_i < r_0 ) { /* x_i/y_i < r_0 so y_i is 100% */
|
35
|
+
/* rendered image magnification */
|
36
|
+
var scale = y_i_px / y_0_px ;
|
37
|
+
var dx_i_px = dx_0_px * scale - ( (x_0_px * scale - x_i_px ) / 2 ) ;
|
38
|
+
svg[i].setAttribute("x", ( dx_i_px * 100 / x_i_px + '%') ) ;
|
39
|
+
}
|
40
|
+
};
|
41
|
+
}
|
42
|
+
reposition_svg_labels()
|
43
|
+
|
44
|
+
</script>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
<!-- *** OG *** https://ogp.me/ -->
|
3
|
-
<meta property="og:title" content="{% if page.url ==
|
3
|
+
<meta property="og:title" content="{% if page.url == '/' %} {{ site.title }} {% else %} {{ page.title }} | {{ site.title }} {% endif %}" />
|
4
4
|
|
5
5
|
<!-- Adds article properties for posts -->
|
6
6
|
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<!-- use local image if it exist but only for posts -->
|
38
38
|
|
39
39
|
{% if page.id %}
|
40
|
-
{% assign image = '/posts/' | append: page.
|
40
|
+
{% assign image = '/posts/' | append: page.hero %}
|
41
41
|
{% else %}
|
42
42
|
{% assign image = site.fallback_path | append: site.brand %}
|
43
43
|
{% endif %}
|
@@ -1,10 +1,15 @@
|
|
1
1
|
<!-- This goes before </head> closing tag -->
|
2
2
|
|
3
|
-
|
3
|
+
{% if site.google.verification %}
|
4
|
+
|
5
|
+
<!-- Google verification -->
|
4
6
|
<meta name="google-site-verification" content="{{ site.google.verification }}" />
|
5
7
|
|
6
|
-
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
{% if site.google.analytics %}
|
7
11
|
|
12
|
+
<!-- Google Analytics -->
|
8
13
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.analytics }}"></script>
|
9
14
|
|
10
15
|
<script>
|
@@ -13,3 +18,5 @@
|
|
13
18
|
gtag('js', new Date());
|
14
19
|
gtag('config', '{{ site.google.analytics }}');
|
15
20
|
</script>
|
21
|
+
|
22
|
+
{% endif %}
|
data/_includes/head/head.html
CHANGED
@@ -50,9 +50,11 @@
|
|
50
50
|
{% include /head/stylesheets.html %}
|
51
51
|
|
52
52
|
{% if jekyll.environment == "production" %}
|
53
|
-
{% include google-analytics.html %}
|
53
|
+
{% include head/google-analytics.html %}
|
54
54
|
{% endif %}
|
55
55
|
|
56
|
+
|
57
|
+
|
56
58
|
</head>
|
57
59
|
|
58
60
|
<body class="preload" onload="animate_after_load()">
|
@@ -1,3 +1,6 @@
|
|
1
|
+
|
2
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" media="none" onload="if(media!='all')media='all'" />
|
3
|
+
|
1
4
|
<!-- Animate on scroll, js is in footer -->
|
2
5
|
<link rel="stylesheet" type="text/css" href="{{ '/assets/vendor/aos/aos.css' | relative_url }}" media="none" onload="if(media!='all')media='all'" />
|
3
6
|
|
data/_includes/image-post.html
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
|
2
|
+
|
1
3
|
<!--
|
2
4
|
insert an image located in assets/images/posts/ and wrap with .post__image div.
|
3
5
|
-->
|
4
6
|
<div class="post__image">
|
5
7
|
|
6
|
-
{% picture post {{ include.link | prepend: 'posts/' }} --alt {{include.alt}} --img class="post__content--image" %}
|
8
|
+
{% picture post {{ include.link | prepend: 'posts/' }} --alt {{include.alt}} --img class="post__content--image image--{{ include.focus }}" %}
|
7
9
|
|
8
10
|
{% if include.caption %}
|
9
11
|
<p class="image--caption">{{ include.caption }}</p>
|
data/_includes/image.html
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
</div>
|
11
11
|
|
12
12
|
{% if page.url != "/" %}
|
13
|
-
|
13
|
+
<!-- exclude on home -->
|
14
14
|
{% if page.url != "/error-pages/404" %}
|
15
|
-
|
15
|
+
<!-- exclude on error pages -->
|
16
16
|
<ul class="social-media">
|
17
17
|
{% for social in site.socials %}
|
18
18
|
<li class="social-media-item">
|
@@ -24,11 +24,23 @@
|
|
24
24
|
|
25
25
|
<ul class="nav-list">
|
26
26
|
{% for item in site.data.menu.navigation %}
|
27
|
+
|
27
28
|
<li class="nav-group">
|
28
|
-
<a href="{{ item.url | relative_url }}" class="nav-group-link nav-link
|
29
|
-
|
29
|
+
<a href="{{ item.url | relative_url }}" class="nav-group-link nav-link
|
30
|
+
{% assign url = page.env | append: '/' | prepend: '/' %}
|
31
|
+
|
32
|
+
{% if item.url == url %}
|
33
|
+
current--env
|
34
|
+
{% endif %}
|
35
|
+
|
36
|
+
{{ item.env }}-group-link">
|
37
|
+
|
38
|
+
<span>{{ item.name }}</span>
|
39
|
+
</a>
|
40
|
+
|
30
41
|
<div class="nav-group-content {{ item.env }}-group">
|
31
42
|
{% for sub in item.submenu %}
|
43
|
+
{% if sub.id == 'nav' %}
|
32
44
|
<div class="nav-group-container">
|
33
45
|
<a
|
34
46
|
class="
|
@@ -36,6 +48,9 @@
|
|
36
48
|
sub-link
|
37
49
|
{% if page.url == sub.url %}
|
38
50
|
current--url
|
51
|
+
{% endif %}
|
52
|
+
{% if sub.cta == true %}
|
53
|
+
nav-cta
|
39
54
|
{% endif %}" href="{{ sub.url | relative_url }}">
|
40
55
|
<span>{{ sub.name }}</span></a>
|
41
56
|
|
@@ -50,6 +65,7 @@
|
|
50
65
|
{% endif %}
|
51
66
|
|
52
67
|
</div>
|
68
|
+
{% endif %}
|
53
69
|
{% endfor %}
|
54
70
|
</div>
|
55
71
|
</li>
|
data/_includes/scripts.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
<script type="text/javascript" src="{{ '/assets/js/svg_aos.js' | relative_url }}" async></script>
|
10
10
|
|
11
|
-
{% include functions/
|
11
|
+
{% include functions/reposition-svg-labels.html %}
|
12
12
|
|
13
13
|
{% endif %}
|
14
14
|
|
@@ -26,6 +26,8 @@
|
|
26
26
|
|
27
27
|
<script type="text/javascript" src="{{ '/assets/vendor/aos/aos.js' | relative_url }}" ></script>
|
28
28
|
|
29
|
+
{% include cookie-consent.html %}
|
30
|
+
|
29
31
|
<script>
|
30
32
|
AOS.init({
|
31
33
|
disable: false,
|
data/_layouts/about.html
CHANGED
@@ -41,7 +41,7 @@ Last full read through 29/12/2020
|
|
41
41
|
|
42
42
|
<!-- exclude if no text is provided -->
|
43
43
|
{% if site.data.copy.about[page.env].text %}
|
44
|
-
<div class="about__copy bg--env-100" >
|
44
|
+
<div class="about__copy bg--env-100" id="content">
|
45
45
|
|
46
46
|
{% for item in site.data.copy.about[page.env].text %}
|
47
47
|
<p class="about--copy" data-aos="fade-in">
|
data/_layouts/careers.html
CHANGED
data/_layouts/contact.html
CHANGED
data/_layouts/default.html
CHANGED
@@ -4,10 +4,13 @@ layout: compress
|
|
4
4
|
|
5
5
|
{% include head/head.html %}
|
6
6
|
|
7
|
+
<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
|
8
|
+
|
7
9
|
{% include navigation/global.html %}
|
8
10
|
|
9
11
|
{{ content }}
|
10
12
|
|
13
|
+
|
11
14
|
{% include footer/footer_redesign.html %}
|
12
15
|
|
13
16
|
{% include scripts.html %}
|
data/_layouts/env/clinician.html
CHANGED
@@ -66,12 +66,12 @@ Last full read through 27/12/2020
|
|
66
66
|
|
67
67
|
</div>
|
68
68
|
|
69
|
-
<div class="segment__wrap">
|
69
|
+
<div class="segment__wrap" id="content">
|
70
70
|
|
71
|
-
<div class="segment__left">
|
71
|
+
<div class="segment__left strap--opd-trust">
|
72
72
|
|
73
73
|
|
74
|
-
<div class="center-text segment__keywords
|
74
|
+
<div class="center-text segment__keywords ">
|
75
75
|
{% assign keyword = site.data.copy.landing.clinician.keywords | split: ", " %}
|
76
76
|
{% for word in (1..keyword.size) %}
|
77
77
|
<h3 data-aos="fade-in">{{ keyword[forloop.index0] }}</h3>
|
@@ -81,7 +81,7 @@ Last full read through 27/12/2020
|
|
81
81
|
{%- assign env = site.data.menu.navigation | where: 'env', 'clinician' -%}
|
82
82
|
{%- assign env = env[0] -%}
|
83
83
|
|
84
|
-
{%- assign cta = env.submenu | where: '
|
84
|
+
{%- assign cta = env.submenu | where: 'cta', 'true' -%}
|
85
85
|
{%- assign cta = cta[0] -%}
|
86
86
|
|
87
87
|
<a class="action__call" aria-label="{{ cta.aria }}" href="{{ cta.url }}">
|
@@ -95,8 +95,8 @@ Last full read through 27/12/2020
|
|
95
95
|
|
96
96
|
</div>
|
97
97
|
|
98
|
-
<div class="segment__right augmented-image" >
|
98
|
+
<div class="segment__right augmented-image svg__labels--red" >
|
99
99
|
|
100
|
-
{% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee
|
100
|
+
{% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee"%}
|
101
101
|
|
102
102
|
</div>
|
data/_layouts/env/landing.html
CHANGED
@@ -17,10 +17,10 @@ Last full read through 27/12/2020
|
|
17
17
|
{%- assign env = site.data.menu.navigation | where: 'env', 'pwp' -%}
|
18
18
|
{%- assign env = env[0] -%}
|
19
19
|
|
20
|
-
{%- assign cta = env.submenu | where: '
|
20
|
+
{%- assign cta = env.submenu | where: 'cta', 'true' -%}
|
21
21
|
{%- assign cta = cta[0] -%}
|
22
22
|
|
23
|
-
{%- assign cta_2 = env.submenu | where: '
|
23
|
+
{%- assign cta_2 = env.submenu | where: 'cta', 'landing' -%}
|
24
24
|
{%- assign cta_2 = cta_2[0] -%}
|
25
25
|
|
26
26
|
<div class="page__half">
|
@@ -51,10 +51,10 @@ Last full read through 27/12/2020
|
|
51
51
|
{%- assign env = site.data.menu.navigation | where: 'env', 'clinician' -%}
|
52
52
|
{%- assign env = env[0] -%}
|
53
53
|
|
54
|
-
{%- assign cta = env.submenu | where: '
|
54
|
+
{%- assign cta = env.submenu | where: 'cta', 'true' -%}
|
55
55
|
{%- assign cta = cta[0] -%}
|
56
56
|
|
57
|
-
{%- assign cta_2 = env.submenu | where: '
|
57
|
+
{%- assign cta_2 = env.submenu | where: 'cta', 'landing' -%}
|
58
58
|
{%- assign cta_2 = cta_2[0] -%}
|
59
59
|
|
60
60
|
<div class="page__half">
|
data/_layouts/env/pwp.html
CHANGED
@@ -78,7 +78,7 @@ Last full read through 27/12/2020
|
|
78
78
|
|
79
79
|
</div>
|
80
80
|
|
81
|
-
<div class="center-text strap__100 strap--opd-trust">
|
81
|
+
<div class="center-text strap__100 strap--opd-trust" id="content">
|
82
82
|
<h2>{{ site.data.copy.landing.pwp.subtitle }}</h2>
|
83
83
|
<p data-aos="fade-in">{{ site.data.copy.landing.pwp.strap }}</p>
|
84
84
|
</div>
|
@@ -87,7 +87,7 @@ Last full read through 27/12/2020
|
|
87
87
|
|
88
88
|
<div class="segment__left">
|
89
89
|
<div class="segment__gaurentee center-text">
|
90
|
-
<div data-aos="
|
90
|
+
<div data-aos="zoom-in">
|
91
91
|
{% include branding/site-logo.svg %}</div>
|
92
92
|
<p data-aos="fade-in" class="strap__guarantee">
|
93
93
|
{{ description }}</p></div>
|
@@ -100,9 +100,9 @@ Last full read through 27/12/2020
|
|
100
100
|
|
101
101
|
</div>
|
102
102
|
|
103
|
-
<div class="segment__right augmented-image" >
|
103
|
+
<div class="segment__right augmented-image svg__labels--red augment-not-fullwidth" >
|
104
104
|
|
105
|
-
{% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee
|
105
|
+
{% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee"%}
|
106
106
|
|
107
107
|
|
108
108
|
</div>
|
data/_layouts/error-page.html
CHANGED
data/_layouts/faq.html
CHANGED
data/_layouts/feed.html
CHANGED
@@ -14,14 +14,14 @@ layout: default
|
|
14
14
|
|
15
15
|
</section>
|
16
16
|
|
17
|
-
<div class="post__feed">
|
17
|
+
<div class="post__feed" id="content">
|
18
18
|
|
19
19
|
{% for post in site.posts %}
|
20
20
|
|
21
21
|
<div class="feed__card" data-aos="fade-up">
|
22
22
|
|
23
23
|
<div class="feed__card__image">
|
24
|
-
{% picture thumb {{ post.
|
24
|
+
{% picture thumb {{ post.hero | prepend: 'posts/' }} --alt {{ post.hero_alt }} --img class="feed__card--image image--{{ page.hero_focus }}" %}
|
25
25
|
</div>
|
26
26
|
<div class="feed__card--text">
|
27
27
|
<p class="feed__card--meta">Published <span>{{ post.date | date: "%b %d, %Y" }}</span></p>
|
data/_layouts/full-width.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -4,7 +4,7 @@ layout: default
|
|
4
4
|
|
5
5
|
<section class="post_head">
|
6
6
|
|
7
|
-
{% picture {{ page.
|
7
|
+
{% picture {{ page.hero | prepend: 'posts/' }} --alt {{ page.hero_alt }} --img class="post__hero image--{{ page.hero_focus }}" %}
|
8
8
|
|
9
9
|
<div class="post__title">
|
10
10
|
<h1 >{{ page.title }}</h1>
|
@@ -13,7 +13,7 @@ layout: default
|
|
13
13
|
</section>
|
14
14
|
|
15
15
|
|
16
|
-
<section class="post__content">
|
16
|
+
<section class="post__content" id="content">
|
17
17
|
|
18
18
|
<h2 class="post__subtitle">{{ page.subtitle }}</h2>
|
19
19
|
|
data/_layouts/register.html
CHANGED
data/_sass/_mixins.sass
CHANGED
@@ -18,7 +18,9 @@
|
|
18
18
|
opacity: .6
|
19
19
|
|
20
20
|
@mixin image-filter-rotate
|
21
|
-
|
21
|
+
mix-blend-mode: screen
|
22
|
+
filter: grayscale(1) brightness(1.3)
|
23
|
+
//contrast(.5) brightness(1.3) sepia(.6) hue-rotate(180deg) opacity(.5)
|
22
24
|
|
23
25
|
// Applied to an overlaying div
|
24
26
|
@mixin image-filter--blur
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
.segment__wrap
|
5
5
|
display: flex
|
6
|
-
flex-wrap:
|
6
|
+
flex-wrap: nowrap
|
7
7
|
flex-direction: row
|
8
8
|
width: 100vw
|
9
9
|
max-height: 100vh
|
@@ -12,35 +12,40 @@
|
|
12
12
|
height: 100vh
|
13
13
|
display: flex
|
14
14
|
flex-direction: column
|
15
|
+
justify-content: center
|
15
16
|
|
16
17
|
.segment__left
|
17
|
-
width:
|
18
|
+
width: 40vw
|
18
19
|
|
19
20
|
.segment__right
|
20
|
-
width:
|
21
|
+
width: 60vw
|
21
22
|
|
22
23
|
.segment__gaurentee
|
23
|
-
flex-direction: row
|
24
|
+
//flex-direction: row
|
24
25
|
height: 50%
|
25
|
-
justify-content: space-
|
26
|
-
padding: 0
|
27
|
-
text-align: left
|
26
|
+
justify-content: space-around
|
27
|
+
//padding: 0
|
28
|
+
//text-align: left
|
28
29
|
|
29
30
|
.site__logo
|
30
|
-
|
31
|
+
height: 10vh
|
31
32
|
|
32
33
|
.strap__guarantee
|
33
34
|
border: none
|
34
|
-
border-left: solid 2px $pure-white
|
35
|
+
//border-left: solid 2px $pure-white
|
35
36
|
width: 35vw
|
36
37
|
margin: 0
|
37
38
|
padding: 0 3rem
|
38
39
|
|
39
40
|
.segment__keywords
|
40
41
|
width: 100%
|
42
|
+
height: 60%
|
43
|
+
max-height: 800px
|
41
44
|
flex-direction: column
|
42
|
-
|
43
|
-
|
45
|
+
flex-wrap: nowrap
|
46
|
+
padding: 10rem 0
|
47
|
+
& > *
|
48
|
+
padding: 0
|
44
49
|
|
45
50
|
.clinician__strap
|
46
51
|
h1
|
data/_sass/env/clinician.sass
CHANGED
@@ -25,18 +25,17 @@ $hero-follow-bottom: 59.5vh
|
|
25
25
|
top: calc(var(--vh, 1vh) * #{strip-unit($hero-follow-bottom)})
|
26
26
|
|
27
27
|
.segment__keywords
|
28
|
-
align-items: center
|
29
28
|
display: flex
|
30
29
|
flex-direction: column
|
31
|
-
|
32
|
-
justify-content:
|
33
|
-
|
30
|
+
align-items: center
|
31
|
+
justify-content: space-around
|
32
|
+
padding: 3rem 2rem
|
34
33
|
& > *
|
35
|
-
padding:
|
36
|
-
width: 50%
|
34
|
+
padding: 2rem 0
|
37
35
|
|
38
36
|
.image--guarantee
|
39
37
|
@include image-filter-rotate
|
38
|
+
height: 100vh
|
40
39
|
|
41
40
|
.action__call
|
42
41
|
|
@@ -46,9 +45,13 @@ $hero-follow-bottom: 59.5vh
|
|
46
45
|
span
|
47
46
|
color: $env-primary
|
48
47
|
|
48
|
+
|
49
49
|
svg
|
50
50
|
stroke: $env-primary
|
51
51
|
|
52
52
|
&:hover
|
53
53
|
&::before
|
54
54
|
background-color: rgba($env-secondary, 1)
|
55
|
+
|
56
|
+
.segment__right
|
57
|
+
background-color: $image-blend
|
data/_sass/env/pwp.sass
CHANGED
@@ -50,13 +50,14 @@ $hero-follow-top: 4.5vh
|
|
50
50
|
.site__logo
|
51
51
|
margin: 0 5vw
|
52
52
|
text-align: center
|
53
|
-
|
53
|
+
height: 10vh
|
54
54
|
|
55
55
|
.segment__keywords
|
56
56
|
height: 50%
|
57
57
|
|
58
58
|
.image--guarantee
|
59
59
|
@include image-filter-rotate
|
60
|
+
height: 100vh
|
60
61
|
|
61
62
|
.strap__guarantee
|
62
63
|
border-top: solid 1px $soft-white
|
@@ -71,6 +72,11 @@ $hero-follow-top: 4.5vh
|
|
71
72
|
display: flex
|
72
73
|
flex-direction: row
|
73
74
|
flex-wrap: wrap
|
75
|
+
justify-content: space-around
|
76
|
+
align-items: center
|
74
77
|
& > *
|
75
78
|
padding: 3rem 0
|
76
79
|
width: 50%
|
80
|
+
|
81
|
+
.segment__right
|
82
|
+
background-color: $image-blend
|
data/_sass/footer_redesign.sass
CHANGED
@@ -73,6 +73,7 @@
|
|
73
73
|
li
|
74
74
|
//line-height: 2rem
|
75
75
|
list-style: none
|
76
|
+
|
76
77
|
&:last-child
|
77
78
|
@include default-trans
|
78
79
|
margin: auto
|
@@ -88,6 +89,7 @@
|
|
88
89
|
a
|
89
90
|
text-decoration: none
|
90
91
|
|
92
|
+
|
91
93
|
.ft__sitemap--link
|
92
94
|
//text-decoration: none
|
93
95
|
color: inherit
|
@@ -220,7 +222,7 @@
|
|
220
222
|
width: 40vw
|
221
223
|
|
222
224
|
.ft__sitemap, .ft__contact
|
223
|
-
margin-top:
|
225
|
+
margin-top: 0
|
224
226
|
|
225
227
|
|
226
228
|
.ft__sitemap--submenu
|
@@ -250,22 +252,22 @@
|
|
250
252
|
list-style: none
|
251
253
|
|
252
254
|
&:last-child
|
253
|
-
margin-top: 5rem
|
255
|
+
//margin-top: 5rem
|
256
|
+
margin-bottom: 8rem
|
254
257
|
width: auto
|
258
|
+
border: solid 1px $opd-coral
|
259
|
+
|
255
260
|
.ft__sitemap--link
|
256
261
|
@include default-trans
|
257
|
-
background-color: $opd-coral
|
258
|
-
border: solid 1px $opd-coral
|
259
|
-
|
260
262
|
text-align: center
|
261
263
|
padding: 2rem 3rem
|
262
264
|
width: auto
|
263
265
|
border-radius: 6px
|
264
266
|
cursor: pointer
|
265
267
|
text-transform: uppercase
|
266
|
-
|
267
|
-
|
268
|
-
|
268
|
+
&:hover
|
269
|
+
background-color: rgba($opd-coral,.3)
|
270
|
+
border: solid 1px $pure-white
|
269
271
|
|
270
272
|
.ft__sitemap--link
|
271
273
|
text-decoration: none
|
data/_sass/forms/mc-forms.sass
CHANGED
data/_sass/global.sass
CHANGED
@@ -87,6 +87,7 @@ body
|
|
87
87
|
object-fit: cover
|
88
88
|
object-position: center
|
89
89
|
width: 100%
|
90
|
+
display: inherit
|
90
91
|
|
91
92
|
.image__filter--mix
|
92
93
|
@include image-filter--mix
|
@@ -206,7 +207,8 @@ body
|
|
206
207
|
stroke-width: 1
|
207
208
|
|
208
209
|
& > .svg--text
|
209
|
-
font-size: $font-size
|
210
|
+
font-size: $lg-font-size
|
211
|
+
font-weight: $heavy-font
|
210
212
|
|
211
213
|
.svg__labels.hidden
|
212
214
|
|
@@ -234,6 +236,13 @@ body
|
|
234
236
|
& > .trans-right
|
235
237
|
animation: trans-in-right .6s ease-in-out
|
236
238
|
|
239
|
+
// This is digusting! We need to tweak the actual html so we can readilly access these elements.
|
240
|
+
.svg__labels--red
|
241
|
+
& > svg > * > *
|
242
|
+
fill: darken($opd-coral, 10)
|
243
|
+
& > svg > * > line
|
244
|
+
stroke: darken($opd-coral,10)!important
|
245
|
+
|
237
246
|
|
238
247
|
$svg-text-offset: 60px
|
239
248
|
|
@@ -341,9 +350,8 @@ $svg-text-offset: 60px
|
|
341
350
|
|
342
351
|
// This is basically a button and should to be centralised
|
343
352
|
.action__call
|
344
|
-
|
345
|
-
|
346
|
-
margin: -100px auto
|
353
|
+
font-size: $font-size
|
354
|
+
margin: 0 auto
|
347
355
|
padding: 2rem
|
348
356
|
position: relative
|
349
357
|
text-decoration: none
|
@@ -354,9 +362,9 @@ $svg-text-offset: 60px
|
|
354
362
|
content: ''
|
355
363
|
display: block
|
356
364
|
height: 6rem
|
357
|
-
left:
|
365
|
+
left: -1rem
|
358
366
|
position: absolute
|
359
|
-
top:
|
367
|
+
top: .5rem
|
360
368
|
transition: .2s ease
|
361
369
|
width: 6rem
|
362
370
|
|
@@ -385,3 +393,49 @@ $svg-text-offset: 60px
|
|
385
393
|
|
386
394
|
span
|
387
395
|
color: $white
|
396
|
+
|
397
|
+
|
398
|
+
.cc-window
|
399
|
+
background-color: $opd-blue
|
400
|
+
display: flex
|
401
|
+
align-items: center
|
402
|
+
position: fixed
|
403
|
+
|
404
|
+
.cc-message
|
405
|
+
width: 80vw
|
406
|
+
padding: 3rem 2rem
|
407
|
+
color: $pure-white
|
408
|
+
|
409
|
+
.cc-compliance
|
410
|
+
width: 20vw
|
411
|
+
border-style: none
|
412
|
+
height: 100%
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
.cc-dismiss
|
417
|
+
display: flex
|
418
|
+
flex-wrap: nowrap
|
419
|
+
background-color: $opd-coral
|
420
|
+
border-style: none
|
421
|
+
color: $pure-white
|
422
|
+
border-radius: 6px
|
423
|
+
|
424
|
+
&:hover
|
425
|
+
background-color: lighten($opd-coral, 10)
|
426
|
+
|
427
|
+
.cc-link
|
428
|
+
text-decoration: none
|
429
|
+
color: lighten($opd-coral, 10)
|
430
|
+
|
431
|
+
&:hover
|
432
|
+
color: $opd-coral
|
433
|
+
|
434
|
+
|
435
|
+
.skip-link
|
436
|
+
margin: 0
|
437
|
+
position: absolute
|
438
|
+
padding: 0
|
439
|
+
width: 1px
|
440
|
+
height: 1px
|
441
|
+
overflow: hidden
|
@@ -21,7 +21,8 @@
|
|
21
21
|
.nav-brand
|
22
22
|
@include default-trans
|
23
23
|
height: 8vh
|
24
|
-
max-height: 100px
|
24
|
+
//max-height: 100px
|
25
|
+
// max-height breaks vertical centering
|
25
26
|
|
26
27
|
.nav-scrolled
|
27
28
|
background-color: $env-primary
|
@@ -31,9 +32,11 @@
|
|
31
32
|
@include default-trans
|
32
33
|
display: flex
|
33
34
|
position: absolute
|
34
|
-
max-
|
35
|
+
//max-height: 100px
|
36
|
+
// max-height breaks vertical centering
|
35
37
|
height: 10vh
|
36
38
|
top: 7.5vh
|
39
|
+
margin-top: 0
|
37
40
|
|
38
41
|
.site__logo
|
39
42
|
position: absolute
|
@@ -60,6 +63,8 @@
|
|
60
63
|
|
61
64
|
.nav-group-content
|
62
65
|
//text-indent: 2rem
|
66
|
+
&:last-child
|
67
|
+
margin-right: 10rem
|
63
68
|
.nav-link
|
64
69
|
margin: 0
|
65
70
|
|
@@ -72,10 +77,31 @@
|
|
72
77
|
overflow: hidden
|
73
78
|
position: relative
|
74
79
|
|
80
|
+
|
75
81
|
.sub-link,
|
76
82
|
.subsub-link
|
77
83
|
color: $env-primary
|
84
|
+
border-bottom: solid 1px $pure-white
|
85
|
+
span
|
86
|
+
padding: 1rem 0
|
87
|
+
|
88
|
+
.nav-cta
|
89
|
+
@include default-trans
|
90
|
+
color: $pure-white
|
91
|
+
background-color: $env-primary
|
92
|
+
//padding: 2rem 2rem!important
|
93
|
+
margin-right: 8rem!important
|
94
|
+
border-radius: 6px
|
78
95
|
|
96
|
+
span
|
97
|
+
padding: 0
|
98
|
+
|
99
|
+
&:before, &:after
|
100
|
+
display: none!important
|
101
|
+
|
102
|
+
&:hover
|
103
|
+
background-color: darken($env-primary,10)
|
104
|
+
border-bottom: none
|
79
105
|
|
80
106
|
// Surround current link with ticks
|
81
107
|
.current--url
|
@@ -93,6 +119,11 @@
|
|
93
119
|
&:after
|
94
120
|
left: 3px
|
95
121
|
|
122
|
+
.current--env
|
123
|
+
span
|
124
|
+
border-bottom: solid 1px $pure-white
|
125
|
+
|
126
|
+
|
96
127
|
.nav-group-content
|
97
128
|
@include default-trans
|
98
129
|
@include navbar-color
|
@@ -151,7 +182,8 @@
|
|
151
182
|
padding: 1rem 3rem
|
152
183
|
&:not(.current--url)
|
153
184
|
&:hover
|
154
|
-
|
185
|
+
span
|
186
|
+
border-bottom: solid 1px $env-primary
|
155
187
|
|
156
188
|
.nav-group-container:hover > .nav-subsub-content
|
157
189
|
visibility: visible
|
data/_sass/post.sass
CHANGED
@@ -53,10 +53,16 @@
|
|
53
53
|
.post__content--image
|
54
54
|
display: block
|
55
55
|
object-fit: cover
|
56
|
-
object-position:
|
56
|
+
object-position: center
|
57
57
|
width: 100%
|
58
58
|
height: 50vh
|
59
59
|
|
60
|
+
.image--north
|
61
|
+
object-position: top
|
62
|
+
|
63
|
+
.image--south
|
64
|
+
object-position: bottom
|
65
|
+
|
60
66
|
.post__link
|
61
67
|
color: $opd-blue
|
62
68
|
text-decoration: none
|
data/assets/js/svg_text_width.js
CHANGED
@@ -22,21 +22,21 @@ function svg_text_width() {
|
|
22
22
|
if(view_width > 768 ){
|
23
23
|
var lineLength = 100 ; // length in pixels of the drawn line
|
24
24
|
var x_offset = 10 + width ; // offset the text label s.t. last character sits 10 px from end of line
|
25
|
-
var y_offset =
|
25
|
+
var y_offset = 5 ;
|
26
26
|
} else {
|
27
27
|
var lineLength = 70 ;
|
28
28
|
var x_offset = 0 ; // offset the text label s.t. first character sits inline with end of line
|
29
|
-
var y_offset = -
|
29
|
+
var y_offset = -8 ;}
|
30
30
|
lines[i].setAttribute("stroke-dashoffset", lineLength + 'px')
|
31
31
|
lines[i].setAttribute("stroke-dasharray", lineLength + 'px')
|
32
32
|
if( text[i].classList.contains('trans-left')){
|
33
33
|
lines[i].setAttribute("x2", -lineLength + 'px')
|
34
34
|
text[i].setAttribute("x", - lineLength - x_offset + 'px');
|
35
|
-
text[i].setAttribute("y", y_offset + '
|
35
|
+
text[i].setAttribute("y", y_offset + 'px');
|
36
36
|
} else {
|
37
37
|
lines[i].setAttribute("x2", lineLength + 'px')
|
38
38
|
text[i].setAttribute("x", lineLength + x_offset - width + 'px');
|
39
|
-
text[i].setAttribute("y", y_offset + '
|
39
|
+
text[i].setAttribute("y", y_offset + 'px');
|
40
40
|
};
|
41
41
|
};
|
42
42
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slow-steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Made Slowly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -184,6 +184,7 @@ files:
|
|
184
184
|
- _includes/build-version.html
|
185
185
|
- _includes/contact-details.html
|
186
186
|
- _includes/contact-form.html
|
187
|
+
- _includes/cookie-consent.html
|
187
188
|
- _includes/env_filter.html
|
188
189
|
- _includes/errors/robot-403.svg
|
189
190
|
- _includes/errors/robot-404.svg
|
@@ -192,13 +193,13 @@ files:
|
|
192
193
|
- _includes/footer/footer_redesign.html
|
193
194
|
- _includes/forms/mc-register.html
|
194
195
|
- _includes/functions/calc-svg-coord.html
|
195
|
-
- _includes/functions/
|
196
|
+
- _includes/functions/reposition-svg-labels.html
|
196
197
|
- _includes/gmap.html
|
197
|
-
- _includes/google-analytics.html
|
198
198
|
- _includes/head/README.md
|
199
199
|
- _includes/head/descriptors/og-meta.html
|
200
200
|
- _includes/head/descriptors/structured-data.html
|
201
201
|
- _includes/head/descriptors/twitter-meta.html
|
202
|
+
- _includes/head/google-analytics.html
|
202
203
|
- _includes/head/head.html
|
203
204
|
- _includes/head/stylesheets.html
|
204
205
|
- _includes/image-post.html
|
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
<script type="text/javascript">
|
3
|
-
|
4
|
-
function svg_aug_contained_image(){
|
5
|
-
|
6
|
-
var x_i = document.getElementsByClassName("image--guarantee")[0].offsetWidth ;
|
7
|
-
var y_i = document.getElementsByClassName("image--guarantee")[0].offsetHeight ;
|
8
|
-
/* get svg labels */
|
9
|
-
var svg = document.querySelectorAll('.svg__augment > .augment--guarantee');
|
10
|
-
|
11
|
-
/* origanal image width in pixels */
|
12
|
-
var x_0 = {{ page.images.guarantee.size | split: ', ' | first }} ;
|
13
|
-
var y_0 = {{ page.images.guarantee.size | split: ', ' | last }} ;
|
14
|
-
|
15
|
-
for (let i = 0; i < svg.length; i++) {
|
16
|
-
/* origanal x position in pixels */
|
17
|
-
var dx_0 = parseInt( svg[i].getAttribute('x'), 10 ) / 100 ;
|
18
|
-
var dy_0 = parseInt( svg[i].getAttribute('y'), 10 ) / 100 ;
|
19
|
-
|
20
|
-
var dx_0Pixel = dx_0 * x_0 ;
|
21
|
-
var dy_0Pixel = dy_0 * y_0 ;
|
22
|
-
|
23
|
-
svg[i].setAttribute("x", (dx_0Pixel - ( x_0 / 2) + (x_i / 2) ) / x_i * 100 + '%');
|
24
|
-
svg[i].setAttribute("y", (dy_0Pixel - ( y_0 / 2) + (y_i / 2) ) / y_i * 100 + '%');
|
25
|
-
};
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
|
-
//window.setInterval(svg_aug_contained_image, 200 )
|
30
|
-
|
31
|
-
</script>
|