futuro 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/html/page/content/loop/alert.liquid +31 -0
  3. data/_includes/html/page/content/loop/button/build.liquid +7 -1
  4. data/_includes/html/page/content/loop/checkbox.liquid +4 -8
  5. data/_includes/html/page/content/loop/form/alert.liquid +8 -13
  6. data/_includes/html/page/content/loop/form/callout.liquid +1 -1
  7. data/_includes/html/page/content/loop/form/date.liquid +7 -7
  8. data/_includes/html/page/content/loop/form/email.liquid +38 -0
  9. data/_includes/html/page/content/loop/form/item.liquid +6 -9
  10. data/_includes/html/page/content/loop/form/message.liquid +1 -1
  11. data/_includes/html/page/content/loop/form/number.liquid +3 -3
  12. data/_includes/html/page/content/loop/form/phone.liquid +22 -21
  13. data/_includes/html/page/content/loop/form/radio.liquid +7 -7
  14. data/_includes/html/page/content/loop/form/select.liquid +10 -10
  15. data/_includes/html/page/content/loop/form/text.liquid +23 -27
  16. data/_includes/html/page/content/loop/form/textarea.liquid +6 -5
  17. data/_includes/html/page/content/loop/form.liquid +14 -7
  18. data/_includes/html/page/content/loop/header/search.liquid +1 -1
  19. data/_includes/html/page/content/loop/input.liquid +17 -0
  20. data/_includes/html/page/content/loop/item.liquid +16 -0
  21. data/_includes/html/page/content/loop/{form/label.liquid → label.liquid} +24 -4
  22. data/_includes/html/page/content/loop/onemoment.liquid +6 -0
  23. data/_includes/html/page/content/loop/screen/header.liquid +3 -3
  24. data/_includes/html/page/content/loop/screen.liquid +2 -2
  25. data/_includes/html/page/content/loop/{select/create.liquid → select.liquid} +0 -0
  26. data/_includes/html/page/content/row.liquid +1 -1
  27. data/_includes/html/page/content.liquid +70 -71
  28. data/_sass/block/form/alert.scss +0 -4
  29. data/_sass/block/form/checkbox.scss +2 -18
  30. data/_sass/block/form/item.scss +17 -17
  31. data/_sass/futuro.core.scss +14 -0
  32. data/_sass/helpers/extends/forms.scss +16 -0
  33. data/_sass/helpers/mixins/theme.scss +1 -1
  34. data/assets/js/footer/custom/5_check.form.js +7 -0
  35. data/assets/js/futuro.footer.custom.js +1 -1
  36. metadata +10 -8
  37. data/_includes/html/page/content/loop/alert/create.liquid +0 -20
  38. data/_includes/html/page/content/loop/alert/example.liquid +0 -4
  39. data/_includes/html/page/content/loop/form/input.liquid +0 -17
  40. data/_includes/html/page/content/loop/yousaved.liquid +0 -11
@@ -29,7 +29,7 @@
29
29
 
30
30
  {% elsif RowType == "alert" %}
31
31
 
