slow-steps 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 131fd96f7e7f0b993964278f1fcbc9f078a73110f885915a025ddce8f6f42694
4
- data.tar.gz: 1f9e861f673cb2c100fa4c1839bfcb900181f99b1e219f6ca7356191b99db974
3
+ metadata.gz: bbad31b2a8aaea8349d5af8c79aa8b6fb3678e131c2b0fda6bb7daa68b331d51
4
+ data.tar.gz: 9e1b70d5ee7bc2e102e4e1fa30cedd1f6b7ecadf23816438a15b6d885a40ed34
5
5
  SHA512:
6
- metadata.gz: e43ca0f024fd548f70a6fe83c1a65a5af1e6c37521fcf7f166fb3e21e7c291e0f70095a24ccbde98a2754c97c7fbc3f98c9805ccae70babc6049c8bf83693c1c
7
- data.tar.gz: a8c32a0136eace866ef6a6316ac7890f3bf66e61ec7c7501d42b3ce358bf84b66fa7c556f3032aac750daad4f1861291ed5b4908c97a80377584dd7a40b71011
6
+ metadata.gz: 5e3164e6bf919b747ca3f25f96cced25aee3fbabb934d0d3176b063f2aa3a31f40b2317d5b4a0acf32fe838df1eb27f2c74247cc48939d45f2f7c39d60034e9c
7
+ data.tar.gz: 5ab6d9779c3ffc803772a8e2c64327442910d353d2c008e293bbf9101d29f8ef61f9467a77633bb58b9e2c4c416c47999e74a58b64802e78c7d9f03d95057b94
@@ -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>
@@ -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,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()">
@@ -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
 
@@ -68,10 +68,10 @@ Last full read through 27/12/2020
68
68
 
69
69
  <div class="segment__wrap">
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>
@@ -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>
@@ -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>
@@ -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)
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
@@ -252,20 +252,18 @@
252
252
  &:last-child
253
253
  margin-top: 5rem
254
254
  width: auto
255
+ border: solid 1px $opd-coral
255
256
  .ft__sitemap--link
256
257
  @include default-trans
257
- background-color: $opd-coral
258
- border: solid 1px $opd-coral
259
-
260
258
  text-align: center
261
259
  padding: 2rem 3rem
262
260
  width: auto
263
261
  border-radius: 6px
264
262
  cursor: pointer
265
263
  text-transform: uppercase
266
- &:hover
267
- background-color: rgba($opd-coral,.3)
268
- border: solid 1px $pure-white
264
+ &:hover
265
+ background-color: rgba($opd-coral,.3)
266
+ border: solid 1px $pure-white
269
267
 
270
268
  .ft__sitemap--link
271
269
  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,12 @@ 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: $opd-coral
243
+ stroke: $opd-coral!important
244
+
237
245
 
238
246
  $svg-text-offset: 60px
239
247
 
@@ -341,9 +349,8 @@ $svg-text-offset: 60px
341
349
 
342
350
  // This is basically a button and should to be centralised
343
351
  .action__call
344
- bottom: 0
345
- font-size: $font-size * .8
346
- margin: -100px auto
352
+ font-size: $font-size
353
+ margin: 0 auto
347
354
  padding: 2rem
348
355
  position: relative
349
356
  text-decoration: none
@@ -354,9 +361,9 @@ $svg-text-offset: 60px
354
361
  content: ''
355
362
  display: block
356
363
  height: 6rem
357
- left: 0
364
+ left: -1rem
358
365
  position: absolute
359
- top: 0
366
+ top: .5rem
360
367
  transition: .2s ease
361
368
  width: 6rem
362
369
 
@@ -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
@@ -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.0
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-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -192,13 +192,13 @@ files:
192
192
  - _includes/footer/footer_redesign.html
193
193
  - _includes/forms/mc-register.html
194
194
  - _includes/functions/calc-svg-coord.html
195
- - _includes/functions/pull_page_args.html
195
+ - _includes/functions/reposition-svg-labels.html
196
196
  - _includes/gmap.html
197
- - _includes/google-analytics.html
198
197
  - _includes/head/README.md
199
198
  - _includes/head/descriptors/og-meta.html
200
199
  - _includes/head/descriptors/structured-data.html
201
200
  - _includes/head/descriptors/twitter-meta.html
201
+ - _includes/head/google-analytics.html
202
202
  - _includes/head/head.html
203
203
  - _includes/head/stylesheets.html
204
204
  - _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>