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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/contact-form.html +1 -1
  3. data/_includes/cookie-consent.html +21 -0
  4. data/_includes/footer/footer_redesign.html +53 -21
  5. data/_includes/forms/mc-register.html +22 -26
  6. data/_includes/functions/calc-svg-coord.html +2 -0
  7. data/_includes/functions/reposition-svg-labels.html +44 -0
  8. data/_includes/head/descriptors/og-meta.html +2 -2
  9. data/_includes/{google-analytics.html → head/google-analytics.html} +9 -2
  10. data/_includes/head/head.html +3 -1
  11. data/_includes/head/stylesheets.html +3 -0
  12. data/_includes/image-post.html +3 -1
  13. data/_includes/image.html +1 -1
  14. data/_includes/navigation/global.html +20 -4
  15. data/_includes/scripts.html +3 -1
  16. data/_layouts/about.html +1 -1
  17. data/_layouts/careers.html +1 -1
  18. data/_layouts/contact.html +1 -1
  19. data/_layouts/default.html +3 -0
  20. data/_layouts/env/clinician.html +6 -6
  21. data/_layouts/env/landing.html +4 -4
  22. data/_layouts/env/pwp.html +4 -4
  23. data/_layouts/error-page.html +1 -1
  24. data/_layouts/faq.html +1 -1
  25. data/_layouts/feed.html +2 -2
  26. data/_layouts/full-width.html +1 -1
  27. data/_layouts/post.html +2 -2
  28. data/_layouts/register.html +1 -1
  29. data/_sass/_colors/_variables.sass +2 -0
  30. data/_sass/_mixins.sass +3 -1
  31. data/_sass/env/breakpoints/768.sass +16 -11
  32. data/_sass/env/clinician.sass +9 -6
  33. data/_sass/env/pwp.sass +7 -1
  34. data/_sass/footer_redesign.sass +10 -8
  35. data/_sass/forms/mc-forms.sass +9 -0
  36. data/_sass/global.sass +60 -6
  37. data/_sass/navigation/breakpoints/1024.sass +35 -3
  38. data/_sass/post.sass +7 -1
  39. data/_sass/typography/_variables.sass +1 -1
  40. data/assets/js/svg_text_width.js +4 -4
  41. metadata +5 -4
  42. data/_includes/functions/pull_page_args.html +0 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 131fd96f7e7f0b993964278f1fcbc9f078a73110f885915a025ddce8f6f42694
4
- data.tar.gz: 1f9e861f673cb2c100fa4c1839bfcb900181f99b1e219f6ca7356191b99db974
3
+ metadata.gz: f139255a97d5ba774425bd881d404f69326bb2372cef233eefea1242deeba391
4
+ data.tar.gz: f22d8b51ddfb3f79fe11c1aaaa1a1b8a577f028213dc8e8e8667714a567016fc
5
5
  SHA512:
6
- metadata.gz: e43ca0f024fd548f70a6fe83c1a65a5af1e6c37521fcf7f166fb3e21e7c291e0f70095a24ccbde98a2754c97c7fbc3f98c9805ccae70babc6049c8bf83693c1c
7
- data.tar.gz: a8c32a0136eace866ef6a6316ac7890f3bf66e61ec7c7501d42b3ce358bf84b66fa7c556f3032aac750daad4f1861291ed5b4908c97a80377584dd7a40b71011
6
+ metadata.gz: e243fb03a274f344870367f793b22e5343c3d04337e7c6f945b201a5d5371d4fc273e020f3ad529cc08426add20ac3afb871abc6e70177cbeffe7e076b179fcf
7
+ data.tar.gz: 683f14a06a9918a18025b1b70faad3901b90d3c85f013b244904171b918623d8682c098d42f1ca4f54ae881b689a4dae73788da31c3263727b47fea59f4f9c7b
@@ -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
- <li class="ft__company__no">Registered in England and Wales, company number 12281171.</li>
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
- {% for item in site.data.menu.navigation %}
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
- {% for sub in item.submenu %}
49
- {% if sub.id != 'contact' %}
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
- {% endfor %}
81
+ {% endfor %}
53
82
  </ul>