32
- {% include {{ LoopAlert | append : 'create.liquid' }}
32
+ {% include {{ ContentLoop | append : 'alert.liquid' }}
33
33
  context = "screen"
34
34
  title = page.row.title %}
35
35
 
@@ -4,19 +4,19 @@
4
4
  <div class="area {{ PageBook | prepend : 'book-' }} {{ PageType }} {{ PageChapter | prepend : 'chapter-' }}
5
5
  {% if site.setup.style %}{{ SiteStyle }}{% endif %}">
6
6
 
7
- {%- unless SiteIsDocs -%}
7
+ {% unless SiteIsDocs %}
8
8
 
9
9
  <h2>{{ page.weight | slice: 0,3 }}</h2>
10
10
 
11
- {%- endunless -%}
11
+ {% endunless %}
12
12
 
13
13
  {% else %}
14
14
 
15
- {%- unless SiteIsDocs -%}
15
+ {% unless SiteIsDocs %}
16
16
 
17
- {%- include {{ SitePage | append : 'subtitle.liquid' }} -%}
17
+ {% include {{ SitePage | append : 'subtitle.liquid' }} %}
18
18
 
19
- {%- endunless -%}
19
+ {% endunless %}
20
20
 
21
21
  <div class="area {{ PageType }} {{ SiteStyle }} {{ PageTitle | prepend : 'title-' }}
22
22
  {% unless NoSubtitle %}has-subtitle{% endunless %}
@@ -25,149 +25,148 @@
25
25
 
26
26
  {% endif %}
27
27
 
28
- {%- unless SiteIsDocs -%}
28
+ {% unless SiteIsDocs %}
29
29
 
30
30
  {{ page.content | markdownify }}
31
31
 
32
- {%- endunless -%}
32
+ {% endunless %}
33
33
 
34
- {%- unless PageIsChapter -%}
34
+ {% unless PageIsChapter %}
35
35
 
36
- {%- include {{ SiteContent | append : 'more.liquid' }} -%}
36
+ {% include {{ SiteContent | append : 'more.liquid' }} %}
37
37
 
38
38
  {% unless SiteIsDocs %}
39
39
 
40
40
  {% include {{ SitePage | append : 'util.liquid' }} %}
41
41
 
42
42
  {% endunless %}
43
-
44
43
 
45
- {%- if page.break -%}
44
+ {% if page.break %}
46
45
 
47
46
  {% for i in (1..page.break) %}<br>{% endfor %}
48
47
 
49
- {%- endif -%}
48
+ {% endif %}
49
+
50
+ {% if page.alert %}
51
+
52
+ {% include {{ ContentLoop | append : 'alert.liquid' }}
53
+ title = page.alert.title
54
+ type = page.alert.type
55
+ price = page.alert.price %}
56
+
57
+ {% endif %}
50
58
 
51
- {%- if page.chart -%}
59
+ {% if page.chart %}
52
60
 
53
- {%- include {{ SiteContent | append : 'chart.liquid' }} -%}
61
+ {% include {{ SiteContent | append : 'chart.liquid' }} %}
54
62
 
55
- {%- endif -%}
63
+ {% endif %}
56
64
 
57
- {%- if page.number -%}
65
+ {% if page.number %}
58
66
 
59
67
  <div class="block number-container">
60
68
 
61
- {%- include {{ SiteContent | append : 'loop.liquid' }} type="number" -%}
69
+ {% include {{ SiteContent | append : 'loop.liquid' }} type="number" %}
62
70
 
63
71
  </div>
64
72
 
65
- {%- endif -%}
73
+ {% endif %}
66
74
 
67
- {%- if page.pies -%}
75
+ {% if page.pies %}
68
76
 
69
77
  <ul class="list pies style-spin">
70
78
 
71
- {%- include {{ SiteContent | append : 'loop.liquid' }} type="pies" -%}
79
+ {% include {{ SiteContent | append : 'loop.liquid' }} type="pies" %}
72
80
 
73
81
  </ul>
74
82
 
75
- {%- endif -%}
83
+ {% endif %}
76
84
 
77
- {%- if page.roller -%}
85
+ {% if page.roller %}
78
86
 
79
- {%- include {{ SiteContent | append : 'roller.liquid' }} -%}
87
+ {% include {{ SiteContent | append : 'roller.liquid' }} %}
80
88
 
81
- {%- endif -%}
89
+ {% endif %}
82
90
 
83
- {%- if page.artwork -%}
91
+ {% if page.artwork %}
84
92
 
85
- {%- include {{ SiteContent | append : 'artwork.liquid' }} -%}
93
+ {% include {{ SiteContent | append : 'artwork.liquid' }} %}
86
94
 
87
- {%- endif -%}
95
+ {% endif %}
88
96
 
89
- {%- if page.form -%}
97
+ {% if page.form %}
90
98
 
91
99
  <form onsubmit="return false">
92
100
 
93
- {%- include {{ SiteContent | append : 'loop.liquid' }} type="form" -%}
101
+ {% include {{ SiteContent | append : 'loop.liquid' }} type="form" %}
94
102
 
95
103
  </form>
96
104
 
97
- {%- endif -%}
105
+ {% endif %}
98
106
 
99
- {%- if page.header -%}
107
+ {% if page.header %}
100
108
 
101
- {%- include {{ SiteContent | append : 'header.liquid' }} -%}
109
+ {% include {{ SiteContent | append : 'header.liquid' }} %}
102
110
 
103
- {%- endif -%}
111
+ {% endif %}
104
112
 
105
- {%- if page.screen -%}
113
+ {% if page.screen %}
106
114
 
107
115
  <div class="block screen-container">
108
116
 
109
117
  <div class="block screen-wrap">
110
118
 
111
- {%- include {{ LoopScreen | append : 'header.liquid' }} -%}
119
+ {% include {{ LoopScreen | append : 'header.liquid' }} %}
112
120
 
113
- {%- include {{ LoopScreen | append : 'feed.liquid' }} type="feed" -%}
121
+ {% include {{ LoopScreen | append : 'feed.liquid' }} type="feed" %}
114
122
 
115
- {%- include {{ LoopScreen | append : 'feed.liquid' }} type="clone" -%}
123
+ {% include {{ LoopScreen | append : 'feed.liquid' }} type="clone" %}
116
124
 
117
125
  </div>
118
126
 
119
127
  </div>
120
128
 
121
- {%- endif -%}
129
+ {% endif %}
122
130
 
123
- {%- if page.loader -%}
131
+ {% if page.loader %}
124
132
 
125
- {%- include {{ SiteContent | append : 'loader.liquid' }} -%}
126
-
127
- {%- endif -%}
128
-
129
- {%- if page.ticker -%}
130
-
131
- <div class="ticker onemoment">
132
-
133
- <div class="ticker message">{{ page.ticker }}</div>
134
-
135
- </div>
133
+ {% include {{ SiteContent | append : 'loader.liquid' }} %}
136
134
 
137
- {%- endif -%}
135
+ {% endif %}
138
136
 
139
- {%- if page.button -%}
137
+ {% if page.ticker %}
140
138
 
141
- {%- include {{ LoopButton | append : 'example.liquid' }} -%}
139
+ {% include {{ ContentLoop | append : 'onemoment.liquid' }}
140
+ ticker = page.ticker %}
142
141
 
143
- {%- endif -%}
142
+ {% endif %}
144
143
 
145
- {%- if page.row -%}
144
+ {% if page.button %}
146
145
 
147
- {%- include {{ SiteContent | append : 'row.liquid' }} -%}
146
+ {% include {{ LoopButton | append : 'example.liquid' }} %}
148
147
 
149
- {%- endif -%}
148
+ {% endif %}
150
149
 
151
- {%- if page.yousaved -%}
150
+ {% if page.row %}
152
151
 
153
- {%- include {{ SiteContent | append : 'loop.liquid' }} type="yousaved" -%}
152
+ {% include {{ SiteContent | append : 'row.liquid' }} %}
154
153
 
155
- {%- endif -%}
154
+ {% endif %}
156
155
 
157
- {%- if page.checkbox -%}
156
+ {% if page.checkbox %}
158
157
 
159
- {%- include {{ ContentLoop | append : 'checkbox.liquid' }}
160
- title = page.checkbox -%}
158
+ {% include {{ ContentLoop | append : 'checkbox.liquid' }}
159
+ label = page.checkbox.label %}
161
160
 
162
- {%- endif -%}
161
+ {% endif %}
163
162
 
164
- {%- if SiteIsDocs -%}
163
+ {% if SiteIsDocs %}
165
164
 
166
- {%- if page.content -%}
165
+ {% if page.content %}
167
166
 
168
167
  {% assign length = page.content | size %}
169
168
 
170
- {%- if length > 1 -%}
169
+ {% if length > 1 %}
171
170
 
172
171
  <div class="area type-content">
173
172
 
@@ -175,10 +174,10 @@
175
174
 
176
175
  </div>
177
176
 
178
- {%- endif -%}
177
+ {% endif %}
179
178
 
180
- {%- endif -%}
179
+ {% endif %}
181
180
 
182
- {%- endif -%}
181
+ {% endif %}
183
182
 
184
- {%- endunless -%}
183
+ {% endunless %}
@@ -3,10 +3,6 @@
3
3
  @extend %AlertBlock;
4
4
  }
5
5
 
