futuro 1.1.2 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/html/page/content.liquid +2 -7
- data/_includes/html/page/content/loop/form.liquid +1 -0
- data/_includes/html/page/content/loop/form/message.liquid +17 -3
- data/_includes/html/page/content/loop/form/radio.liquid +7 -2
- data/_includes/html/page/layout/page.liquid +10 -0
- data/_includes/html/page/util/share.liquid +1 -1
- data/_sass/block/form.scss +4 -0
- data/_sass/block/form/radio.scss +38 -6
- data/_sass/block/page.scss +3 -4
- data/_sass/futuro.core.scss +6 -0
- data/_sass/helpers/variables/colors.scss +9 -9
- data/assets/js/footer/custom/1_Settings.js +4 -5
- data/assets/js/footer/custom/4_Setup.overlays.js +81 -92
- data/assets/js/footer/custom/4_Start.browse.js +2 -3
- data/assets/js/footer/vendor/futuro/browsr.js +150 -93
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.footer.vendor.js +154 -97
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4989598c2b082b29ad32c8df3671505d7818a921f07ede76f529002d5e827a39
|
4
|
+
data.tar.gz: bd43da1098dc9be2376556ae3a793cbd821c41f3fa02f920f89ec6923d5ce2b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7d90884de73230e74feb7cbaee7297cba8e21b10598c407f580ad72bceba287d62cf4b8cfcdb9e9d91a3633d21e975ca2da051e2723d44d7427915af02569a5
|
7
|
+
data.tar.gz: efeda0cbdc92b027e62ab62b042e32d59388520dcf90888bd570749c027952e35df37ed41650151fa5c492e1b4407581e45d5292623f861ee84888365da7d3d1
|
@@ -88,12 +88,6 @@
|
|
88
88
|
|
89
89
|
{% endif %}
|
90
90
|
|
91
|
-
{% if page.artwork %}
|
92
|
-
|
93
|
-
{% include {{ SiteContent | append : 'artwork.liquid' }} %}
|
94
|
-
|
95
|
-
{% endif %}
|
96
|
-
|
97
91
|
{% if page.form %}
|
98
92
|
|
99
93
|
<form onsubmit="return false">
|
@@ -156,7 +150,8 @@
|
|
156
150
|
{% if page.checkbox %}
|
157
151
|
|
158
152
|
{% include {{ ContentLoop | append : 'checkbox.liquid' }}
|
159
|
-
label = page.checkbox.label
|
153
|
+
label = page.checkbox.label
|
154
|
+
small = page.checkbox.small %}
|
160
155
|
|
161
156
|
{% endif %}
|
162
157
|
|
@@ -1,6 +1,20 @@
|
|
1
1
|
|
2
|
-
<
|
2
|
+
<div class="block form-row message-row">
|
3
3
|
|
4
|
-
<
|
4
|
+
<div class="block message">
|
5
|
+
{% if item.message.title %}
|
6
|
+
<span>
|
7
|
+
{{ item.message.title }}
|
8
|
+
</span>
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% if item.message.list %}
|
12
|
+
<ul style="padding-top:20px;">
|
13
|
+
{% for item in item.message.list %}
|
14
|
+
<li>{{ item.item }}</li>
|
15
|
+
{% endfor %}
|
16
|
+
</ul>
|
17
|
+
{% endif %}
|
18
|
+
</div>
|
5
19
|
|
6
|
-
</
|
20
|
+
</div>
|
@@ -1,12 +1,17 @@
|
|
1
1
|
|
2
2
|
{% assign RadioGroup = item.radio.label | replace : ' ','-' | downcase %}
|
3
3
|
|
4
|
+
{% if item.radio.stack %}
|
5
|
+
{% assign stackClass = "stacked" %}
|
6
|
+
{% endif %}
|
7
|
+
|
4
8
|
<p class="block form-row form-radio">
|
5
9
|
|
6
10
|
{% include html/assign/name.liquid parent="radio" %}
|
7
11
|
|
8
12
|
{% include {{ ContentLoop | append : 'label.liquid' }}
|
9
|
-
label = item.radio.label
|
13
|
+
label = item.radio.label
|
14
|
+
small = item.radio.small
|
10
15
|
class = "form-label" %}
|
11
16
|
|
12
17
|
<span class="wrap form-radio">
|
@@ -15,7 +20,7 @@
|
|
15
20
|
|
16
21
|
{% include html/assign/name.liquid parent="radio" %}
|
17
22
|
|
18
|
-
<span class="block form-radio-group">
|
23
|
+
<span class="block form-radio-group {{ stackClass }}">
|
19
24
|
|
20
25
|
{% include {{ ContentLoop | append : 'input.liquid' }}
|
21
26
|
name = RadioGroup
|
@@ -11,6 +11,16 @@
|
|
11
11
|
|
12
12
|
{%- endif -%}
|
13
13
|
|
14
|
+
{% if page.artwork %}
|
15
|
+
|
16
|
+
<div class="block artwork-container">
|
17
|
+
|
18
|
+
{% include {{ SiteContent | append : 'artwork.liquid' }} %}
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
22
|
+
{% endif %}
|
23
|
+
|
14
24
|
{%- include {{ SitePage | append : 'footnote.liquid' }} -%}
|
15
25
|
|
16
26
|
{% unless SiteIsDocs %}
|
data/_sass/block/form.scss
CHANGED
data/_sass/block/form/radio.scss
CHANGED
@@ -1,12 +1,44 @@
|
|
1
1
|
|
2
2
|
.wrap.form-radio {
|
3
|
-
|
4
|
-
display: grid;
|
3
|
+
display: inline-block;
|
5
4
|
}
|
6
5
|
|
7
6
|
.block.form-radio-group {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
display: inline-block;
|
8
|
+
position: relative;
|
9
|
+
margin: 6px 2px;
|
10
|
+
|
11
|
+
&.stacked {
|
12
|
+
display: block;
|
13
|
+
}
|
14
|
+
|
15
|
+
input {
|
16
|
+
position: absolute;
|
17
|
+
bottom: 0;
|
18
|
+
right: 0;
|
19
|
+
left: 0;
|
20
|
+
top: 0;
|
21
|
+
left: 16px;
|
22
|
+
cursor: pointer;
|
23
|
+
height: 14px;
|
24
|
+
margin: auto;
|
25
|
+
width: 14px;
|
26
|
+
right: auto;
|
27
|
+
|
28
|
+
&:checked + label {
|
29
|
+
color: #333333;
|
30
|
+
border: 1px solid rgba(51, 51, 51, 0.5);
|
31
|
+
background: rgba(51, 51, 51, 0.05);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
label {
|
36
|
+
display: inline-block;
|
37
|
+
border: 1px solid #b8b8b8;
|
38
|
+
padding: 14px 12px 10px 40px;
|
39
|
+
background-color: white;
|
40
|
+
color: #4d4d4d;
|
41
|
+
border-radius: 4px;
|
42
|
+
cursor: pointer;
|
43
|
+
}
|
12
44
|
}
|
data/_sass/block/page.scss
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
width: 5px;
|
16
16
|
}
|
17
17
|
|
18
|
-
|
18
|
+
%PageContainer {
|
19
19
|
border-bottom: 1px solid lighten(setcolor(generic),43%);
|
20
20
|
padding-right: 20px;
|
21
21
|
padding-left: 20px;
|
@@ -26,9 +26,8 @@
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
|
29
|
-
.block.page-
|
30
|
-
|
31
|
-
height: 100px;
|
29
|
+
.block.page-container {
|
30
|
+
@extend %PageContainer;
|
32
31
|
}
|
33
32
|
|
34
33
|
.block.page-info {
|
data/_sass/futuro.core.scss
CHANGED
@@ -46,39 +46,39 @@ $ux-colors : (
|
|
46
46
|
|
47
47
|
$tier-colors : (
|
48
48
|
|
49
|
-
|
49
|
+
level-a : (
|
50
50
|
base : #e61717
|
51
51
|
),
|
52
52
|
|
53
|
-
|
53
|
+
level-b : (
|
54
54
|
base : #0099e6
|
55
55
|
),
|
56
56
|
|
57
|
-
|
57
|
+
level-c : (
|
58
58
|
base : #ff8001
|
59
59
|
),
|
60
60
|
|
61
|
-
|
61
|
+
level-d : (
|
62
62
|
base : #3bb300
|
63
63
|
),
|
64
64
|
|
65
|
-
|
65
|
+
level-e : (
|
66
66
|
base : #8b3788
|
67
67
|
),
|
68
68
|
|
69
|
-
|
69
|
+
level-f : (
|
70
70
|
base : #e60073
|
71
71
|
),
|
72
72
|
|
73
|
-
|
73
|
+
level-g : (
|
74
74
|
base : #b35900
|
75
75
|
),
|
76
76
|
|
77
|
-
|
77
|
+
level-y : (
|
78
78
|
base : #ffaa00
|
79
79
|
),
|
80
80
|
|
81
|
-
|
81
|
+
level-l : (
|
82
82
|
base : #b8b8b8
|
83
83
|
)
|
84
84
|
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
gsap.registerPlugin(ScrollTrigger);
|
3
2
|
|
4
3
|
Browse.able = false;
|
@@ -11,10 +10,10 @@ if ($("body").hasClass("type-home")) {
|
|
11
10
|
|
12
11
|
if (!Site.isTheme) {
|
13
12
|
Browse.able = $(".wrap.type-page").length;
|
14
|
-
}
|
13
|
+
}
|
15
14
|
|
16
|
-
const HandleClass = (e,state,name="active") => {
|
17
|
-
$(e).map((index,value) => {
|
15
|
+
const HandleClass = (e, state, name = "active") => {
|
16
|
+
$(e).map((index, value) => {
|
18
17
|
if (state == "add") {
|
19
18
|
$(value).addClass(name);
|
20
19
|
} else if (state == "remove") {
|
@@ -23,4 +22,4 @@ const HandleClass = (e,state,name="active") => {
|
|
23
22
|
$(value).removeClass();
|
24
23
|
}
|
25
24
|
});
|
26
|
-
}
|
25
|
+
};
|
@@ -1,92 +1,81 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
// $(Overlay.custom).map((index,value) => {
|
83
|
-
|
84
|
-
// BuildScreens(index,value);
|
85
|
-
|
86
|
-
// });
|
87
|
-
|
88
|
-
// $(document).keyup(function(e) {
|
89
|
-
|
90
|
-
// KeyUp(e);
|
91
|
-
|
92
|
-
// });
|
1
|
+
const ChangeScreen = (index, value, state) => {
|
2
|
+
let source = Overlay.custom[index],
|
3
|
+
target = ".area.overlay-" + source.name,
|
4
|
+
input = $(".input.text-search"),
|
5
|
+
results = $(".wrap.results");
|
6
|
+
|
7
|
+
if (state == "close") {
|
8
|
+
gsap.set("body", {
|
9
|
+
clearProps: "overflow",
|
10
|
+
});
|
11
|
+
|
12
|
+
gsap.set(target, {
|
13
|
+
clearProps: "display",
|
14
|
+
});
|
15
|
+
|
16
|
+
source.open = false;
|
17
|
+
|
18
|
+
if (value.name == "search") {
|
19
|
+
input.val("");
|
20
|
+
|
21
|
+
results.empty();
|
22
|
+
}
|
23
|
+
} else {
|
24
|
+
gsap.set("body", {
|
25
|
+
overflow: "hidden",
|
26
|
+
});
|
27
|
+
|
28
|
+
gsap.set(target, {
|
29
|
+
display: Config.display,
|
30
|
+
});
|
31
|
+
|
32
|
+
source.open = true;
|
33
|
+
|
34
|
+
if (value.name == "search") {
|
35
|
+
input.focus();
|
36
|
+
}
|
37
|
+
}
|
38
|
+
};
|
39
|
+
|
40
|
+
const BuildScreens = (index, value) => {
|
41
|
+
let button = Overlay.button + "." + value.name,
|
42
|
+
exit = Overlay.exit + "." + value.name;
|
43
|
+
|
44
|
+
$(button).click(function () {
|
45
|
+
ChangeScreen(index, value, "open");
|
46
|
+
});
|
47
|
+
|
48
|
+
$(exit).click(function () {
|
49
|
+
ChangeScreen(index, value, "close");
|
50
|
+
});
|
51
|
+
};
|
52
|
+
|
53
|
+
const KeyUp = (e) => {
|
54
|
+
$(Overlay.custom).map((index, value) => {
|
55
|
+
if (value.open && e.keyCode == 27) {
|
56
|
+
ChangeScreen(index, value, "close");
|
57
|
+
}
|
58
|
+
|
59
|
+
if (!value.open && !Site.inFocus) {
|
60
|
+
if (e.keyCode == 65 && value.name == "about") {
|
61
|
+
ChangeScreen(index, value, "open");
|
62
|
+
}
|
63
|
+
|
64
|
+
if (e.keyCode == 66 && value.name == "browse") {
|
65
|
+
ChangeScreen(index, value, "open");
|
66
|
+
}
|
67
|
+
|
68
|
+
if (e.keyCode == 83 && value.name == "search") {
|
69
|
+
ChangeScreen(index, value, "open");
|
70
|
+
}
|
71
|
+
}
|
72
|
+
});
|
73
|
+
};
|
74
|
+
|
75
|
+
$(Overlay.custom).map((index, value) => {
|
76
|
+
BuildScreens(index, value);
|
77
|
+
});
|
78
|
+
|
79
|
+
$(document).keyup(function (e) {
|
80
|
+
KeyUp(e);
|
81
|
+
});
|
@@ -3,8 +3,7 @@
|
|
3
3
|
return new Browsr.init(target);
|
4
4
|
};
|
5
5
|
|
6
|
-
let
|
7
|
-
found = false,
|
6
|
+
let found = false,
|
8
7
|
book = {
|
9
8
|
found: false,
|
10
9
|
},
|
@@ -109,7 +108,7 @@
|
|
109
108
|
}
|
110
109
|
});
|
111
110
|
},
|
112
|
-
setup() {
|
111
|
+
setup(library) {
|
113
112
|
chapter.links = this.linkify("chapter");
|
114
113
|
page.links = this.linkify("page");
|
115
114
|
if (library) {
|
@@ -127,114 +126,169 @@
|
|
127
126
|
page.books = this.bookify("page");
|
128
127
|
page.class = this.classify(page.url, "page");
|
129
128
|
},
|
130
|
-
start() {
|
131
|
-
this.setup();
|
132
|
-
// console.log(book,chapter,page);
|
129
|
+
start(library) {
|
130
|
+
this.setup(library);
|
133
131
|
|
134
|
-
if (
|
135
|
-
book.
|
132
|
+
if (library) {
|
133
|
+
if (book.url) {
|
134
|
+
book.links.map((_, value) => {
|
135
|
+
this.checkBook(value);
|
136
|
+
if (found) {
|
137
|
+
this.shadify(value);
|
138
|
+
}
|
139
|
+
});
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
if (library) {
|
144
|
+
chapter.books.map((_, value) => {
|
136
145
|
this.checkBook(value);
|
137
146
|
if (found) {
|
138
|
-
|
147
|
+
chapter.books.map((_, value) => {
|
148
|
+
$(value.children).map((_, value) => {
|
149
|
+
this.checkChapter(value);
|
150
|
+
if (found) {
|
151
|
+
this.shadify(value);
|
152
|
+
}
|
153
|
+
});
|
154
|
+
});
|
155
|
+
} else {
|
156
|
+
this.nunify(value);
|
139
157
|
}
|
140
158
|
});
|
159
|
+
} else {
|
160
|
+
chapter.books.map((_, value) => {
|
161
|
+
$(value.children).map((_, value) => {
|
162
|
+
this.checkChapter(value);
|
163
|
+
if (found) {
|
164
|
+
this.shadify(value);
|
165
|
+
}
|
166
|
+
});
|
167
|
+
});
|
141
168
|
}
|
142
169
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
if (found) {
|
147
|
-
chapter.books.map((_, value) => {
|
148
|
-
$(value.children).map((_, value) => {
|
149
|
-
this.checkChapter(value);
|
170
|
+
if (library) {
|
171
|
+
page.books.map((_, value) => {
|
172
|
+
this.checkBook(value);
|
150
173
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
});
|
156
|
-
} else {
|
157
|
-
this.nunify(value);
|
158
|
-
}
|
159
|
-
});
|
174
|
+
if (found) {
|
175
|
+
page.books.map((_, value) => {
|
176
|
+
$(value.children).map((_, value) => {
|
177
|
+
this.checkChapter(value);
|
160
178
|
|
161
|
-
|
162
|
-
|
179
|
+
if (found) {
|
180
|
+
$(value.children).map((_, value) => {
|
181
|
+
this.checkPage(value);
|
163
182
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
183
|
+
if (found) {
|
184
|
+
this.shadify(value);
|
185
|
+
}
|
186
|
+
});
|
187
|
+
} else {
|
188
|
+
this.nunify(value);
|
189
|
+
}
|
190
|
+
});
|
191
|
+
});
|
192
|
+
} else {
|
193
|
+
this.nunify(value);
|
194
|
+
}
|
195
|
+
});
|
196
|
+
} else {
|
197
|
+
page.books.map((_, value) => {
|
198
|
+
$(value.children).map((_, value) => {
|
199
|
+
this.checkChapter(value);
|
168
200
|
|
169
|
-
|
170
|
-
|
171
|
-
|
201
|
+
if (found) {
|
202
|
+
$(value.children).map((_, value) => {
|
203
|
+
this.checkPage(value);
|
172
204
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
});
|
205
|
+
if (found) {
|
206
|
+
this.shadify(value);
|
207
|
+
}
|
208
|
+
});
|
209
|
+
} else {
|
210
|
+
this.nunify(value);
|
211
|
+
}
|
181
212
|
});
|
182
|
-
}
|
183
|
-
|
184
|
-
}
|
185
|
-
});
|
213
|
+
});
|
214
|
+
}
|
186
215
|
|
187
216
|
return this;
|
188
217
|
},
|
189
|
-
respond() {
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
218
|
+
respond(library) {
|
219
|
+
if (library) {
|
220
|
+
book.links.hover((e) => {
|
221
|
+
this.match(e.target);
|
222
|
+
this.clearify(book.links);
|
223
|
+
this.shadify(e.target);
|
194
224
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
225
|
+
chapter.books.map((_, value) => {
|
226
|
+
this.nunify(value);
|
227
|
+
this.clearify(value.children);
|
228
|
+
this.checkBook(value);
|
199
229
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
230
|
+
if (found) {
|
231
|
+
this.clearify(value, "display");
|
232
|
+
this.shadify(value.children[0]);
|
233
|
+
}
|
234
|
+
});
|
205
235
|
|
206
|
-
|
207
|
-
|
208
|
-
|
236
|
+
page.books.map((_, value) => {
|
237
|
+
this.nunify(value);
|
238
|
+
this.checkBook(value);
|
209
239
|
|
210
|
-
|
211
|
-
|
240
|
+
if (found) {
|
241
|
+
this.clearify(value, "display");
|
212
242
|
|
213
|
-
|
214
|
-
|
215
|
-
|
243
|
+
$(value.children).map((index, value) => {
|
244
|
+
this.nunify(value);
|
245
|
+
this.clearify(value.children);
|
216
246
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
247
|
+
if (index == 0) {
|
248
|
+
this.clearify(value, "display");
|
249
|
+
this.shadify(value.children[0]);
|
250
|
+
}
|
251
|
+
});
|
252
|
+
}
|
253
|
+
});
|
223
254
|
});
|
224
|
-
});
|
225
255
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
256
|
+
chapter.links.hover((e) => {
|
257
|
+
this.match(e.target, "chapter");
|
258
|
+
this.clearify(chapter.links);
|
259
|
+
this.shadify(e.target);
|
230
260
|
|
231
|
-
|
232
|
-
|
233
|
-
|
261
|
+
page.books.map((_, value) => {
|
262
|
+
this.nunify(value);
|
263
|
+
this.checkBook(value);
|
234
264
|
|
235
|
-
|
236
|
-
|
265
|
+
if (found) {
|
266
|
+
this.clearify(value, "display");
|
267
|
+
|
268
|
+
$(value.children).map((_, value) => {
|
269
|
+
this.nunify(value);
|
270
|
+
this.clearify(value.children);
|
271
|
+
this.checkChapter(value);
|
237
272
|
|
273
|
+
if (found) {
|
274
|
+
this.clearify(value, "display");
|
275
|
+
this.shadify(value.children[0]);
|
276
|
+
}
|
277
|
+
});
|
278
|
+
}
|
279
|
+
});
|
280
|
+
});
|
281
|
+
page.links.hover((e) => {
|
282
|
+
this.clearify(page.links);
|
283
|
+
this.shadify(e.target);
|
284
|
+
});
|
285
|
+
} else {
|
286
|
+
chapter.links.hover((e) => {
|
287
|
+
this.match(e.target, "chapter");
|
288
|
+
this.clearify(chapter.links);
|
289
|
+
this.shadify(e.target);
|
290
|
+
|
291
|
+
page.books.map((_, value) => {
|
238
292
|
$(value.children).map((_, value) => {
|
239
293
|
this.nunify(value);
|
240
294
|
this.clearify(value.children);
|
@@ -245,22 +299,25 @@
|
|
245
299
|
this.shadify(value.children[0]);
|
246
300
|
}
|
247
301
|
});
|
248
|
-
}
|
302
|
+
});
|
249
303
|
});
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
}
|
304
|
+
page.links.hover((e) => {
|
305
|
+
this.clearify(page.links);
|
306
|
+
this.shadify(e.target);
|
307
|
+
});
|
308
|
+
}
|
255
309
|
|
256
310
|
return this;
|
257
311
|
},
|
258
312
|
};
|
259
313
|
|
260
|
-
Browsr.init = function (
|
314
|
+
Browsr.init = function (library) {
|
261
315
|
var self = this;
|
262
|
-
self.target =
|
263
|
-
|
316
|
+
self.target = document;
|
317
|
+
if (library == null) {
|
318
|
+
library = false;
|
319
|
+
}
|
320
|
+
this.start(library).respond(library);
|
264
321
|
};
|
265
322
|
|
266
323
|
Browsr.init.prototype = Browsr.prototype;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";gsap.registerPlugin(ScrollTrigger),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(t,a,e){var n=2<arguments.length&&void 0!==e?e:"active";$(t).map(function(t,e){"add"==a?$(e).addClass(n):"remove"==a?$(e).removeClass(n):"clear"==a&&$(e).removeClass()})};Config.respond||(Checkr(Site.desktop.active),$(window).resize(function(){Checkr(Site.desktop.active)})),Roller.default.over=function(t,e,a,n,o){t.pause(),e.map(function(t,e){$(e).hasClass("active")&&(Save.input=e,Save.index=t,HandleClass([e,n[t]],"remove"))}),HandleClass([a,n[o]],"add")},Roller.default.out=function(t,e,a){e.map(function(t,e){$(e).hasClass("active")&&HandleClass([e,a[t]],"remove")}),HandleClass([Save.input,a[Save.index]],"add"),t.play()},Roller.default.tl=function(a,n){var o=gsap.timeline({repeat:-1});a.map(function(t,e){$(e.classList).map(function(t,e){e.startsWith("title-")&&e.slice(6)}),o.call(HandleClass,[e,"add"]).call(HandleClass,[n[t],"add"]).call(HandleClass,[e,"remove"],"+=1").call(HandleClass,[n[t],"remove"]),$(e).hover(function(){Roller.default.over(o,a,e,n,t)},function(){Roller.default.out(o,a,n)})})},Roller.morph.over=function(t,e,a,n,o,s,i){t.pause(),e.map(function(t,e){$(e).hasClass("active")&&(Save.input=e,Save.index=t,HandleClass(e,"remove"))}),HandleClass(n,"clear"),$(a.classList).map(function(t,e){e.startsWith("title-")&&(i=e.slice(6))}),s="path#".concat(i),gsap.to(n,{morphSVG:s,duration:.3}),HandleClass(a,"add"),HandleClass(n,"add",i)},Roller.morph.out=function(t,e,a,n,o){e.map(function(t,e){$(e).hasClass("active")&&HandleClass(e,"remove")}),HandleClass(a,"clear"),$(Save.input.classList).map(function(t,e){e.startsWith("title-")&&(n=e.slice(6))}),o="path#".concat(n),gsap.to(a,{morphSVG:o,duration:.3}),HandleClass(Save.input,"add"),HandleClass(a,"add",n),t.play()},Roller.morph.tl=function(a,n){var o=gsap.timeline({repeat:-1}),s="",i="";a.map(function(t,e){$(e.classList).map(function(t,e){e.startsWith("title-")&&(s=e.slice(6))}),i="path#".concat(s),o.call(HandleClass,[e,"add"]).call(HandleClass,[n,"add",s]).to(n,{morphSVG:i,duration:.3}).call(HandleClass,[e,"remove"],"+=1").call(HandleClass,[n,"remove",s]),$(e).hover(function(){Roller.morph.over(o,a,e,n,t,i,s)},function(){Roller.morph.out(o,a,n)})})},Roller.snap.over=function(t,e,a,n,o){t.pause(),e.map(function(t,e){$(e).hasClass("active")&&(Save.input=e,Save.index=t,HandleClass(e,"remove"),n.map(function(t,e){var a=$(e).find("path");HandleClass(a,"remove")}))}),HandleClass(a,"add");var r=o;n.map(function(t,e){var a=$(e).find("path"),n=$(e).parents(".pie-wrap"),o=n.siblings(".title"),s=n.siblings(".pie-pcent").find("span"),i=Site.chapters[r];HandleClass(a[r],"add"),gsap.set(o,{color:i.color}),gsap.set(s,{text:i.pcent[t]})})},Roller.snap.out=function(t,e,a){e.map(function(t,e){$(e).hasClass("active")&&(HandleClass(e,"remove"),a.map(function(t,e){var a=$(e).find("path");HandleClass(a,"remove")}))}),HandleClass(Save.input,"add"),a.map(function(t,e){var a=$(e).find("path"),n=$(e).parents(".pie-wrap"),o=n.siblings(".title"),s=n.siblings(".pie-pcent").find("span"),i=Site.chapters[Save.index];HandleClass(a[Save.index],"add"),gsap.set(o,{color:i.color}),gsap.set(s,{text:i.pcent[t]})}),t.play()},Roller.snap.tl=function(a,n){var r=gsap.timeline({repeat:-1});a.map(function(t,e){Save.index=t,$(e.classList).map(function(t,e){e.startsWith("title-")&&e.slice(6)}),r.call(HandleClass,[e,"add"]),n.map(function(t,e){var a=$(e).find("path"),n=$(e).parents(".pie-wrap"),o=n.siblings(".title"),s=n.siblings(".pie-pcent").find("span"),i=Site.chapters[Save.index];r.call(HandleClass,[a[Save.index],"add"]).set(o,{color:i.color}).set(s,{text:i.pcent[t]})}),r.call(HandleClass,[e,"remove"],"+=1"),n.map(function(t,e){var a=$(e).find("path");r.call(HandleClass,[a[Save.index],"remove"])}),$(e).hover(function(){Roller.snap.over(r,a,e,n,t)},function(){Roller.snap.out(r,a,n)})})};var ActiveBook=function(){if(!Body.isHome){var n="";$(Body.classes).map(function(t,e){if(e.startsWith("book-")){n=e.slice(5);var a=$("button",Site.topbar.lnk+"."+n);gsap.set(a,{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()),Setup.scroll=function(){$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=$(this.hash);(e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length&&(t.preventDefault(),$("html, body").animate({scrollTop:e.offset().top},500,function(){var t=$(e);if(t.focus(),t.is(":focus"))return!1;t.attr("tabindex","-1"),t.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()),Site.isTheme||Body.isHome||!Browse.able||Browsr();var AnimateChart=function(){$(Site.charts.list).map(function(t,e){var n=gsap.timeline({repeat:-1,repeatDelay:3}),a=$(e).find(".block.chart-bar"),o=$(a).children(Site.charts.pcent).children("span"),s=$(a).find(Site.charts.title);n.from(a,{duration:1,stagger:.2,height:0},"start").from(s,{delay:1,duration:.2,opacity:0},"start").from(s,{delay:1,duration:.8,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),o.map(function(e){var t=o[e].innerText,a={val:0};n.to(a,{val:t,duration:2,onUpdate:function(){var t=gsap.utils.snap(1,a.val);o[e].innerText=t}},"start")})})},AnimateNumbers=function(){$(Site.numbers).map(function(t,e){var a=e.innerText,n={val:0};gsap.timeline({repeat:-1,repeatDelay:3}).to(n,{val:a,duration:3,onUpdate:function(){var t=gsap.utils.snap(1,n.val);e.innerText=t}},"start")})},AnimatePies=function(){$(Site.pies.list).map(function(t,e){var l=gsap.timeline({repeat:-1,repeatDelay:3}),a=e.children;$(a).map(function(t,e){var a=$(e).children(Site.pies.pcent).children("span"),n=$(e).children(Site.pies.wrap),o=$(e).children(Site.pies.title),s=n.children(Site.pies.data),i=$(a).text(),r={val:0};l.to(r,{val:i,duration:.4*6,onUpdate:function(){var t=gsap.utils.snap(1,r.val);a.text(t)}},"start").from(o,{duration:.4*3,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),s.map(function(t,e){var a=$("g#data",e);0==t?l.from(a,{duration:.4,opacity:0},"start").from(a,{duration:.4*3,rotation:-180,transformOrigin:"center"},"start"):0<t&&l.from(a,{duration:.4*3,rotation:-90,transformOrigin:"center",delay:.4*1.5},"start").from(a,{duration:.4,opacity:0,delay:.4*1.5},"start")})})})};Artform.list=Object.keys(Color.artforms),Artform.clear=function(t){$(t).attr("class","block header title-artform"),$(Page.wrap+".title-artform").map(function(t,e){Contrast.reset(e)})},Artform.update=function(t,e){$(t).addClass("tag-"+e),$(Page.wrap+".title-artform").map(function(t,e){Contrast.check(e,".block.header",".block.header")})},Artform.header=function(){var e=".header.title-artform",a=gsap.timeline({repeat:-1});Artform.list.map(function(t){a.set(e,{opacity:1,onComplete:function(){Artform.update(e,t)}}).set(e,{clearProps:"all",delay:1.5,onComplete:function(){Artform.clear(e)}})})},Button.func.reset=function(t,e){var a=$(t).find(".button-title"),n=[a,$(t).find(".button-bg"),t];gsap.timeline().set(n,{clearProps:"all"}).set(a,{text:e})},Button.func.submit=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"Done",a=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=$(t).find(".button-title"),o=$(t).find(".button-bg"),s=[n,o,t],i=gsap.timeline();Save.text=$(t).find(".button-title").text(),Save.color=$(t).css("backgroundColor"),i.set(t,{backgroundColor:tinycolor(Save.color).lighten(44).desaturate(5)}).set(n,{color:Save.color}).set(s,{clearProps:"all"}).set([t,o],{backgroundColor:Color.green}).set(n,{text:e}).to(o,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}),a&&i.call(function(){Button.func.reset(t,Save.text)},"+=1")},Button.func.switch=function(t){$(t).hasClass("undo")?($(t).parents(".control").siblings(".before").show(),$(t).parents(".control").siblings(".after").hide(),$(t).parents(".wrap.switch").siblings(".wrap.switch").children(".before").show(),$(t).parents(".wrap.switch").siblings(".wrap.switch").children(".after").hide(),$(t).removeClass("undo"),Button.func.reset(t,"Next")):(Button.func.submit(t,"Back",!1),$(t).parents(".control").siblings(".before").hide(),$(t).parents(".control").siblings(".after").show(),$(t).parents(".wrap.switch").siblings(".wrap.switch").children(".before").hide(),$(t).parents(".wrap.switch").siblings(".wrap.switch").children(".after").show(),$(t).addClass("undo"))},Button.func.update=function(t){var e=$(t).find(".button-title"),a=$(t).find(".button-bg");if(Save.text=$(t).find(".button-title").text(),Save.color=$(t).css("backgroundColor"),!UpdateIsLocked){var n=gsap.timeline();n.set(e,{text:"Adding"}).set(a,{backgroundColor:tinycolor(Save.color).darken(8)}).to(a,{right:0,duration:1}).set(e,{text:"Added"}).to(a,{duration:.5,backgroundColor:Color.green}),reset&&n.call(function(){Button.func.reset(t,Save.text)},"+=1")}};var ParseInputs=function(t,e){t.map(function(t){$(t).parsley(e)})},RequireInputs=function(t){ParseInputs(t,{required:!0})},ValidateSelects=function(t){ParseInputs(t,{min:1,errorMessage:"Please select an option"})},ValidateNumbers=function(t){ParseInputs(t,{type:"digits"})},ValidateText=function(t){ParseInputs(t,{minlength:5})},ValidateEmail=function(t){ParseInputs(t,{type:"email"})};Contrast.reset=function(t){var e={ratio:$(t).find(Site.access.ratio)};$(e.ratio).attr("class","block access-ratio")},Contrast.round=function(t){return Math.round(100*t)/100},Contrast.ratio=function(t,e){return Contrast.round(tinycolor.readability(t,e))},Contrast.check=function(t,e,a){var n={ratio:$(t).find(Site.access.ratio),color:tinycolor($(e,t).css("color")).toHexString(),backg:tinycolor($(a,t).css("background-color")).toHexString()},o={ratio:Contrast.ratio(n.color,n.backg)};$(n.ratio).text(o.ratio),4.5<=o.ratio?$(n.ratio).addClass(Site.access.best):3<=o.ratio?$(n.ratio).addClass(Site.access.good):$(n.ratio).addClass(Site.access.poor)},Respond.roller.default.func=function(){$(Roller.default.input).map(function(t,e){var a=$(e).find(".item"),n=$(e).siblings(Roller.default.output).find(".item");Roller.default.tl(a,n)})},Respond.roller.morph.func=function(){$(Roller.morph.input).map(function(t,e){var a=$(e).find(".item"),n=$(e).siblings(Roller.morph.output).find("path#output");Roller.morph.tl(a,n)})},Respond.roller.snap.func=function(){$(Roller.snap.input).map(function(t,e){var a=$(e).find(".item"),n=$(e).parents(".area.type-page").siblings(Roller.snap.output).find("svg.snap");Roller.snap.tl(a,n)})},$(Site.scroller).map(function(t,e){gsap.to(e,{scrollTrigger:{trigger:".block.stop#"+e.classList[2],start:"+=80 center",end:"+=280",scrub:!0},opacity:1})});var FocusInputs=["input","textarea"],SetFocus=function(t){Site.inFocus=t};FocusInputs.map(function(t){$(t).focusin(function(){SetFocus(!0)}).focusout(function(){SetFocus(!1)})}),Util.copy=function(t){var e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)},Util.share=function(t){var e=$(t).parents(Site.page.share),a=$(e.context).find(Site.page.url).text();gsap.timeline();a=a.replace("index",""),$(e.context.classList).map(function(t,e){e.includes("type-")&&0}),Util.copy(a)};var WhatsOn={speed:function(t){return.05*t},slide:function(t){var e=$(".screen-alert__wrap",t),a=$(".screen-alert__feed",t),n=$(a).width()+100,o=$(".screen-alert__clone",t);$(e).addClass("modify-grid");var s=gsap.timeline({defaults:{ease:"none"}}),i=gsap.timeline({repeat:-1,paused:!0,defaults:{ease:"none"}});i.to([a,o],{duration:WhatsOn.speed(n),x:-n}),s.to(e,{duration:WhatsOn.speed(20),paddingLeft:0}).call(function(){i.play()})},scroll:function(t){var e=$(".screen-event__feed",t),a=$(e).height(),n=$(".screen-event__clone",t);gsap.timeline({repeat:-1,defaults:{ease:"none"}}).to([e,n],{duration:WhatsOn.speed(a),y:-a})}},YouSaved=function(t){var e=$(".block.form-alert",t),a=tinycolor($(e).css("border-color")).toHexString(),n=tinycolor($(e).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(e,{backgroundColor:tinycolor(n).darken(5),borderColor:tinycolor(a).darken(10)}).set(e,{clearProps:"all",delay:.2}).set(e,{backgroundColor:tinycolor(n).darken(5),borderColor:tinycolor(a).darken(10),delay:.2}).to(e,{backgroundColor:n,borderColor:a,duration:.8,delay:.2})};
|
1
|
+
"use strict";gsap.registerPlugin(ScrollTrigger),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,a,t){var n=2<arguments.length&&void 0!==t?t:"active";$(e).map(function(e,t){"add"==a?$(t).addClass(n):"remove"==a?$(t).removeClass(n):"clear"==a&&$(t).removeClass()})};Config.respond||(Checkr(Site.desktop.active),$(window).resize(function(){Checkr(Site.desktop.active)})),Roller.default.over=function(e,t,a,n,o){e.pause(),t.map(function(e,t){$(t).hasClass("active")&&(Save.input=t,Save.index=e,HandleClass([t,n[e]],"remove"))}),HandleClass([a,n[o]],"add")},Roller.default.out=function(e,t,a){t.map(function(e,t){$(t).hasClass("active")&&HandleClass([t,a[e]],"remove")}),HandleClass([Save.input,a[Save.index]],"add"),e.play()},Roller.default.tl=function(a,n){var o=gsap.timeline({repeat:-1});a.map(function(e,t){$(t.classList).map(function(e,t){t.startsWith("title-")&&t.slice(6)}),o.call(HandleClass,[t,"add"]).call(HandleClass,[n[e],"add"]).call(HandleClass,[t,"remove"],"+=1").call(HandleClass,[n[e],"remove"]),$(t).hover(function(){Roller.default.over(o,a,t,n,e)},function(){Roller.default.out(o,a,n)})})},Roller.morph.over=function(e,t,a,n,o,s,r){e.pause(),t.map(function(e,t){$(t).hasClass("active")&&(Save.input=t,Save.index=e,HandleClass(t,"remove"))}),HandleClass(n,"clear"),$(a.classList).map(function(e,t){t.startsWith("title-")&&(r=t.slice(6))}),s="path#".concat(r),gsap.to(n,{morphSVG:s,duration:.3}),HandleClass(a,"add"),HandleClass(n,"add",r)},Roller.morph.out=function(e,t,a,n,o){t.map(function(e,t){$(t).hasClass("active")&&HandleClass(t,"remove")}),HandleClass(a,"clear"),$(Save.input.classList).map(function(e,t){t.startsWith("title-")&&(n=t.slice(6))}),o="path#".concat(n),gsap.to(a,{morphSVG:o,duration:.3}),HandleClass(Save.input,"add"),HandleClass(a,"add",n),e.play()},Roller.morph.tl=function(a,n){var o=gsap.timeline({repeat:-1}),s="",r="";a.map(function(e,t){$(t.classList).map(function(e,t){t.startsWith("title-")&&(s=t.slice(6))}),r="path#".concat(s),o.call(HandleClass,[t,"add"]).call(HandleClass,[n,"add",s]).to(n,{morphSVG:r,duration:.3}).call(HandleClass,[t,"remove"],"+=1").call(HandleClass,[n,"remove",s]),$(t).hover(function(){Roller.morph.over(o,a,t,n,e,r,s)},function(){Roller.morph.out(o,a,n)})})},Roller.snap.over=function(e,t,a,n,o){e.pause(),t.map(function(e,t){$(t).hasClass("active")&&(Save.input=t,Save.index=e,HandleClass(t,"remove"),n.map(function(e,t){var a=$(t).find("path");HandleClass(a,"remove")}))}),HandleClass(a,"add");var i=o;n.map(function(e,t){var a=$(t).find("path"),n=$(t).parents(".pie-wrap"),o=n.siblings(".title"),s=n.siblings(".pie-pcent").find("span"),r=Site.chapters[i];HandleClass(a[i],"add"),gsap.set(o,{color:r.color}),gsap.set(s,{text:r.pcent[e]})})},Roller.snap.out=function(e,t,a){t.map(function(e,t){$(t).hasClass("active")&&(HandleClass(t,"remove"),a.map(function(e,t){var a=$(t).find("path");HandleClass(a,"remove")}))}),HandleClass(Save.input,"add"),a.map(function(e,t){var a=$(t).find("path"),n=$(t).parents(".pie-wrap"),o=n.siblings(".title"),s=n.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];HandleClass(a[Save.index],"add"),gsap.set(o,{color:r.color}),gsap.set(s,{text:r.pcent[e]})}),e.play()},Roller.snap.tl=function(a,n){var i=gsap.timeline({repeat:-1});a.map(function(e,t){Save.index=e,$(t.classList).map(function(e,t){t.startsWith("title-")&&t.slice(6)}),i.call(HandleClass,[t,"add"]),n.map(function(e,t){var a=$(t).find("path"),n=$(t).parents(".pie-wrap"),o=n.siblings(".title"),s=n.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];i.call(HandleClass,[a[Save.index],"add"]).set(o,{color:r.color}).set(s,{text:r.pcent[e]})}),i.call(HandleClass,[t,"remove"],"+=1"),n.map(function(e,t){var a=$(t).find("path");i.call(HandleClass,[a[Save.index],"remove"])}),$(t).hover(function(){Roller.snap.over(i,a,t,n,e)},function(){Roller.snap.out(i,a,n)})})};var ActiveBook=function(){if(!Body.isHome){var n="";$(Body.classes).map(function(e,t){if(t.startsWith("book-")){n=t.slice(5);var a=$("button",Site.topbar.lnk+"."+n);gsap.set(a,{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,t,a){var n=Overlay.custom[e],o=".area.overlay-"+n.name,s=$(".input.text-search"),r=$(".wrap.results");"close"==a?(gsap.set("body",{clearProps:"overflow"}),gsap.set(o,{clearProps:"display"}),n.open=!1,"search"==t.name&&(s.val(""),r.empty())):(gsap.set("body",{overflow:"hidden"}),gsap.set(o,{display:Config.display}),n.open=!0,"search"==t.name&&s.focus())},BuildScreens=function(e,t){var a=Overlay.button+"."+t.name,n=Overlay.exit+"."+t.name;$(a).click(function(){ChangeScreen(e,t,"open")}),$(n).click(function(){ChangeScreen(e,t,"close")})},KeyUp=function(a){$(Overlay.custom).map(function(e,t){t.open&&27==a.keyCode&&ChangeScreen(e,t,"close"),t.open||Site.inFocus||(65==a.keyCode&&"about"==t.name&&ChangeScreen(e,t,"open"),66==a.keyCode&&"browse"==t.name&&ChangeScreen(e,t,"open"),83==a.keyCode&&"search"==t.name&&ChangeScreen(e,t,"open"))})};$(Overlay.custom).map(function(e,t){BuildScreens(e,t)}),$(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 t=$(this.hash);(t=t.length?t:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:t.offset().top},500,function(){var e=$(t);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()),Site.isTheme||Body.isHome||!Browse.able||Browsr(Site.isLibrary);var AnimateChart=function(){$(Site.charts.list).map(function(e,t){var n=gsap.timeline({repeat:-1,repeatDelay:3}),a=$(t).find(".block.chart-bar"),o=$(a).children(Site.charts.pcent).children("span"),s=$(a).find(Site.charts.title);n.from(a,{duration:1,stagger:.2,height:0},"start").from(s,{delay:1,duration:.2,opacity:0},"start").from(s,{delay:1,duration:.8,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),o.map(function(t){var e=o[t].innerText,a={val:0};n.to(a,{val:e,duration:2,onUpdate:function(){var e=gsap.utils.snap(1,a.val);o[t].innerText=e}},"start")})})},AnimateNumbers=function(){$(Site.numbers).map(function(e,t){var a=t.innerText,n={val:0};gsap.timeline({repeat:-1,repeatDelay:3}).to(n,{val:a,duration:3,onUpdate:function(){var e=gsap.utils.snap(1,n.val);t.innerText=e}},"start")})},AnimatePies=function(){$(Site.pies.list).map(function(e,t){var l=gsap.timeline({repeat:-1,repeatDelay:3}),a=t.children;$(a).map(function(e,t){var a=$(t).children(Site.pies.pcent).children("span"),n=$(t).children(Site.pies.wrap),o=$(t).children(Site.pies.title),s=n.children(Site.pies.data),r=$(a).text(),i={val:0};l.to(i,{val:r,duration:.4*6,onUpdate:function(){var e=gsap.utils.snap(1,i.val);a.text(e)}},"start").from(o,{duration:.4*3,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),s.map(function(e,t){var a=$("g#data",t);0==e?l.from(a,{duration:.4,opacity:0},"start").from(a,{duration:.4*3,rotation:-180,transformOrigin:"center"},"start"):0<e&&l.from(a,{duration:.4*3,rotation:-90,transformOrigin:"center",delay:.4*1.5},"start").from(a,{duration:.4,opacity:0,delay:.4*1.5},"start")})})})};Artform.list=Object.keys(Color.artforms),Artform.clear=function(e){$(e).attr("class","block header title-artform"),$(Page.wrap+".title-artform").map(function(e,t){Contrast.reset(t)})},Artform.update=function(e,t){$(e).addClass("tag-"+t),$(Page.wrap+".title-artform").map(function(e,t){Contrast.check(t,".block.header",".block.header")})},Artform.header=function(){var t=".header.title-artform",a=gsap.timeline({repeat:-1});Artform.list.map(function(e){a.set(t,{opacity:1,onComplete:function(){Artform.update(t,e)}}).set(t,{clearProps:"all",delay:1.5,onComplete:function(){Artform.clear(t)}})})},Button.func.reset=function(e,t){var a=$(e).find(".button-title"),n=[a,$(e).find(".button-bg"),e];gsap.timeline().set(n,{clearProps:"all"}).set(a,{text:t})},Button.func.submit=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"Done",a=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=$(e).find(".button-title"),o=$(e).find(".button-bg"),s=[n,o,e],r=gsap.timeline();Save.text=$(e).find(".button-title").text(),Save.color=$(e).css("backgroundColor"),r.set(e,{backgroundColor:tinycolor(Save.color).lighten(44).desaturate(5)}).set(n,{color:Save.color}).set(s,{clearProps:"all"}).set([e,o],{backgroundColor:Color.green}).set(n,{text:t}).to(o,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}),a&&r.call(function(){Button.func.reset(e,Save.text)},"+=1")},Button.func.switch=function(e){$(e).hasClass("undo")?($(e).parents(".control").siblings(".before").show(),$(e).parents(".control").siblings(".after").hide(),$(e).parents(".wrap.switch").siblings(".wrap.switch").children(".before").show(),$(e).parents(".wrap.switch").siblings(".wrap.switch").children(".after").hide(),$(e).removeClass("undo"),Button.func.reset(e,"Next")):(Button.func.submit(e,"Back",!1),$(e).parents(".control").siblings(".before").hide(),$(e).parents(".control").siblings(".after").show(),$(e).parents(".wrap.switch").siblings(".wrap.switch").children(".before").hide(),$(e).parents(".wrap.switch").siblings(".wrap.switch").children(".after").show(),$(e).addClass("undo"))},Button.func.update=function(e){var t=$(e).find(".button-title"),a=$(e).find(".button-bg");if(Save.text=$(e).find(".button-title").text(),Save.color=$(e).css("backgroundColor"),!UpdateIsLocked){var n=gsap.timeline();n.set(t,{text:"Adding"}).set(a,{backgroundColor:tinycolor(Save.color).darken(8)}).to(a,{right:0,duration:1}).set(t,{text:"Added"}).to(a,{duration:.5,backgroundColor:Color.green}),reset&&n.call(function(){Button.func.reset(e,Save.text)},"+=1")}};var ParseInputs=function(e,t){e.map(function(e){$(e).parsley(t)})},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 t={ratio:$(e).find(Site.access.ratio)};$(t.ratio).attr("class","block access-ratio")},Contrast.round=function(e){return Math.round(100*e)/100},Contrast.ratio=function(e,t){return Contrast.round(tinycolor.readability(e,t))},Contrast.check=function(e,t,a){var n={ratio:$(e).find(Site.access.ratio),color:tinycolor($(t,e).css("color")).toHexString(),backg:tinycolor($(a,e).css("background-color")).toHexString()},o={ratio:Contrast.ratio(n.color,n.backg)};$(n.ratio).text(o.ratio),4.5<=o.ratio?$(n.ratio).addClass(Site.access.best):3<=o.ratio?$(n.ratio).addClass(Site.access.good):$(n.ratio).addClass(Site.access.poor)},Respond.roller.default.func=function(){$(Roller.default.input).map(function(e,t){var a=$(t).find(".item"),n=$(t).siblings(Roller.default.output).find(".item");Roller.default.tl(a,n)})},Respond.roller.morph.func=function(){$(Roller.morph.input).map(function(e,t){var a=$(t).find(".item"),n=$(t).siblings(Roller.morph.output).find("path#output");Roller.morph.tl(a,n)})},Respond.roller.snap.func=function(){$(Roller.snap.input).map(function(e,t){var a=$(t).find(".item"),n=$(t).parents(".area.type-page").siblings(Roller.snap.output).find("svg.snap");Roller.snap.tl(a,n)})},$(Site.scroller).map(function(e,t){gsap.to(t,{scrollTrigger:{trigger:".block.stop#"+t.classList[2],start:"+=80 center",end:"+=280",scrub:!0},opacity:1})});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 t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},Util.share=function(e){var t=$(e).parents(Site.page.share),a=$(t.context).find(Site.page.url).text();gsap.timeline();a=a.replace("index",""),$(t.context.classList).map(function(e,t){t.includes("type-")&&0}),Util.copy(a)};var WhatsOn={speed:function(e){return.05*e},slide:function(e){var t=$(".screen-alert__wrap",e),a=$(".screen-alert__feed",e),n=$(a).width()+100,o=$(".screen-alert__clone",e);$(t).addClass("modify-grid");var s=gsap.timeline({defaults:{ease:"none"}}),r=gsap.timeline({repeat:-1,paused:!0,defaults:{ease:"none"}});r.to([a,o],{duration:WhatsOn.speed(n),x:-n}),s.to(t,{duration:WhatsOn.speed(20),paddingLeft:0}).call(function(){r.play()})},scroll:function(e){var t=$(".screen-event__feed",e),a=$(t).height(),n=$(".screen-event__clone",e);gsap.timeline({repeat:-1,defaults:{ease:"none"}}).to([t,n],{duration:WhatsOn.speed(a),y:-a})}},YouSaved=function(e){var t=$(".block.form-alert",e),a=tinycolor($(t).css("border-color")).toHexString(),n=tinycolor($(t).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(t,{backgroundColor:tinycolor(n).darken(5),borderColor:tinycolor(a).darken(10)}).set(t,{clearProps:"all",delay:.2}).set(t,{backgroundColor:tinycolor(n).darken(5),borderColor:tinycolor(a).darken(10),delay:.2}).to(t,{backgroundColor:n,borderColor:a,duration:.8,delay:.2})};
|
@@ -69,8 +69,7 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
|
|
69
69
|
return new Browsr.init(target);
|
70
70
|
};
|
71
71
|
|
72
|
-
let
|
73
|
-
found = false,
|
72
|
+
let found = false,
|
74
73
|
book = {
|
75
74
|
found: false,
|
76
75
|
},
|
@@ -175,7 +174,7 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
|
|
175
174
|
}
|
176
175
|
});
|
177
176
|
},
|
178
|
-
setup() {
|
177
|
+
setup(library) {
|
179
178
|
chapter.links = this.linkify("chapter");
|
180
179
|
page.links = this.linkify("page");
|
181
180
|
if (library) {
|
@@ -193,114 +192,169 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
|
|
193
192
|
page.books = this.bookify("page");
|
194
193
|
page.class = this.classify(page.url, "page");
|
195
194
|
},
|
196
|
-
start() {
|
197
|
-
this.setup();
|
198
|
-
// console.log(book,chapter,page);
|
195
|
+
start(library) {
|
196
|
+
this.setup(library);
|
199
197
|
|
200
|
-
if (
|
201
|
-
book.
|
198
|
+
if (library) {
|
199
|
+
if (book.url) {
|
200
|
+
book.links.map((_, value) => {
|
201
|
+
this.checkBook(value);
|
202
|
+
if (found) {
|
203
|
+
this.shadify(value);
|
204
|
+
}
|
205
|
+
});
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
if (library) {
|
210
|
+
chapter.books.map((_, value) => {
|
202
211
|
this.checkBook(value);
|
203
212
|
if (found) {
|
204
|
-
|
213
|
+
chapter.books.map((_, value) => {
|
214
|
+
$(value.children).map((_, value) => {
|
215
|
+
this.checkChapter(value);
|
216
|
+
if (found) {
|
217
|
+
this.shadify(value);
|
218
|
+
}
|
219
|
+
});
|
220
|
+
});
|
221
|
+
} else {
|
222
|
+
this.nunify(value);
|
205
223
|
}
|
206
224
|
});
|
225
|
+
} else {
|
226
|
+
chapter.books.map((_, value) => {
|
227
|
+
$(value.children).map((_, value) => {
|
228
|
+
this.checkChapter(value);
|
229
|
+
if (found) {
|
230
|
+
this.shadify(value);
|
231
|
+
}
|
232
|
+
});
|
233
|
+
});
|
207
234
|
}
|
208
235
|
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
if (found) {
|
213
|
-
chapter.books.map((_, value) => {
|
214
|
-
$(value.children).map((_, value) => {
|
215
|
-
this.checkChapter(value);
|
236
|
+
if (library) {
|
237
|
+
page.books.map((_, value) => {
|
238
|
+
this.checkBook(value);
|
216
239
|
|
217
|
-
|
218
|
-
|
219
|
-
|
240
|
+
if (found) {
|
241
|
+
page.books.map((_, value) => {
|
242
|
+
$(value.children).map((_, value) => {
|
243
|
+
this.checkChapter(value);
|
244
|
+
|
245
|
+
if (found) {
|
246
|
+
$(value.children).map((_, value) => {
|
247
|
+
this.checkPage(value);
|
248
|
+
|
249
|
+
if (found) {
|
250
|
+
this.shadify(value);
|
251
|
+
}
|
252
|
+
});
|
253
|
+
} else {
|
254
|
+
this.nunify(value);
|
255
|
+
}
|
256
|
+
});
|
220
257
|
});
|
258
|
+
} else {
|
259
|
+
this.nunify(value);
|
260
|
+
}
|
261
|
+
});
|
262
|
+
} else {
|
263
|
+
page.books.map((_, value) => {
|
264
|
+
$(value.children).map((_, value) => {
|
265
|
+
this.checkChapter(value);
|
266
|
+
|
267
|
+
if (found) {
|
268
|
+
$(value.children).map((_, value) => {
|
269
|
+
this.checkPage(value);
|
270
|
+
|
271
|
+
if (found) {
|
272
|
+
this.shadify(value);
|
273
|
+
}
|
274
|
+
});
|
275
|
+
} else {
|
276
|
+
this.nunify(value);
|
277
|
+
}
|
221
278
|
});
|
222
|
-
}
|
223
|
-
|
224
|
-
}
|
225
|
-
});
|
226
|
-
|
227
|
-
page.books.map((_, value) => {
|
228
|
-
this.checkBook(value);
|
279
|
+
});
|
280
|
+
}
|
229
281
|
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
282
|
+
return this;
|
283
|
+
},
|
284
|
+
respond(library) {
|
285
|
+
if (library) {
|
286
|
+
book.links.hover((e) => {
|
287
|
+
this.match(e.target);
|
288
|
+
this.clearify(book.links);
|
289
|
+
this.shadify(e.target);
|
234
290
|
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
this.nunify(value);
|
245
|
-
}
|
246
|
-
});
|
291
|
+
chapter.books.map((_, value) => {
|
292
|
+
this.nunify(value);
|
293
|
+
this.clearify(value.children);
|
294
|
+
this.checkBook(value);
|
295
|
+
|
296
|
+
if (found) {
|
297
|
+
this.clearify(value, "display");
|
298
|
+
this.shadify(value.children[0]);
|
299
|
+
}
|
247
300
|
});
|
248
|
-
} else {
|
249
|
-
this.nunify(value);
|
250
|
-
}
|
251
|
-
});
|
252
301
|
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
book.links.hover((e) => {
|
257
|
-
this.match(e.target);
|
258
|
-
this.clearify(book.links);
|
259
|
-
this.shadify(e.target);
|
302
|
+
page.books.map((_, value) => {
|
303
|
+
this.nunify(value);
|
304
|
+
this.checkBook(value);
|
260
305
|
|
261
|
-
|
262
|
-
|
263
|
-
this.clearify(value.children);
|
264
|
-
this.checkBook(value);
|
306
|
+
if (found) {
|
307
|
+
this.clearify(value, "display");
|
265
308
|
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
309
|
+
$(value.children).map((index, value) => {
|
310
|
+
this.nunify(value);
|
311
|
+
this.clearify(value.children);
|
312
|
+
|
313
|
+
if (index == 0) {
|
314
|
+
this.clearify(value, "display");
|
315
|
+
this.shadify(value.children[0]);
|
316
|
+
}
|
317
|
+
});
|
318
|
+
}
|
319
|
+
});
|
270
320
|
});
|
271
321
|
|
272
|
-
|
273
|
-
this.
|
274
|
-
this.
|
322
|
+
chapter.links.hover((e) => {
|
323
|
+
this.match(e.target, "chapter");
|
324
|
+
this.clearify(chapter.links);
|
325
|
+
this.shadify(e.target);
|
275
326
|
|
276
|
-
|
277
|
-
this.
|
327
|
+
page.books.map((_, value) => {
|
328
|
+
this.nunify(value);
|
329
|
+
this.checkBook(value);
|
278
330
|
|
279
|
-
|
280
|
-
this.
|
281
|
-
this.clearify(value.children);
|
331
|
+
if (found) {
|
332
|
+
this.clearify(value, "display");
|
282
333
|
|
283
|
-
|
284
|
-
this.
|
285
|
-
this.
|
286
|
-
|
287
|
-
|
288
|
-
|
334
|
+
$(value.children).map((_, value) => {
|
335
|
+
this.nunify(value);
|
336
|
+
this.clearify(value.children);
|
337
|
+
this.checkChapter(value);
|
338
|
+
|
339
|
+
if (found) {
|
340
|
+
this.clearify(value, "display");
|
341
|
+
this.shadify(value.children[0]);
|
342
|
+
}
|
343
|
+
});
|
344
|
+
}
|
345
|
+
});
|
289
346
|
});
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
this.
|
299
|
-
this.checkBook(value);
|
300
|
-
|
301
|
-
if (found) {
|
302
|
-
this.clearify(value, "display");
|
347
|
+
page.links.hover((e) => {
|
348
|
+
this.clearify(page.links);
|
349
|
+
this.shadify(e.target);
|
350
|
+
});
|
351
|
+
} else {
|
352
|
+
chapter.links.hover((e) => {
|
353
|
+
this.match(e.target, "chapter");
|
354
|
+
this.clearify(chapter.links);
|
355
|
+
this.shadify(e.target);
|
303
356
|
|
357
|
+
page.books.map((_, value) => {
|
304
358
|
$(value.children).map((_, value) => {
|
305
359
|
this.nunify(value);
|
306
360
|
this.clearify(value.children);
|
@@ -311,22 +365,25 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
|
|
311
365
|
this.shadify(value.children[0]);
|
312
366
|
}
|
313
367
|
});
|
314
|
-
}
|
368
|
+
});
|
315
369
|
});
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
}
|
370
|
+
page.links.hover((e) => {
|
371
|
+
this.clearify(page.links);
|
372
|
+
this.shadify(e.target);
|
373
|
+
});
|
374
|
+
}
|
321
375
|
|
322
376
|
return this;
|
323
377
|
},
|
324
378
|
};
|
325
379
|
|
326
|
-
Browsr.init = function (
|
380
|
+
Browsr.init = function (library) {
|
327
381
|
var self = this;
|
328
|
-
self.target =
|
329
|
-
|
382
|
+
self.target = document;
|
383
|
+
if (library == null) {
|
384
|
+
library = false;
|
385
|
+
}
|
386
|
+
this.start(library).respond(library);
|
330
387
|
};
|
331
388
|
|
332
389
|
Browsr.init.prototype = Browsr.prototype;
|
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.1.
|
4
|
+
version: 1.1.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-
|
11
|
+
date: 2020-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|