54
83
  </div>
55
84
 
56
- {% endfor %}
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
- <li class="ft__contact--link"><a href="tel:{{ site.phone }}"><i class="fas fa-phone-square"></i>{{ site.phone }}</a></li>
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.mce-id }}">
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.mce-id }}-{{ option.mce-id }}" {{ item.autofocus }}>
26
- <label for="{{ item.mce-id }}-{{ option.mce-id }}">
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.mce-id }}" {{ item.autofocus }}>
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.mce-id"
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.mce-id }}">
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
- <input type="checkbox" class="styled-checkbox switch" id="{{ item.mce-id }}" {{ item.autofocus }}>
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]{3}"
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.mce-id }}"
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="gdpr_{{ item.mce-id }}">
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="gdpr_{{ item.mce-id }}" value="Y" name="{{ item.name }}">
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
- {% if page.env == 'pwp' %}
131
- <input type="checkbox" value="4" name="group[30861][4]" id="mce-group[30861]-30861-0" checked>
132
- {% else %}
133
- <input type="checkbox" value="8" name="group[30861][8]" id="mce-group[30861]-30861-1" checked>
134
- {% endif %}
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>
@@ -1,3 +1,5 @@
1
+ <!-- Liquid function -->
2
+
1
3
  <!-- Take inputs from page front matter and calculate the coordinates of the svg elements -->
2
4
  {% assign image_handle = include.image_handle %}
3
5
 
@@ -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 == "/" %} {{ site.title }} {% else %} {{ page.title }} | {{ site.title }} {% endif %}" />
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.image %}
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
- <!-- Google site verification -->
3
+ {% if site.google.verification %}
4
+
5
+ <!-- Google verification -->
4
6
  <meta name="google-site-verification" content="{{ site.google.verification }}" />
5
7
 
6
- <!-- Google Analytics -->
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 %}
@@ -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
 
@@ -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
@@ -47,7 +47,7 @@
47
47
  </svg>
48
48
  {% endif %}
49
49
 
50
- <!-- closing warpping div -->
50
+ <!-- closing wrapping div -->
51
51
  </div>
52
52
 
53
53
  {% if include.caption %}
@@ -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 {{ item.env }}-group-link">
29
- <span>{{ item.name }}</span></a>
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>
@@ -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/pull_page_args.html %}
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">
@@ -17,6 +17,6 @@ layout: default
17
17
  {% endfor %}
18
18
  </div>
19
19
 
20
- <div class="fullwidth__wrap">
20
+ <div class="fullwidth__wrap" id="content">
21
21
  {{ content }}
22
22
  </div>
@@ -25,7 +25,7 @@ layout: default
25
25
 
26
26
  </div>
27
27
 
28
- <div class="contact__wrapper">
28
+ <div class="contact__wrapper" id="content">
29
29
 
30
30
  <div class="contact--left">
31
31
  {% include contact-form.html %}
@@ -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 %}
@@ -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 strap--opd-trust">
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: 'id', 'cta' -%}
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 h-100"%}
100
+ {% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee"%}
101
101
 
102
102
  </div>
@@ -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: 'id', 'cta' -%}
20
+ {%- assign cta = env.submenu | where: 'cta', 'true' -%}
21
21
  {%- assign cta = cta[0] -%}
22
22
 
23
- {%- assign cta_2 = env.submenu | where: 'id', 'landing' -%}
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: 'id', 'cta' -%}
54
+ {%- assign cta = env.submenu | where: 'cta', 'true' -%}
55
55
  {%- assign cta = cta[0] -%}
56
56
 