6
- .block.form-alert > .block.item-object {
7
- padding: 0;
8
- }
9
-
10
6
  .block.form-row .block.form-alert {
11
7
  @media#{map-get($query,min768)} {
12
8
  grid-column: 2 / 3;
@@ -1,22 +1,6 @@
1
1
 
2
- %checkbox {
3
- @include zeros(absolute);
4
- left: ($radius * 4);
5
- cursor: pointer;
6
- height: 14px;
7
- margin: auto;
8
- width: 14px;
9
- right: auto;
10
-
11
- &:checked + label {
12
- @include color(setcolor(slate),100%);
13
- @include border(setcolor(slate));
14
- @include bg(setcolor(slate));
15
- }
16
- }
17
-
18
2
  input[type="checkbox"] {
19
- @extend %checkbox;
3
+ @extend %Checkbox;
20
4
  }
21
5
 
22
6
  .checkbox-wrap {
@@ -24,7 +8,7 @@ input[type="checkbox"] {
24
8
  display: grid;
25
9
  }
26
10
 
27
- .nolabel {
11
+ .no-label {
28
12
  @extend %NoLabel;
29
13
  }
30
14
 
@@ -1,22 +1,22 @@
1
1
 
2
- .block.item-row + .block.item-row {
3
- margin-top: 0;
2
+ // .block.item-row + .block.item-row {
3
+ // margin-top: 0;
4
4
 
5
- .block.item-object {
6
- border-top: 1px solid rgba(setcolor(slate),20%);
7
- }
8
- }
5
+ // .block.item-object {
6
+ // border-top: 1px solid rgba(setcolor(slate),20%);
7
+ // }
8
+ // }
9
9
 
10
- .block.item-object {
11
- padding: ($radius * 2) ($radius * 3);
12
- grid-template-columns: auto 100px;
13
- display: grid;
10
+ // .block.item-object {
11
+ // padding: ($radius * 2) ($radius * 3);
12
+ // grid-template-columns: auto 100px;
13
+ // display: grid;
14
14
 
15
- @media#{map-get($query,min768)} {
16
- grid-column: 2 / 3;
17
- }
18
- }
15
+ // @media#{map-get($query,min768)} {
16
+ // grid-column: 2 / 3;
17
+ // }
18
+ // }
19
19
 
20
- .block.item-object-price {
21
- text-align: right;
22
- }
20
+ // .block.item-object-price {
21
+ // text-align: right;
22
+ // }
@@ -11,6 +11,7 @@
11
11
  "helpers/mixins/patterns",
12
12
  "helpers/mixins/theme",
13
13
  "helpers/extends",
14
+ "helpers/extends/forms",
14
15
  "helpers/extends/grid",
15
16
  "helpers/extends/layout",
16
17
  "helpers/themes";
@@ -180,4 +181,17 @@
180
181
  grid-column-gap: 20px;
181
182
  grid-row-gap: 15px;
182
183
  display: grid;
184
+ }
185
+
186
+ .block.no-label {
187
+ grid-column: 2 / 3;
188
+ }
189
+
190
+ .block.has-price {
191
+ grid-template-columns: auto 100px;
192
+ display: grid;
193
+ }
194
+
195
+ .block.has-price > span:last-child {
196
+ text-align: right;
183
197
  }
@@ -0,0 +1,16 @@
1
+
2
+ %Checkbox {
3
+ @include zeros(absolute);
4
+ left: ($radius * 4);
5
+ cursor: pointer;
6
+ height: 14px;
7
+ margin: auto;
8
+ width: 14px;
9
+ right: auto;
10
+
11
+ &:checked + label {
12
+ @include color(setcolor(slate),100%);
13
+ @include border(setcolor(slate));
14
+ @include bg(setcolor(slate));
15
+ }
16
+ }
@@ -76,7 +76,7 @@
76
76
  // Used in Patterns
77
77
  @mixin ThemeCheckbox($chapter,$title,$color) {
78
78
  .wrap.chapter-#{$chapter}.title-#{$title} {
79
- .checkbox-input:checked + label {
79
+ input[type="checkbox"]:checked + label {
80
80
  background-color: setcolor($color,xlight);
81
81
  border: 1px solid setcolor($color,light);
82
82
  color: setcolor($color,dark);
@@ -40,3 +40,10 @@ const ValidateText = loop => {
40
40
 
41
41
  };
42
42
 
43
+ const ValidateEmail = loop => {
44
+
45
+ ParseInputs(loop,{
46
+ type : "email"
47
+ });
48
+
49
+ };
@@ -1 +1 @@
1
- "use strict";var shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller;Browse.able=!1,Body.classes=$("body")[0].classList,$("body").hasClass("type-home")&&(Body.isHome=!0),Site.isTheme||(Browse.able=$(".wrap.type-page").length);var HandleClass=function(e,t,a){var o=2<arguments.length&&void 0!==a?a:"active";$(e).map(function(e,a){"add"==t?$(a).addClass(o):"remove"==t?$(a).removeClass(o):"clear"==t&&$(a).removeClass()})};Print.width=function(){var e=$(document)[0].documentElement.clientWidth,a=Site.desktop.width-e+"px",t=100/Site.desktop.width*e+"%";$(".width").html(a),gsap.set(Overlay.mobile.bar,{width:t})},Check.width=function(){Site.desktop.active?(gsap.set(Overlay.mobile.screen,{clearProps:"display"}),gsap.set(".site",{display:Config.display})):(gsap.set(".site",{clearProps:"display"}),gsap.set(Overlay.mobile.screen,{display:Config.display}),Print.width())},Config.respond||($(Check.width()),$(window).resize(Check.width()));var BackgroundShade={background:shade},ClearDisplay={clearProps:"display"},ClearBackground={clearProps:"background"},DisplayNone={display:"none"};Browse.book.links=$(".link.browse-book",".wrap.browse-book"),Browse.book.class="",Browse.book.notFound=!0,Browse.chapter.links=$(".link.browse-chapter",".wrap.browse-chapter"),Browse.chapter.books=$(".block.browse-book",".wrap.browse-chapter"),Browse.chapter.class="",Browse.chapter.notFound=!0,Browse.page.links=$(".link.browse-page",".wrap.browse-page"),Browse.page.books=$(".block.browse-book",".wrap.browse-page"),Browse.page.chapters=$(".block.browse-chapter",".wrap.browse-page"),Browse.page.class="",Browse.page.notFound=!0,Browse.found.success=!1,Browse.match=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"book";$(e.classList).each(function(e,a){"book"==t?a.startsWith("book-")&&(Browse.book.class=a):a.startsWith("chapter-")&&(Browse.chapter.class=a)})},Browse.found.check=function(e){Browse.found.success?gsap.set(e,ClearDisplay):gsap.set(e,DisplayNone)},$(window.location.pathname.split("/")).map(function(e,a){Site.isLibrary?1==e?(Book.url=a,Browse.book.class="book-"+Book.url):2==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):3==e&&(Page.url=a,Browse.page.class="title-"+Page.url):1==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):2==e&&(Page.url=a,Browse.page.class="title-"+Page.url)}),Check.book.class=function(e){Browse.found.success=!1,$(e.classList).map(function(e,a){a.startsWith("book-")&&Browse.book.class==a&&(Browse.found.success=!0,Browse.book.notFound=!1)})},Check.chapter.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("chapter-")&&Browse.chapter.class==a&&(Browse.found.success=!0,Browse.chapter.notFound=!1)})},Check.page.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("title-")&&Browse.page.class==a&&(Browse.found.success=!0,Browse.page.notFound=!1)})},Browse.chapter.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.notFound&&gsap.set(a.children[0],BackgroundShade)},Browse.page.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success?(gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.page.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.page.notFound&&gsap.set(a.children[0],BackgroundShade)):gsap.set(a,DisplayNone)}),Browse.chapter.notFound&&(gsap.set(a.children[0],ClearDisplay),gsap.set(a.children[0].children[0],BackgroundShade))},Browse.book.links.respond=function(e){Browse.match(e),gsap.set(Browse.book.links,ClearBackground),gsap.set(e,BackgroundShade),Check.book.class(e)},Browse.chapter.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.chapter.links.respond=function(e){var a=e.parentElement;Browse.match(a,"book"),Browse.match(e,"chapter"),gsap.set(Browse.chapter.links,ClearBackground),gsap.set(e,BackgroundShade)},Browse.page.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,DisplayNone),gsap.set(e.children[0],ClearDisplay),gsap.set(e.children[0].children,ClearBackground),gsap.set(e.children[0].children[0],BackgroundShade)},Browse.page.chapters.respond=function(e){Check.chapter.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.page.links.respond=function(e){gsap.set(Browse.page.links,ClearBackground),gsap.set(e,BackgroundShade)},Roller.default.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass([a,o[e]],"remove"))}),HandleClass([t,o[s]],"add")},Roller.default.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&HandleClass([a,t[e]],"remove")}),HandleClass([Save.input,t[Save.index]],"add"),e.play()},Roller.default.tl=function(t,o){var s=gsap.timeline({repeat:-1});t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),s.call(HandleClass,[a,"add"]).call(HandleClass,[o[e],"add"]).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o[e],"remove"]),$(a).hover(function(){Roller.default.over(s,t,a,o,e)},function(){Roller.default.out(s,t,o)})})},Roller.morph.over=function(e,a,t,o,s,n,r){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"))}),HandleClass(o,"clear"),$(t.classList).map(function(e,a){a.startsWith("title-")&&(r=a.slice(6))}),n="path#".concat(r),gsap.to(o,{morphSVG:n,duration:.3}),HandleClass(t,"add"),HandleClass(o,"add",r)},Roller.morph.out=function(e,a,t,o,s){a.map(function(e,a){$(a).hasClass("active")&&HandleClass(a,"remove")}),HandleClass(t,"clear"),$(Save.input.classList).map(function(e,a){a.startsWith("title-")&&(o=a.slice(6))}),s="path#".concat(o),gsap.to(t,{morphSVG:s,duration:.3}),HandleClass(Save.input,"add"),HandleClass(t,"add",o),e.play()},Roller.morph.tl=function(t,o){var s=gsap.timeline({repeat:-1}),n="",r="";t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&(n=a.slice(6))}),r="path#".concat(n),s.call(HandleClass,[a,"add"]).call(HandleClass,[o,"add",n]).to(o,{morphSVG:r,duration:.3}).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o,"remove",n]),$(a).hover(function(){Roller.morph.over(s,t,a,o,e,r,n)},function(){Roller.morph.out(s,t,o)})})},Roller.snap.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"),o.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(t,"add");var i=s;o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[i];HandleClass(t[i],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})})},Roller.snap.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&(HandleClass(a,"remove"),t.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(Save.input,"add"),t.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];HandleClass(t[Save.index],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})}),e.play()},Roller.snap.tl=function(t,o){var i=gsap.timeline({repeat:-1});t.map(function(e,a){Save.index=e,$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),i.call(HandleClass,[a,"add"]),o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];i.call(HandleClass,[t[Save.index],"add"]).set(s,{color:r.color}).set(n,{text:r.pcent[e]})}),i.call(HandleClass,[a,"remove"],"+=1"),o.map(function(e,a){var t=$(a).find("path");i.call(HandleClass,[t[Save.index],"remove"])}),$(a).hover(function(){Roller.snap.over(i,t,a,o,e)},function(){Roller.snap.out(i,t,o)})})};var ActiveBook=function(){if(!Body.isHome){var o="";$(Body.classes).map(function(e,a){if(a.startsWith("book-")){o=a.slice(5);var t=$("button",Site.topbar.lnk+"."+o);gsap.set(t,{borderBottom:"3px solid"})}})}};Site.isTheme||$(ActiveBook),Setup.home=function(){gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".link.book",{y:-5},{duration:1,y:5}),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})})},Site.isLibrary&&Body.isHome&&$(Setup.home());var ChangeScreen=function(e,a,t){var o=Overlay.custom[e],s=".area.overlay-"+o.name,n=$(".input.text-search"),r=$(".wrap.results");"close"==t?(gsap.set("body",{clearProps:"overflow"}),gsap.set(s,{clearProps:"display"}),o.open=!1,"search"==a.name&&(n.val(""),r.empty())):(gsap.set("body",{overflow:"hidden"}),gsap.set(s,{display:Config.display}),o.open=!0,"search"==a.name&&n.focus())},BuildScreens=function(e,a){var t=Overlay.button+"."+a.name,o=Overlay.exit+"."+a.name;$(t).click(function(){ChangeScreen(e,a,"open")}),$(o).click(function(){ChangeScreen(e,a,"close")})},KeyUp=function(t){$(Overlay.custom).map(function(e,a){a.open&&27==t.keyCode&&ChangeScreen(e,a,"close"),a.open||Site.inFocus||(65==t.keyCode&&"about"==a.name&&ChangeScreen(e,a,"open"),66==t.keyCode&&"browse"==a.name&&ChangeScreen(e,a,"open"),83==t.keyCode&&"search"==a.name&&ChangeScreen(e,a,"open"))})};$(Overlay.custom).map(function(e,a){BuildScreens(e,a)}),$(document).keyup(function(e){KeyUp(e)}),Setup.scroll=function(){$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(e){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash);(a=a.length?a:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:a.offset().top},500,function(){var e=$(a);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})},$(Setup.scroll()),Setup.site=function(){Config.respond?gsap.set(".site",{display:Config.display}):Site.mobile.active||gsap.set(".site",{display:Config.display}),setTimeout(function(){gsap.set(Overlay.load.screen,{clearProps:"display"}),Site.tl.pause()},1e3)},$(Setup.site()),$(window).resize(Setup.site()),Start.browse=function(){Book.url?(Browse.book.links.map(function(e,a){Check.book.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.chapter.books.filter(e,a):gsap.set(a,DisplayNone)}),Browse.page.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.page.books.filter(e,a):gsap.set(a,DisplayNone)})):(Browse.chapter.books.map(function(e,a){Browse.chapter.books.filter(e,a)}),Browse.page.books.map(function(e,a){Browse.page.books.filter(e,a)}))},Site.isTheme||Body.isHome||Browse.able&&Start.browse();var AnimateChart=function(){$(Site.charts.list).map(function(e,a){var o=gsap.timeline({repeat:-1,repeatDelay:3}),t=$(a).find(".block.chart-bar"),s=$(t).children(Site.charts.pcent).children("span"),n=$(t).find(Site.charts.title);o.from(t,{duration:1,stagger:.2,height:0},"start").from(n,{delay:1,duration:.2,opacity:0},"start").from(n,{delay:1,duration:.8,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),s.map(function(a){var e=s[a].innerText,t={val:0};o.to(t,{val:e,duration:2,onUpdate:function(){var e=gsap.utils.snap(1,t.val);s[a].innerText=e}},"start")})})},AnimateNumbers=function(){$(Site.numbers).map(function(e,a){var t=a.innerText,o={val:0};gsap.timeline({repeat:-1,repeatDelay:3}).to(o,{val:t,duration:3,onUpdate:function(){var e=gsap.utils.snap(1,o.val);a.innerText=e}},"start")})},AnimatePies=function(){$(Site.pies.list).map(function(e,a){var l=gsap.timeline({repeat:-1,repeatDelay:3}),t=a.children;$(t).map(function(e,a){var t=$(a).children(Site.pies.pcent).children("span"),o=$(a).children(Site.pies.wrap),s=$(a).children(Site.pies.title),n=o.children(Site.pies.data),r=$(t).text(),i={val:0};l.to(i,{val:r,duration:.4*6,onUpdate:function(){var e=gsap.utils.snap(1,i.val);t.text(e)}},"start").from(s,{duration:.4*3,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),n.map(function(e,a){var t=$("g#data",a);0==e?l.from(t,{duration:.4,opacity:0},"start").from(t,{duration:.4*3,rotation:-180,transformOrigin:"center"},"start"):0<e&&l.from(t,{duration:.4*3,rotation:-90,transformOrigin:"center",delay:.4*1.5},"start").from(t,{duration:.4,opacity:0,delay:.4*1.5},"start")})})})};$(".item.scroller").each(function(e,a){var t=$(a)[0].classList[2],o="#".concat(t,"-").concat(t),s=".item.scroller.".concat(t);return new ScrollMagic.Scene({triggerElement:o}).setTween(s,.1,{opacity:1}).addTo(controller)}),Artform.list=Object.keys(Color.artforms),Artform.clear=function(e){$(e).attr("class","block header title-artform"),$(Page.wrap+".title-artform").map(function(e,a){Contrast.reset(a)})},Artform.update=function(e,a){$(e).addClass("tag-"+a),$(Page.wrap+".title-artform").map(function(e,a){Contrast.check(a,".block.header",".block.header")})},Artform.header=function(){var a=".header.title-artform",t=gsap.timeline({repeat:-1});Artform.list.map(function(e){t.set(a,{opacity:1,onComplete:function(){Artform.update(a,e)}}).set(a,{clearProps:"all",delay:1.5,onComplete:function(){Artform.clear(a)}})})};var ParseInputs=function(e,a){e.map(function(e){$(e).parsley(a)})},RequireInputs=function(e){ParseInputs(e,{required:!0})},ValidateSelects=function(e){ParseInputs(e,{min:1,errorMessage:"Please select an option"})},ValidateNumbers=function(e){ParseInputs(e,{type:"digits"})},ValidateText=function(e){ParseInputs(e,{minlength:5})};Contrast.reset=function(e){var a={ratio:$(e).find(Site.access.ratio)};$(a.ratio).attr("class","block access-ratio")},Contrast.round=function(e){return Math.round(100*e)/100},Contrast.ratio=function(e,a){return Contrast.round(tinycolor.readability(e,a))},Contrast.check=function(e,a,t){var o={ratio:$(e).find(Site.access.ratio),color:tinycolor($(a,e).css("color")).toHexString(),backg:tinycolor($(t,e).css("background-color")).toHexString()},s={ratio:Contrast.ratio(o.color,o.backg)};$(o.ratio).text(s.ratio),4.5<=s.ratio?$(o.ratio).addClass(Site.access.best):3<=s.ratio?$(o.ratio).addClass(Site.access.good):$(o.ratio).addClass(Site.access.poor)},Respond.browse=function(){Browse.book.links.hover(function(){Browse.book.links.respond(this),Browse.chapter.books.map(function(e,a){Browse.chapter.books.respond(a)}),Browse.page.books.map(function(e,a){Browse.page.books.respond(a)})}),Browse.chapter.links.hover(function(){Browse.chapter.links.respond(this),Browse.page.chapters.map(function(e,a){Browse.page.chapters.respond(a)})}),Browse.page.links.hover(function(){Browse.page.links.respond(this)})},Site.isTheme||Body.isHome||Browse.able&&Respond.browse(),Respond.roller.default.func=function(){$(Roller.default.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.default.output).find(".item");Roller.default.tl(t,o)})},Respond.roller.morph.func=function(){$(Roller.morph.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.morph.output).find("path#output");Roller.morph.tl(t,o)})},Respond.roller.snap.func=function(){$(Roller.snap.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).parents(".area.type-page").siblings(Roller.snap.output).find("svg.snap");Roller.snap.tl(t,o)})};var Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,a){var t=$(e.target),o=t.siblings(".button-bg"),s=t.parent(),n={dis:{before:$(s).siblings(".before"),after:$(s).siblings(".after")},dat:{before:$(s).parent().siblings().children(".before"),after:$(s).parent().siblings().children(".after")}},r=[n.dis.before,n.dat.before],i=[n.dis.after,n.dat.after];if(s.hasClass("undo"))"down"===a?gsap.set([s,o],{clearProps:"all"}):"up"===a&&($(s).removeClass("undo"),gsap.set([r,i],{clearProps:"all"}),gsap.set(t,{text:"Next"}));else if("down"===a)gsap.set([s,o],{scale:.95});else if("up"===a){gsap.timeline().to(r,{duration:.2,opacity:0}).set([s,o],{backgroundColor:Color.green}).set(t,{text:"Undo"}).set(r,{display:"none"}).set(i,{display:"block"}).to(o,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}).call(function(){$(s).addClass("undo")})}};$(Button.target).mousedown(function(e){ButtonSwitch(e,"down")}).mouseup(function(e){ButtonSwitch(e,"up")});var FocusInputs=["input","textarea"],SetFocus=function(e){Site.inFocus=e};FocusInputs.map(function(e){$(e).focusin(function(){SetFocus(!0)}).focusout(function(){SetFocus(!1)})}),Util.copy=function(e){var a=document.createElement("textarea");a.value=e,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)},Util.share=function(e){var a=$(e).parents(Site.page.share),t=$(a.context).find(Site.page.url).text();gsap.timeline();t=t.replace("index",""),$(a.context.classList).map(function(e,a){a.includes("type-")&&0}),Util.copy(t)};var WhatsOn={speed:function(e){return.03*e},slide:function(e){var a=$(".block.alert-content",e),t=$(".alert-feed",e),o=$(t).width()+100,s=$(".alert-clone",e);$(a).addClass("modify-grid");var n=gsap.timeline({defaults:{ease:"none"}}),r=gsap.timeline({repeat:-1,paused:!0,defaults:{ease:"none"}});r.to([t,s],{duration:WhatsOn.speed(o),x:-o}),n.to(a,{duration:WhatsOn.speed(20),paddingLeft:0}).call(function(){r.play()})},scroll:function(e){var a=$(".feed",e),t=$(a).height(),o=$(".clone",e);gsap.timeline({repeat:-1,defaults:{ease:"none"}}).to([a,o],{duration:WhatsOn.speed(t),y:-t})}},YouSaved=function(e){var a=$(".block.form-alert",e),t=tinycolor($(a).css("border-color")).toHexString(),o=tinycolor($(a).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10)}).set(a,{clearProps:"all",delay:.2}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10),delay:.2}).to(a,{backgroundColor:o,borderColor:t,duration:.8,delay:.2})};
1
+ "use strict";var shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller;Browse.able=!1,Body.classes=$("body")[0].classList,$("body").hasClass("type-home")&&(Body.isHome=!0),Site.isTheme||(Browse.able=$(".wrap.type-page").length);var HandleClass=function(e,t,a){var o=2<arguments.length&&void 0!==a?a:"active";$(e).map(function(e,a){"add"==t?$(a).addClass(o):"remove"==t?$(a).removeClass(o):"clear"==t&&$(a).removeClass()})};Print.width=function(){var e=$(document)[0].documentElement.clientWidth,a=Site.desktop.width-e+"px",t=100/Site.desktop.width*e+"%";$(".width").html(a),gsap.set(Overlay.mobile.bar,{width:t})},Check.width=function(){Site.desktop.active?(gsap.set(Overlay.mobile.screen,{clearProps:"display"}),gsap.set(".site",{display:Config.display})):(gsap.set(".site",{clearProps:"display"}),gsap.set(Overlay.mobile.screen,{display:Config.display}),Print.width())},Config.respond||($(Check.width()),$(window).resize(Check.width()));var BackgroundShade={background:shade},ClearDisplay={clearProps:"display"},ClearBackground={clearProps:"background"},DisplayNone={display:"none"};Browse.book.links=$(".link.browse-book",".wrap.browse-book"),Browse.book.class="",Browse.book.notFound=!0,Browse.chapter.links=$(".link.browse-chapter",".wrap.browse-chapter"),Browse.chapter.books=$(".block.browse-book",".wrap.browse-chapter"),Browse.chapter.class="",Browse.chapter.notFound=!0,Browse.page.links=$(".link.browse-page",".wrap.browse-page"),Browse.page.books=$(".block.browse-book",".wrap.browse-page"),Browse.page.chapters=$(".block.browse-chapter",".wrap.browse-page"),Browse.page.class="",Browse.page.notFound=!0,Browse.found.success=!1,Browse.match=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"book";$(e.classList).each(function(e,a){"book"==t?a.startsWith("book-")&&(Browse.book.class=a):a.startsWith("chapter-")&&(Browse.chapter.class=a)})},Browse.found.check=function(e){Browse.found.success?gsap.set(e,ClearDisplay):gsap.set(e,DisplayNone)},$(window.location.pathname.split("/")).map(function(e,a){Site.isLibrary?1==e?(Book.url=a,Browse.book.class="book-"+Book.url):2==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):3==e&&(Page.url=a,Browse.page.class="title-"+Page.url):1==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):2==e&&(Page.url=a,Browse.page.class="title-"+Page.url)}),Check.book.class=function(e){Browse.found.success=!1,$(e.classList).map(function(e,a){a.startsWith("book-")&&Browse.book.class==a&&(Browse.found.success=!0,Browse.book.notFound=!1)})},Check.chapter.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("chapter-")&&Browse.chapter.class==a&&(Browse.found.success=!0,Browse.chapter.notFound=!1)})},Check.page.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("title-")&&Browse.page.class==a&&(Browse.found.success=!0,Browse.page.notFound=!1)})},Browse.chapter.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.notFound&&gsap.set(a.children[0],BackgroundShade)},Browse.page.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success?(gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.page.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.page.notFound&&gsap.set(a.children[0],BackgroundShade)):gsap.set(a,DisplayNone)}),Browse.chapter.notFound&&(gsap.set(a.children[0],ClearDisplay),gsap.set(a.children[0].children[0],BackgroundShade))},Browse.book.links.respond=function(e){Browse.match(e),gsap.set(Browse.book.links,ClearBackground),gsap.set(e,BackgroundShade),Check.book.class(e)},Browse.chapter.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.chapter.links.respond=function(e){var a=e.parentElement;Browse.match(a,"book"),Browse.match(e,"chapter"),gsap.set(Browse.chapter.links,ClearBackground),gsap.set(e,BackgroundShade)},Browse.page.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,DisplayNone),gsap.set(e.children[0],ClearDisplay),gsap.set(e.children[0].children,ClearBackground),gsap.set(e.children[0].children[0],BackgroundShade)},Browse.page.chapters.respond=function(e){Check.chapter.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.page.links.respond=function(e){gsap.set(Browse.page.links,ClearBackground),gsap.set(e,BackgroundShade)},Roller.default.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass([a,o[e]],"remove"))}),HandleClass([t,o[s]],"add")},Roller.default.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&HandleClass([a,t[e]],"remove")}),HandleClass([Save.input,t[Save.index]],"add"),e.play()},Roller.default.tl=function(t,o){var s=gsap.timeline({repeat:-1});t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),s.call(HandleClass,[a,"add"]).call(HandleClass,[o[e],"add"]).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o[e],"remove"]),$(a).hover(function(){Roller.default.over(s,t,a,o,e)},function(){Roller.default.out(s,t,o)})})},Roller.morph.over=function(e,a,t,o,s,n,r){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"))}),HandleClass(o,"clear"),$(t.classList).map(function(e,a){a.startsWith("title-")&&(r=a.slice(6))}),n="path#".concat(r),gsap.to(o,{morphSVG:n,duration:.3}),HandleClass(t,"add"),HandleClass(o,"add",r)},Roller.morph.out=function(e,a,t,o,s){a.map(function(e,a){$(a).hasClass("active")&&HandleClass(a,"remove")}),HandleClass(t,"clear"),$(Save.input.classList).map(function(e,a){a.startsWith("title-")&&(o=a.slice(6))}),s="path#".concat(o),gsap.to(t,{morphSVG:s,duration:.3}),HandleClass(Save.input,"add"),HandleClass(t,"add",o),e.play()},Roller.morph.tl=function(t,o){var s=gsap.timeline({repeat:-1}),n="",r="";t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&(n=a.slice(6))}),r="path#".concat(n),s.call(HandleClass,[a,"add"]).call(HandleClass,[o,"add",n]).to(o,{morphSVG:r,duration:.3}).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o,"remove",n]),$(a).hover(function(){Roller.morph.over(s,t,a,o,e,r,n)},function(){Roller.morph.out(s,t,o)})})},Roller.snap.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"),o.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(t,"add");var i=s;o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[i];HandleClass(t[i],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})})},Roller.snap.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&(HandleClass(a,"remove"),t.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(Save.input,"add"),t.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];HandleClass(t[Save.index],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})}),e.play()},Roller.snap.tl=function(t,o){var i=gsap.timeline({repeat:-1});t.map(function(e,a){Save.index=e,$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),i.call(HandleClass,[a,"add"]),o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];i.call(HandleClass,[t[Save.index],"add"]).set(s,{color:r.color}).set(n,{text:r.pcent[e]})}),i.call(HandleClass,[a,"remove"],"+=1"),o.map(function(e,a){var t=$(a).find("path");i.call(HandleClass,[t[Save.index],"remove"])}),$(a).hover(function(){Roller.snap.over(i,t,a,o,e)},function(){Roller.snap.out(i,t,o)})})};var ActiveBook=function(){if(!Body.isHome){var o="";$(Body.classes).map(function(e,a){if(a.startsWith("book-")){o=a.slice(5);var t=$("button",Site.topbar.lnk+"."+o);gsap.set(t,{borderBottom:"3px solid"})}})}};Site.isTheme||$(ActiveBook),Setup.home=function(){gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".link.book",{y:-5},{duration:1,y:5}),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})})},Site.isLibrary&&Body.isHome&&$(Setup.home());var ChangeScreen=function(e,a,t){var o=Overlay.custom[e],s=".area.overlay-"+o.name,n=$(".input.text-search"),r=$(".wrap.results");"close"==t?(gsap.set("body",{clearProps:"overflow"}),gsap.set(s,{clearProps:"display"}),o.open=!1,"search"==a.name&&(n.val(""),r.empty())):(gsap.set("body",{overflow:"hidden"}),gsap.set(s,{display:Config.display}),o.open=!0,"search"==a.name&&n.focus())},BuildScreens=function(e,a){var t=Overlay.button+"."+a.name,o=Overlay.exit+"."+a.name;$(t).click(function(){ChangeScreen(e,a,"open")}),$(o).click(function(){ChangeScreen(e,a,"close")})},KeyUp=function(t){$(Overlay.custom).map(function(e,a){a.open&&27==t.keyCode&&ChangeScreen(e,a,"close"),a.open||Site.inFocus||(65==t.keyCode&&"about"==a.name&&ChangeScreen(e,a,"open"),66==t.keyCode&&"browse"==a.name&&ChangeScreen(e,a,"open"),83==t.keyCode&&"search"==a.name&&ChangeScreen(e,a,"open"))})};$(Overlay.custom).map(function(e,a){BuildScreens(e,a)}),$(document).keyup(function(e){KeyUp(e)}),Setup.scroll=function(){$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(e){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash);(a=a.length?a:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:a.offset().top},500,function(){var e=$(a);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})},$(Setup.scroll()),Setup.site=function(){Config.respond?gsap.set(".site",{display:Config.display}):Site.mobile.active||gsap.set(".site",{display:Config.display}),setTimeout(function(){gsap.set(Overlay.load.screen,{clearProps:"display"}),Site.tl.pause()},1e3)},$(Setup.site()),$(window).resize(Setup.site()),Start.browse=function(){Book.url?(Browse.book.links.map(function(e,a){Check.book.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.chapter.books.filter(e,a):gsap.set(a,DisplayNone)}),Browse.page.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.page.books.filter(e,a):gsap.set(a,DisplayNone)})):(Browse.chapter.books.map(function(e,a){Browse.chapter.books.filter(e,a)}),Browse.page.books.map(function(e,a){Browse.page.books.filter(e,a)}))},Site.isTheme||Body.isHome||Browse.able&&Start.browse();var AnimateChart=function(){$(Site.charts.list).map(function(e,a){var o=gsap.timeline({repeat:-1,repeatDelay:3}),t=$(a).find(".block.chart-bar"),s=$(t).children(Site.charts.pcent).children("span"),n=$(t).find(Site.charts.title);o.from(t,{duration:1,stagger:.2,height:0},"start").from(n,{delay:1,duration:.2,opacity:0},"start").from(n,{delay:1,duration:.8,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),s.map(function(a){var e=s[a].innerText,t={val:0};o.to(t,{val:e,duration:2,onUpdate:function(){var e=gsap.utils.snap(1,t.val);s[a].innerText=e}},"start")})})},AnimateNumbers=function(){$(Site.numbers).map(function(e,a){var t=a.innerText,o={val:0};gsap.timeline({repeat:-1,repeatDelay:3}).to(o,{val:t,duration:3,onUpdate:function(){var e=gsap.utils.snap(1,o.val);a.innerText=e}},"start")})},AnimatePies=function(){$(Site.pies.list).map(function(e,a){var l=gsap.timeline({repeat:-1,repeatDelay:3}),t=a.children;$(t).map(function(e,a){var t=$(a).children(Site.pies.pcent).children("span"),o=$(a).children(Site.pies.wrap),s=$(a).children(Site.pies.title),n=o.children(Site.pies.data),r=$(t).text(),i={val:0};l.to(i,{val:r,duration:.4*6,onUpdate:function(){var e=gsap.utils.snap(1,i.val);t.text(e)}},"start").from(s,{duration:.4*3,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),n.map(function(e,a){var t=$("g#data",a);0==e?l.from(t,{duration:.4,opacity:0},"start").from(t,{duration:.4*3,rotation:-180,transformOrigin:"center"},"start"):0<e&&l.from(t,{duration:.4*3,rotation:-90,transformOrigin:"center",delay:.4*1.5},"start").from(t,{duration:.4,opacity:0,delay:.4*1.5},"start")})})})};$(".item.scroller").each(function(e,a){var t=$(a)[0].classList[2],o="#".concat(t,"-").concat(t),s=".item.scroller.".concat(t);return new ScrollMagic.Scene({triggerElement:o}).setTween(s,.1,{opacity:1}).addTo(controller)}),Artform.list=Object.keys(Color.artforms),Artform.clear=function(e){$(e).attr("class","block header title-artform"),$(Page.wrap+".title-artform").map(function(e,a){Contrast.reset(a)})},Artform.update=function(e,a){$(e).addClass("tag-"+a),$(Page.wrap+".title-artform").map(function(e,a){Contrast.check(a,".block.header",".block.header")})},Artform.header=function(){var a=".header.title-artform",t=gsap.timeline({repeat:-1});Artform.list.map(function(e){t.set(a,{opacity:1,onComplete:function(){Artform.update(a,e)}}).set(a,{clearProps:"all",delay:1.5,onComplete:function(){Artform.clear(a)}})})};var ParseInputs=function(e,a){e.map(function(e){$(e).parsley(a)})},RequireInputs=function(e){ParseInputs(e,{required:!0})},ValidateSelects=function(e){ParseInputs(e,{min:1,errorMessage:"Please select an option"})},ValidateNumbers=function(e){ParseInputs(e,{type:"digits"})},ValidateText=function(e){ParseInputs(e,{minlength:5})},ValidateEmail=function(e){ParseInputs(e,{type:"email"})};Contrast.reset=function(e){var a={ratio:$(e).find(Site.access.ratio)};$(a.ratio).attr("class","block access-ratio")},Contrast.round=function(e){return Math.round(100*e)/100},Contrast.ratio=function(e,a){return Contrast.round(tinycolor.readability(e,a))},Contrast.check=function(e,a,t){var o={ratio:$(e).find(Site.access.ratio),color:tinycolor($(a,e).css("color")).toHexString(),backg:tinycolor($(t,e).css("background-color")).toHexString()},s={ratio:Contrast.ratio(o.color,o.backg)};$(o.ratio).text(s.ratio),4.5<=s.ratio?$(o.ratio).addClass(Site.access.best):3<=s.ratio?$(o.ratio).addClass(Site.access.good):$(o.ratio).addClass(Site.access.poor)},Respond.browse=function(){Browse.book.links.hover(function(){Browse.book.links.respond(this),Browse.chapter.books.map(function(e,a){Browse.chapter.books.respond(a)}),Browse.page.books.map(function(e,a){Browse.page.books.respond(a)})}),Browse.chapter.links.hover(function(){Browse.chapter.links.respond(this),Browse.page.chapters.map(function(e,a){Browse.page.chapters.respond(a)})}),Browse.page.links.hover(function(){Browse.page.links.respond(this)})},Site.isTheme||Body.isHome||Browse.able&&Respond.browse(),Respond.roller.default.func=function(){$(Roller.default.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.default.output).find(".item");Roller.default.tl(t,o)})},Respond.roller.morph.func=function(){$(Roller.morph.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.morph.output).find("path#output");Roller.morph.tl(t,o)})},Respond.roller.snap.func=function(){$(Roller.snap.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).parents(".area.type-page").siblings(Roller.snap.output).find("svg.snap");Roller.snap.tl(t,o)})};var Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,a){var t=$(e.target),o=t.siblings(".button-bg"),s=t.parent(),n={dis:{before:$(s).siblings(".before"),after:$(s).siblings(".after")},dat:{before:$(s).parent().siblings().children(".before"),after:$(s).parent().siblings().children(".after")}},r=[n.dis.before,n.dat.before],i=[n.dis.after,n.dat.after];if(s.hasClass("undo"))"down"===a?gsap.set([s,o],{clearProps:"all"}):"up"===a&&($(s).removeClass("undo"),gsap.set([r,i],{clearProps:"all"}),gsap.set(t,{text:"Next"}));else if("down"===a)gsap.set([s,o],{scale:.95});else if("up"===a){gsap.timeline().to(r,{duration:.2,opacity:0}).set([s,o],{backgroundColor:Color.green}).set(t,{text:"Undo"}).set(r,{display:"none"}).set(i,{display:"block"}).to(o,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}).call(function(){$(s).addClass("undo")})}};$(Button.target).mousedown(function(e){ButtonSwitch(e,"down")}).mouseup(function(e){ButtonSwitch(e,"up")});var FocusInputs=["input","textarea"],SetFocus=function(e){Site.inFocus=e};FocusInputs.map(function(e){$(e).focusin(function(){SetFocus(!0)}).focusout(function(){SetFocus(!1)})}),Util.copy=function(e){var a=document.createElement("textarea");a.value=e,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)},Util.share=function(e){var a=$(e).parents(Site.page.share),t=$(a.context).find(Site.page.url).text();gsap.timeline();t=t.replace("index",""),$(a.context.classList).map(function(e,a){a.includes("type-")&&0}),Util.copy(t)};var WhatsOn={speed:function(e){return.03*e},slide:function(e){var a=$(".block.alert-content",e),t=$(".alert-feed",e),o=$(t).width()+100,s=$(".alert-clone",e);$(a).addClass("modify-grid");var n=gsap.timeline({defaults:{ease:"none"}}),r=gsap.timeline({repeat:-1,paused:!0,defaults:{ease:"none"}});r.to([t,s],{duration:WhatsOn.speed(o),x:-o}),n.to(a,{duration:WhatsOn.speed(20),paddingLeft:0}).call(function(){r.play()})},scroll:function(e){var a=$(".feed",e),t=$(a).height(),o=$(".clone",e);gsap.timeline({repeat:-1,defaults:{ease:"none"}}).to([a,o],{duration:WhatsOn.speed(t),y:-t})}},YouSaved=function(e){var a=$(".block.form-alert",e),t=tinycolor($(a).css("border-color")).toHexString(),o=tinycolor($(a).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10)}).set(a,{clearProps:"all",delay:.2}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10),delay:.2}).to(a,{backgroundColor:o,borderColor:t,duration:.8,delay:.2})};
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: futuro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Heading
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -118,8 +118,7 @@ files:
118
118
  - _includes/html/page/content/header.liquid
119
119
  - _includes/html/page/content/loader.liquid
120
120
  - _includes/html/page/content/loop.liquid
121
- - _includes/html/page/content/loop/alert/create.liquid
122
- - _includes/html/page/content/loop/alert/example.liquid
121
+ - _includes/html/page/content/loop/alert.liquid
123
122
  - _includes/html/page/content/loop/artwork/image.liquid
124
123
  - _includes/html/page/content/loop/artwork/video.liquid
125
124
  - _includes/html/page/content/loop/button/build.liquid
@@ -132,10 +131,9 @@ files:
132
131
  - _includes/html/page/content/loop/form/button.liquid
133
132
  - _includes/html/page/content/loop/form/callout.liquid
134
133
  - _includes/html/page/content/loop/form/date.liquid
134
+ - _includes/html/page/content/loop/form/email.liquid
135
135
  - _includes/html/page/content/loop/form/fee.liquid
136
- - _includes/html/page/content/loop/form/input.liquid
137
136
  - _includes/html/page/content/loop/form/item.liquid
138
- - _includes/html/page/content/loop/form/label.liquid
139
137
  - _includes/html/page/content/loop/form/legend.liquid
140
138
  - _includes/html/page/content/loop/form/message.liquid
141
139
  - _includes/html/page/content/loop/form/number.liquid
@@ -151,7 +149,11 @@ files:
151
149
  - _includes/html/page/content/loop/header/logo.liquid
152
150
  - _includes/html/page/content/loop/header/search.liquid
153
151
  - _includes/html/page/content/loop/header/subheader.liquid
152
+ - _includes/html/page/content/loop/input.liquid
153
+ - _includes/html/page/content/loop/item.liquid
154
+ - _includes/html/page/content/loop/label.liquid
154
155
  - _includes/html/page/content/loop/number.liquid
156
+ - _includes/html/page/content/loop/onemoment.liquid
155
157
  - _includes/html/page/content/loop/pies.liquid
156
158
  - _includes/html/page/content/loop/pies/create.liquid
157
159
  - _includes/html/page/content/loop/roller/assign.liquid
@@ -164,8 +166,7 @@ files:
164
166
  - _includes/html/page/content/loop/screen/row.liquid
165
167
  - _includes/html/page/content/loop/screen/small.liquid
166
168
  - _includes/html/page/content/loop/screen/title.liquid
167
- - _includes/html/page/content/loop/select/create.liquid
168
- - _includes/html/page/content/loop/yousaved.liquid
169
+ - _includes/html/page/content/loop/select.liquid
169
170
  - _includes/html/page/content/more.liquid
170
171
  - _includes/html/page/content/roller.liquid
171
172
  - _includes/html/page/content/row.liquid
@@ -262,6 +263,7 @@ files:
262
263
  - _sass/futuro.max.scss
263
264
  - _sass/futuro.shopify.scss
264
265
  - _sass/helpers/extends.scss
266
+ - _sass/helpers/extends/forms.scss
265
267
  - _sass/helpers/extends/grid.scss
266
268
  - _sass/helpers/extends/layout.scss
267
269
  - _sass/helpers/mixins.scss
@@ -1,20 +0,0 @@
1
-
2
- <span class="wrap alert-wrap" style="display:block;">
3
-
4
- <span class="block alert-content">
5
-
6
- <span class="title alert-content alert-feed">
7
-
8
- {{ include.title }}
9
-
10
- </span>
11
-
12
- <span class="title alert-content alert-clone">
13
-
14
- {{ include.title }}
15
-
16
- </span>
17
-
18
- </span>
19
-
20
- </span>
@@ -1,4 +0,0 @@
1
-
2
- {%- include {{ LoopAlert | append : 'create.liquid' }}
3
- context = "example"
4
- content = page.alert.content -%}
@@ -1,17 +0,0 @@
1
-
2
- {% if include.name %}
3
-
4
- {% assign group = include.name %}
5
-
6
- {% else %}
7
-
8
- {% assign group = name %}
9
-
10
- {% endif %}
11
-
12
- <input {% if include.class %}class="{{ include.class }}"{% endif %}
13
- type = "{{ include.type }}"
14
- id = "{{ name }}"
15
- name = "{{ group }}"
16
- value = "{{ include.value }}"
17
- {% if include.placeholder %}placeholder="{{ include.placeholder }}"{% endif %}>
@@ -1,11 +0,0 @@
1
-
2
- {%- if item.item -%}
3
-
4
- <span class="block form-alert {{ PageTitle | prepend: 'title-' }}">
5
- <span class="block item-object {{ PageTitle | prepend: 'title-' }}">
6
- <span>{{ item.item }}</span>
7
- <span class="block item-object-price">{{ item.price | prepend: '£' }}</span>
8
- </span>
9
- </span>
10
-
11
- {%- endif -%}