futuro 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26cf84fc7596faec0dcefec1953e94ce8e47096afb335a24c184b1a1f3723afe
|
4
|
+
data.tar.gz: cc56bb6b8b05325dfcd742fdc7ecb95228a987321e8a49dfda04329cb7e3fe57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2260c8d8f13774cf3fec1b8e894de758b2f7bfc55431186679e80ed92b956f84075a8c844400d1df17e434c0122545ed1823620a575546c385d0b61e5a816e83
|
7
|
+
data.tar.gz: 7a289fad55b111d391e8522b835b08759b96dbef06d957b40b3d00a655b9f10dfd8abea1075730da832066ea654f4833b08f05f3f4168325a1627eeac17d22d5
|
@@ -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,7 +3,7 @@
|
|
3
3
|
return new Browsr.init(target);
|
4
4
|
};
|
5
5
|
|
6
|
-
let library =
|
6
|
+
let library = false,
|
7
7
|
found = false,
|
8
8
|
book = {
|
9
9
|
found: false,
|
@@ -129,112 +129,167 @@
|
|
129
129
|
},
|
130
130
|
start() {
|
131
131
|
this.setup();
|
132
|
-
// console.log(book,chapter,page);
|
133
132
|
|
134
|
-
if (
|
135
|
-
book.
|
133
|
+
if (library) {
|
134
|
+
if (book.url) {
|
135
|
+
book.links.map((_, value) => {
|
136
|
+
this.checkBook(value);
|
137
|
+
if (found) {
|
138
|
+
this.shadify(value);
|
139
|
+
}
|
140
|
+
});
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
if (library) {
|
145
|
+
chapter.books.map((_, value) => {
|
136
146
|
this.checkBook(value);
|
137
147
|
if (found) {
|
138
|
-
|
148
|
+
chapter.books.map((_, value) => {
|
149
|
+
$(value.children).map((_, value) => {
|
150
|
+
this.checkChapter(value);
|
151
|
+
if (found) {
|
152
|
+
this.shadify(value);
|
153
|
+
}
|
154
|
+
});
|
155
|
+
});
|
156
|
+
} else {
|
157
|
+
this.nunify(value);
|
139
158
|
}
|
140
159
|
});
|
160
|
+
} else {
|
161
|
+
chapter.books.map((_, value) => {
|
162
|
+
$(value.children).map((_, value) => {
|
163
|
+
this.checkChapter(value);
|
164
|
+
if (found) {
|
165
|
+
this.shadify(value);
|
166
|
+
}
|
167
|
+
});
|
168
|
+
});
|
141
169
|
}
|
142
170
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
if (found) {
|
147
|
-
chapter.books.map((_, value) => {
|
148
|
-
$(value.children).map((_, value) => {
|
149
|
-
this.checkChapter(value);
|
171
|
+
if (library) {
|
172
|
+
page.books.map((_, value) => {
|
173
|
+
this.checkBook(value);
|
150
174
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
});
|
156
|
-
} else {
|
157
|
-
this.nunify(value);
|
158
|
-
}
|
159
|
-
});
|
175
|
+
if (found) {
|
176
|
+
page.books.map((_, value) => {
|
177
|
+
$(value.children).map((_, value) => {
|
178
|
+
this.checkChapter(value);
|
160
179
|
|
161
|
-
|
162
|
-
|
180
|
+
if (found) {
|
181
|
+
$(value.children).map((_, value) => {
|
182
|
+
this.checkPage(value);
|
163
183
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
184
|
+
if (found) {
|
185
|
+
this.shadify(value);
|
186
|
+
}
|
187
|
+
});
|
188
|
+
} else {
|
189
|
+
this.nunify(value);
|
190
|
+
}
|
191
|
+
});
|
192
|
+
});
|
193
|
+
} else {
|
194
|
+
this.nunify(value);
|
195
|
+
}
|
196
|
+
});
|
197
|
+
} else {
|
198
|
+
page.books.map((_, value) => {
|
199
|
+
$(value.children).map((_, value) => {
|
200
|
+
this.checkChapter(value);
|
168
201
|
|
169
|
-
|
170
|
-
|
171
|
-
|
202
|
+
if (found) {
|
203
|
+
$(value.children).map((_, value) => {
|
204
|
+
this.checkPage(value);
|
172
205
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
});
|
206
|
+
if (found) {
|
207
|
+
this.shadify(value);
|
208
|
+
}
|
209
|
+
});
|
210
|
+
} else {
|
211
|
+
this.nunify(value);
|
212
|
+
}
|
181
213
|
});
|
182
|
-
}
|
183
|
-
|
184
|
-
}
|
185
|
-
});
|
214
|
+
});
|
215
|
+
}
|
186
216
|
|
187
217
|
return this;
|
188
218
|
},
|
189
219
|
respond() {
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
220
|
+
if (library) {
|
221
|
+
book.links.hover((e) => {
|
222
|
+
this.match(e.target);
|
223
|
+
this.clearify(book.links);
|
224
|
+
this.shadify(e.target);
|
194
225
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
226
|
+
chapter.books.map((_, value) => {
|
227
|
+
this.nunify(value);
|
228
|
+
this.clearify(value.children);
|
229
|
+
this.checkBook(value);
|
199
230
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
231
|
+
if (found) {
|
232
|
+
this.clearify(value, "display");
|
233
|
+
this.shadify(value.children[0]);
|
234
|
+
}
|
235
|
+
});
|
205
236
|
|
206
|
-
|
207
|
-
|
208
|
-
|
237
|
+
page.books.map((_, value) => {
|
238
|
+
this.nunify(value);
|
239
|
+
this.checkBook(value);
|
209
240
|
|
210
|
-
|
211
|
-
|
241
|
+
if (found) {
|
242
|
+
this.clearify(value, "display");
|
212
243
|
|
213
|
-
|
214
|
-
|
215
|
-
|
244
|
+
$(value.children).map((index, value) => {
|
245
|
+
this.nunify(value);
|
246
|
+
this.clearify(value.children);
|
216
247
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
248
|
+
if (index == 0) {
|
249
|
+
this.clearify(value, "display");
|
250
|
+
this.shadify(value.children[0]);
|
251
|
+
}
|
252
|
+
});
|
253
|
+
}
|
254
|
+
});
|
223
255
|
});
|
224
|
-
});
|
225
256
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
257
|
+
chapter.links.hover((e) => {
|
258
|
+
this.match(e.target, "chapter");
|
259
|
+
this.clearify(chapter.links);
|
260
|
+
this.shadify(e.target);
|
230
261
|
|
231
|
-
|
232
|
-
|
233
|
-
|
262
|
+
page.books.map((_, value) => {
|
263
|
+
this.nunify(value);
|
264
|
+
this.checkBook(value);
|
234
265
|
|
235
|
-
|
236
|
-
|
266
|
+
if (found) {
|
267
|
+
this.clearify(value, "display");
|
268
|
+
|
269
|
+
$(value.children).map((_, value) => {
|
270
|
+
this.nunify(value);
|
271
|
+
this.clearify(value.children);
|
272
|
+
this.checkChapter(value);
|
237
273
|
|
274
|
+
if (found) {
|
275
|
+
this.clearify(value, "display");
|
276
|
+
this.shadify(value.children[0]);
|
277
|
+
}
|
278
|
+
});
|
279
|
+
}
|
280
|
+
});
|
281
|
+
});
|
282
|
+
page.links.hover((e) => {
|
283
|
+
this.clearify(page.links);
|
284
|
+
this.shadify(e.target);
|
285
|
+
});
|
286
|
+
} else {
|
287
|
+
chapter.links.hover((e) => {
|
288
|
+
this.match(e.target, "chapter");
|
289
|
+
this.clearify(chapter.links);
|
290
|
+
this.shadify(e.target);
|
291
|
+
|
292
|
+
page.books.map((_, value) => {
|
238
293
|
$(value.children).map((_, value) => {
|
239
294
|
this.nunify(value);
|
240
295
|
this.clearify(value.children);
|
@@ -245,13 +300,13 @@
|
|
245
300
|
this.shadify(value.children[0]);
|
246
301
|
}
|
247
302
|
});
|
248
|
-
}
|
303
|
+
});
|
249
304
|
});
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
}
|
305
|
+
page.links.hover((e) => {
|
306
|
+
this.clearify(page.links);
|
307
|
+
this.shadify(e.target);
|
308
|
+
});
|
309
|
+
}
|
255
310
|
|
256
311
|
return this;
|
257
312
|
},
|
@@ -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();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,7 +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 library =
|
72
|
+
let library = false,
|
73
73
|
found = false,
|
74
74
|
book = {
|
75
75
|
found: false,
|
@@ -195,112 +195,167 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
|
|
195
195
|
},
|
196
196
|
start() {
|
197
197
|
this.setup();
|
198
|
-
// console.log(book,chapter,page);
|
199
198
|
|
200
|
-
if (
|
201
|
-
book.
|
199
|
+
if (library) {
|
200
|
+
if (book.url) {
|
201
|
+
book.links.map((_, value) => {
|
202
|
+
this.checkBook(value);
|
203
|
+
if (found) {
|
204
|
+
this.shadify(value);
|
205
|
+
}
|
206
|
+
});
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
if (library) {
|
211
|
+
chapter.books.map((_, value) => {
|
202
212
|
this.checkBook(value);
|
203
213
|
if (found) {
|
204
|
-
|
214
|
+
chapter.books.map((_, value) => {
|
215
|
+
$(value.children).map((_, value) => {
|
216
|
+
this.checkChapter(value);
|
217
|
+
if (found) {
|
218
|
+
this.shadify(value);
|
219
|
+
}
|
220
|
+
});
|
221
|
+
});
|
222
|
+
} else {
|
223
|
+
this.nunify(value);
|
205
224
|
}
|
206
225
|
});
|
207
|
-
}
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
$(value.children).map((_, value) => {
|
215
|
-
this.checkChapter(value);
|
216
|
-
|
217
|
-
if (found) {
|
218
|
-
this.shadify(value);
|
219
|
-
}
|
220
|
-
});
|
226
|
+
} else {
|
227
|
+
chapter.books.map((_, value) => {
|
228
|
+
$(value.children).map((_, value) => {
|
229
|
+
this.checkChapter(value);
|
230
|
+
if (found) {
|
231
|
+
this.shadify(value);
|
232
|
+
}
|
221
233
|
});
|
222
|
-
}
|
223
|
-
|
224
|
-
}
|
225
|
-
});
|
226
|
-
|
227
|
-
page.books.map((_, value) => {
|
228
|
-
this.checkBook(value);
|
234
|
+
});
|
235
|
+
}
|
229
236
|
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
this.checkChapter(value);
|
237
|
+
if (library) {
|
238
|
+
page.books.map((_, value) => {
|
239
|
+
this.checkBook(value);
|
234
240
|
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
241
|
+
if (found) {
|
242
|
+
page.books.map((_, value) => {
|
243
|
+
$(value.children).map((_, value) => {
|
244
|
+
this.checkChapter(value);
|
245
|
+
|
246
|
+
if (found) {
|
247
|
+
$(value.children).map((_, value) => {
|
248
|
+
this.checkPage(value);
|
249
|
+
|
250
|
+
if (found) {
|
251
|
+
this.shadify(value);
|
252
|
+
}
|
253
|
+
});
|
254
|
+
} else {
|
255
|
+
this.nunify(value);
|
256
|
+
}
|
257
|
+
});
|
246
258
|
});
|
259
|
+
} else {
|
260
|
+
this.nunify(value);
|
261
|
+
}
|
262
|
+
});
|
263
|
+
} else {
|
264
|
+
page.books.map((_, value) => {
|
265
|
+
$(value.children).map((_, value) => {
|
266
|
+
this.checkChapter(value);
|
267
|
+
|
268
|
+
if (found) {
|
269
|
+
$(value.children).map((_, value) => {
|
270
|
+
this.checkPage(value);
|
271
|
+
|
272
|
+
if (found) {
|
273
|
+
this.shadify(value);
|
274
|
+
}
|
275
|
+
});
|
276
|
+
} else {
|
277
|
+
this.nunify(value);
|
278
|
+
}
|
247
279
|
});
|
248
|
-
}
|
249
|
-
|
250
|
-
}
|
251
|
-
});
|
280
|
+
});
|
281
|
+
}
|
252
282
|
|
253
283
|
return this;
|
254
284
|
},
|
255
285
|
respond() {
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
chapter.books.map((_, value) => {
|
262
|
-
this.nunify(value);
|
263
|
-
this.clearify(value.children);
|
264
|
-
this.checkBook(value);
|
265
|
-
|
266
|
-
if (found) {
|
267
|
-
this.clearify(value, "display");
|
268
|
-
this.shadify(value.children[0]);
|
269
|
-
}
|
270
|
-
});
|
286
|
+
if (library) {
|
287
|
+
book.links.hover((e) => {
|
288
|
+
this.match(e.target);
|
289
|
+
this.clearify(book.links);
|
290
|
+
this.shadify(e.target);
|
271
291
|
|
272
|
-
|
273
|
-
|
274
|
-
|
292
|
+
chapter.books.map((_, value) => {
|
293
|
+
this.nunify(value);
|
294
|
+
this.clearify(value.children);
|
295
|
+
this.checkBook(value);
|
296
|
+
|
297
|
+
if (found) {
|
298
|
+
this.clearify(value, "display");
|
299
|
+
this.shadify(value.children[0]);
|
300
|
+
}
|
301
|
+
});
|
275
302
|
|
276
|
-
|
277
|
-
this.
|
303
|
+
page.books.map((_, value) => {
|
304
|
+
this.nunify(value);
|
305
|
+
this.checkBook(value);
|
278
306
|
|
279
|
-
|
280
|
-
this.
|
281
|
-
this.clearify(value.children);
|
307
|
+
if (found) {
|
308
|
+
this.clearify(value, "display");
|
282
309
|
|
283
|
-
|
284
|
-
this.
|
285
|
-
this.
|
286
|
-
|
287
|
-
|
288
|
-
|
310
|
+
$(value.children).map((index, value) => {
|
311
|
+
this.nunify(value);
|
312
|
+
this.clearify(value.children);
|
313
|
+
|
314
|
+
if (index == 0) {
|
315
|
+
this.clearify(value, "display");
|
316
|
+
this.shadify(value.children[0]);
|
317
|
+
}
|
318
|
+
});
|
319
|
+
}
|
320
|
+
});
|
289
321
|
});
|
290
|
-
});
|
291
322
|
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
323
|
+
chapter.links.hover((e) => {
|
324
|
+
this.match(e.target, "chapter");
|
325
|
+
this.clearify(chapter.links);
|
326
|
+
this.shadify(e.target);
|
296
327
|
|
297
|
-
|
298
|
-
|
299
|
-
|
328
|
+
page.books.map((_, value) => {
|
329
|
+
this.nunify(value);
|
330
|
+
this.checkBook(value);
|
300
331
|
|
301
|
-
|
302
|
-
|
332
|
+
if (found) {
|
333
|
+
this.clearify(value, "display");
|
303
334
|
|
335
|
+
$(value.children).map((_, value) => {
|
336
|
+
this.nunify(value);
|
337
|
+
this.clearify(value.children);
|
338
|
+
this.checkChapter(value);
|
339
|
+
|
340
|
+
if (found) {
|
341
|
+
this.clearify(value, "display");
|
342
|
+
this.shadify(value.children[0]);
|
343
|
+
}
|
344
|
+
});
|
345
|
+
}
|
346
|
+
});
|
347
|
+
});
|
348
|
+
page.links.hover((e) => {
|
349
|
+
this.clearify(page.links);
|
350
|
+
this.shadify(e.target);
|
351
|
+
});
|
352
|
+
} else {
|
353
|
+
chapter.links.hover((e) => {
|
354
|
+
this.match(e.target, "chapter");
|
355
|
+
this.clearify(chapter.links);
|
356
|
+
this.shadify(e.target);
|
357
|
+
|
358
|
+
page.books.map((_, value) => {
|
304
359
|
$(value.children).map((_, value) => {
|
305
360
|
this.nunify(value);
|
306
361
|
this.clearify(value.children);
|
@@ -311,13 +366,13 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
|
|
311
366
|
this.shadify(value.children[0]);
|
312
367
|
}
|
313
368
|
});
|
314
|
-
}
|
369
|
+
});
|
315
370
|
});
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
}
|
371
|
+
page.links.hover((e) => {
|
372
|
+
this.clearify(page.links);
|
373
|
+
this.shadify(e.target);
|
374
|
+
});
|
375
|
+
}
|
321
376
|
|
322
377
|
return this;
|
323
378
|
},
|
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.4
|
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-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|