57
- {%- assign cta_2 = env.submenu | where: 'id', 'landing' -%}
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">
@@ -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="fade-right">
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 h-100"%}
105
+ {% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee"%}
106
106
 
107
107
 
108
108
  </div>
@@ -3,7 +3,7 @@ layout: default
3
3
  ---
4
4
 
5
5
 
6
- <section class="error-page">
6
+ <section class="error-page" id="content">
7
7
 
8
8
  {{ content }}
9
9
 
data/_layouts/faq.html CHANGED
@@ -25,7 +25,7 @@ layout: default
25
25
 
26
26
  </div>
27
27
 
28
- <div class="faq__wrapper">
28
+ <div class="faq__wrapper" id="content">
29
29
  {% for faq in site.data.faq %}
30
30
 
31
31
  {% if faq.display == 'all' or faq.display == page.env %}
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.image | prepend: 'posts/' }} --alt {{ post.alt }} --img class="feed__card--image" %}
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>
@@ -27,7 +27,7 @@ layout: default
27
27
 
28
28
  {% endif %}
29
29
 
30
- <section class="fullwidth__wrap">
30
+ <section class="fullwidth__wrap" id="content">
31
31
 
32
32
  {{ content }}
33
33
 
data/_layouts/post.html CHANGED
@@ -4,7 +4,7 @@ layout: default
4
4
 
5
5
  <section class="post_head">
6
6
 
7
- {% picture {{ page.image | prepend: 'posts/' }} --alt {{ page.image_alt }} --img class="post__hero" %}
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
 
@@ -4,7 +4,7 @@ layout: default
4
4
 
5
5
  <div class="fullwidth__wrap bg--light">
6
6
  <div class="narrow__wrap no-touch__wrap">
7
- <div class="form__wrap">
7
+ <div class="form__wrap" id="content">
8
8
  {% include /forms/mc-register.html %}
9
9
  </div></div>
10
10
  </div>
@@ -53,3 +53,5 @@ $light-grey: rgb(220, 220, 220)
53
53
  $grey: rgb(130, 130, 130)
54
54
 
55
55
  $led: rgb(255, 70, 0)
56
+
57
+ $image-blend: rgb(73, 100, 122)
data/_sass/_mixins.sass CHANGED
@@ -18,7 +18,9 @@
18
18
  opacity: .6
19
19
 
20
20
  @mixin image-filter-rotate
21
- filter: grayscale(1) contrast(.8) brightness(.9) sepia(.4) hue-rotate(180deg)
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: no-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: 60vw
18
+ width: 40vw
18
19
 
19
20
  .segment__right
20
- width: 40vw
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-between
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
- width: 140px
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
- align-items: center
43
- justify-content: center
45
+ flex-wrap: nowrap
46
+ padding: 10rem 0
47
+ & > *
48
+ padding: 0
44
49
 
45
50
  .clinician__strap
46
51
  h1
@@ -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
- height: 100%
32
- justify-content: center
33
-
30
+ align-items: center
31
+ justify-content: space-around
32
+ padding: 3rem 2rem
34
33
  & > *
35
- padding: 5rem 0
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
- width: 100px
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
@@ -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: 9.5rem
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
- &:hover
267
- background-color: rgba($opd-coral,.3)
268
- border: solid 1px $pure-white
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
@@ -191,3 +191,12 @@ input.switch
191
191
  padding: 5rem
192
192
  background-color: $pure-white
193
193
  border-radius: 20px
194
+
195
+
196
+ .response
197
+ padding: 2rem 0
198
+
199
+ .mce_inline_error
200
+ padding: 1rem 0
201
+ font-size: $sm-font-size
202
+ color: $led
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 * .8
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
- bottom: 0
345
- font-size: $font-size * .8
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: 0
365
+ left: -1rem
358
366
  position: absolute
359
- top: 0
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-width: 160px
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
- text-decoration: underline
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: top
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
@@ -22,4 +22,4 @@ $light-font: 200
22
22
 
23
23
  $medium-font: 400
24
24
 
25
- $heavy-font: 500
25
+ $heavy-font: 600
@@ -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 = .5 ;
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 = -1.5 ;}
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 + 'rem');
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 + 'rem');
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.3.3
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-01-30 00:00:00.000000000 Z
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/pull_page_args.html
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>