futuro 1.0.7 → 1.0.8
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/footnote.liquid +4 -2
- data/_includes/html/site/scroller.liquid +1 -1
- data/_sass/_button.scss +4 -4
- data/_sass/area/chapter.scss +2 -1
- data/_sass/area/page.scss +1 -1
- data/_sass/futuro.core.scss +3 -1
- data/_sass/helpers/mixins/theme.scss +109 -114
- data/_sass/helpers/themes.scss +7 -7
- data/_sass/helpers/variables.scss +25 -7
- data/_sass/item/scroller.scss +0 -1
- data/_sass/link/scroller.scss +4 -0
- data/_sass/wrap/switch.scss +12 -0
- data/assets/js/footer/custom/5_Animate.scroller.js +13 -8
- data/assets/js/footer/custom/5_button.func.reset.js +15 -0
- data/assets/js/footer/custom/5_button.func.submit.js +39 -0
- data/assets/js/footer/custom/5_button.func.switch.js +26 -0
- data/assets/js/footer/custom/5_button.func.update.js +39 -0
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.header.custom.js +1 -1
- data/assets/js/header/custom/1_Settings.js +8 -2
- data/assets/js/header/custom/2_Site.js +1 -3
- metadata +8 -3
- data/assets/js/footer/custom/5_Switch.button.js +0 -97
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 221c7a970ec74544776ef071448b7c5336e572cdaa1a8935eb04652bb9a9c85e
|
4
|
+
data.tar.gz: 47307a3cc93893e7418a1b451fb5bd332150ccad9007ddb1b118ea2e0af6904c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 858d79e1ea7b5d73be7b76ff109dd903a09382a16a1f7b8a1a98ff803557d5755420f64ace0e034893e00775da93907eb12870f6cc83909f5e872821740cfdd8
|
7
|
+
data.tar.gz: 421c7c0eeb5564d45e822367d81dcb6906d263fc9d70d8d8d83c8a93ffd1654efc4dea60a02091ccf59961b03f0cb5d30059b30625230f3215243439ca1bdbec
|
@@ -3,7 +3,9 @@
|
|
3
3
|
|
4
4
|
<p class="block page-footnote">
|
5
5
|
|
6
|
-
{
|
6
|
+
<strong>Source:</strong> {{ page.footnote }}
|
7
|
+
|
8
|
+
<!-- {%- for item in page.footnote -%}
|
7
9
|
|
8
10
|
{%- if item.pre -%}
|
9
11
|
|
@@ -17,7 +19,7 @@
|
|
17
19
|
|
18
20
|
{%- endif -%}
|
19
21
|
|
20
|
-
{%- endfor -%}
|
22
|
+
{%- endfor -%} -->
|
21
23
|
|
22
24
|
</p>
|
23
25
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
{% assign ItemTitle = item.title | replace : ' ','-' | downcase %}
|
30
30
|
{% assign ItemID = ItemChapter | append : ItemTitle %}
|
31
31
|
|
32
|
-
<li class="item scroller {{
|
32
|
+
<li class="item scroller {{ ItemID }}">
|
33
33
|
|
34
34
|
<a href="{{ ItemID | prepend : '#' }}" class="link scroller">
|
35
35
|
|
data/_sass/_button.scss
CHANGED
@@ -21,16 +21,16 @@
|
|
21
21
|
}
|
22
22
|
|
23
23
|
.button-wrap.type-solid {
|
24
|
-
|
24
|
+
background-color: setcolor(slate);
|
25
25
|
color: white;
|
26
|
-
fill: white;
|
26
|
+
fill: white;
|
27
27
|
}
|
28
28
|
|
29
29
|
.button-wrap.type-outline {
|
30
30
|
border: 1px solid setcolor(slate);
|
31
|
+
background-color: white;
|
31
32
|
color: setcolor(slate);
|
32
33
|
fill: setcolor(slate);
|
33
|
-
background-color: white;
|
34
34
|
}
|
35
35
|
|
36
36
|
.button-wrap.context-legend {
|
@@ -43,7 +43,7 @@
|
|
43
43
|
}
|
44
44
|
|
45
45
|
.button-bg.func-submit {
|
46
|
-
|
46
|
+
border-radius: 4px;
|
47
47
|
}
|
48
48
|
|
49
49
|
.button-wrap.func-update {
|
data/_sass/area/chapter.scss
CHANGED
data/_sass/area/page.scss
CHANGED
@@ -9,7 +9,7 @@ $AreaSub : $AreaHeight - $SubHeight;
|
|
9
9
|
|
10
10
|
%PageContent {
|
11
11
|
|
12
|
-
> h1, > h2, > h3, > h4, > h5, > h6, > p, > ul, > ol, > .roller, .block.animate {
|
12
|
+
> h1, > h2, > h3, > h4, > h5, > h6, > p, > ul, > ol, > .roller, .block.animate, .wrap.switch {
|
13
13
|
@extend %ContentPrep;
|
14
14
|
}
|
15
15
|
|
data/_sass/futuro.core.scss
CHANGED
@@ -79,7 +79,8 @@
|
|
79
79
|
@import
|
80
80
|
"link/book",
|
81
81
|
"link/browse",
|
82
|
-
"link/navigation"
|
82
|
+
"link/navigation",
|
83
|
+
"link/scroller";
|
83
84
|
|
84
85
|
// List Styles
|
85
86
|
|
@@ -116,6 +117,7 @@
|
|
116
117
|
"wrap/home",
|
117
118
|
"wrap/scroller",
|
118
119
|
"wrap/select",
|
120
|
+
"wrap/switch",
|
119
121
|
"wrap/text";
|
120
122
|
|
121
123
|
// Other Styles
|
@@ -196,24 +196,43 @@
|
|
196
196
|
}
|
197
197
|
}
|
198
198
|
|
199
|
-
|
199
|
+
@mixin ThemeButtonCore($color) {
|
200
|
+
.button-wrap {
|
201
|
+
background: setcolor($color);
|
202
|
+
|
203
|
+
&:hover {
|
204
|
+
background: darken(setcolor($color),5%);
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
// Used in Patterns, Brandvoice
|
200
210
|
@mixin ThemeButton($chapter,$title,$color) {
|
201
|
-
.wrap.chapter-#{$chapter}.title-#{$title} {
|
202
|
-
.button-wrap {
|
203
|
-
background: setcolor($color);
|
204
211
|
|
205
|
-
|
206
|
-
|
207
|
-
|
212
|
+
@if $title {
|
213
|
+
// if title has been provided
|
214
|
+
// page specific button colour
|
215
|
+
.wrap.chapter-#{$chapter}.title-#{$title} {
|
216
|
+
// use the same mixin core; avoid repetition
|
217
|
+
@include ThemeButtonCore($color);
|
208
218
|
}
|
219
|
+
|
220
|
+
} @else {
|
221
|
+
// if only the chapter has been provided
|
222
|
+
// chapter specific button colour
|
223
|
+
.wrap.chapter-#{$chapter} {
|
224
|
+
// use the same mixin core; avoid repetition
|
225
|
+
@include ThemeButtonCore($color);
|
226
|
+
}
|
227
|
+
|
209
228
|
}
|
210
229
|
}
|
211
230
|
|
212
|
-
// Used
|
231
|
+
// Used Globally
|
213
232
|
@mixin ThemeHome($name,$color){
|
214
233
|
// inherit theme color for the book cover
|
215
234
|
.link.book.#{$name} {
|
216
|
-
background-color: $color;
|
235
|
+
background-color: setcolor($color);
|
217
236
|
}
|
218
237
|
}
|
219
238
|
|
@@ -221,23 +240,23 @@
|
|
221
240
|
@mixin ThemeTopbar($name,$color) {
|
222
241
|
// inherit theme color for the topbar link
|
223
242
|
.link.navigation.#{$name} {
|
224
|
-
color: $color;
|
243
|
+
color: setcolor($color);
|
225
244
|
}
|
226
245
|
// add theme color tint to background on hover
|
227
246
|
.link.navigation.#{$name}:hover {
|
228
|
-
background-color: rgba($color,10%);
|
247
|
+
background-color: rgba(setcolor($color),10%);
|
229
248
|
}
|
230
249
|
}
|
231
250
|
|
232
251
|
// Used globally
|
233
|
-
@mixin ThemeCover($
|
252
|
+
@mixin ThemeCover($book,$chapter,$color,$left:false) {
|
253
|
+
// optional arguments must come last
|
234
254
|
|
235
255
|
@if $chapter {
|
236
256
|
|
237
|
-
//
|
238
|
-
|
239
|
-
|
240
|
-
background-color: $color;
|
257
|
+
// chapter covers
|
258
|
+
.wrap.page-wrap.type-chapter.chapter-#{$chapter} {
|
259
|
+
background-color: setcolor($color);
|
241
260
|
|
242
261
|
@if $left {
|
243
262
|
.title.type-chapter {
|
@@ -247,23 +266,22 @@
|
|
247
266
|
}
|
248
267
|
} @else {
|
249
268
|
|
250
|
-
//
|
251
|
-
|
252
|
-
|
253
|
-
background-color: $color;
|
269
|
+
// book covers
|
270
|
+
.area.type-chapter.book-#{$book} {
|
271
|
+
background-color: setcolor($color);
|
254
272
|
}
|
255
273
|
}
|
256
274
|
}
|
257
275
|
|
258
|
-
// Used
|
259
|
-
@mixin PageInfo($
|
276
|
+
// Used Globally
|
277
|
+
@mixin PageInfo($color,$right) {
|
260
278
|
|
261
279
|
.title.page-weight {
|
262
|
-
color: $
|
280
|
+
color: setcolor($color);
|
263
281
|
}
|
264
282
|
|
265
283
|
.title.page-chapter {
|
266
|
-
color: $
|
284
|
+
color: setcolor($color);
|
267
285
|
@if $right {
|
268
286
|
right: #{$right}px;
|
269
287
|
}
|
@@ -271,113 +289,96 @@
|
|
271
289
|
}
|
272
290
|
|
273
291
|
// Used in Mindsets
|
274
|
-
@mixin ThemeRollerInput($
|
275
|
-
background-color: rgba($
|
276
|
-
color: $
|
292
|
+
@mixin ThemeRollerInput($color) {
|
293
|
+
background-color: rgba(setcolor($color),10%);
|
294
|
+
color: setcolor($color);
|
295
|
+
|
296
|
+
&.active {
|
297
|
+
background-color: setcolor($color);
|
298
|
+
color: white;
|
299
|
+
}
|
277
300
|
}
|
278
301
|
|
279
302
|
// Used in Mindsets
|
280
|
-
@mixin ThemeRollerOutput($
|
281
|
-
background-color: rgba($
|
282
|
-
border-color: rgba($
|
283
|
-
color: $
|
303
|
+
@mixin ThemeRollerOutput($color) {
|
304
|
+
background-color: rgba(setcolor($color),10%);
|
305
|
+
border-color: rgba(setcolor($color),20%);
|
306
|
+
color: setcolor($color);
|
284
307
|
}
|
285
308
|
|
286
|
-
// Used in Mindsets
|
287
|
-
@mixin ThemeRoller($
|
309
|
+
// Used in Mindsets, Brandvoice
|
310
|
+
@mixin ThemeRoller($chapter,$title,$color) {
|
288
311
|
|
289
312
|
@if $chapter {
|
290
313
|
|
291
|
-
.list.roller.chapter-#{$
|
314
|
+
.list.roller.chapter-#{$chapter} {
|
292
315
|
|
293
316
|
.item.roller.input {
|
294
|
-
@include ThemeRollerInput($
|
295
|
-
|
296
|
-
&.active {
|
297
|
-
background-color: $col;
|
298
|
-
color: white;
|
299
|
-
}
|
317
|
+
@include ThemeRollerInput($color);
|
300
318
|
}
|
301
319
|
|
302
320
|
.item.roller.output {
|
303
|
-
@include ThemeRollerOutput($
|
321
|
+
@include ThemeRollerOutput($color);
|
304
322
|
}
|
305
323
|
}
|
306
324
|
|
307
325
|
} @else {
|
308
326
|
|
309
|
-
.item.roller.input.title-#{$
|
310
|
-
@include ThemeRollerInput($
|
311
|
-
|
312
|
-
&.active {
|
313
|
-
background-color: $col;
|
314
|
-
color: white;
|
315
|
-
}
|
327
|
+
.item.roller.input.title-#{$title} {
|
328
|
+
@include ThemeRollerInput($color);
|
316
329
|
}
|
317
330
|
|
318
|
-
.item.roller.output.title-#{$
|
319
|
-
@include ThemeRollerOutput($
|
331
|
+
.item.roller.output.title-#{$title} {
|
332
|
+
@include ThemeRollerOutput($color);
|
320
333
|
}
|
321
334
|
}
|
322
335
|
}
|
323
336
|
|
324
|
-
// Used in Mindsets
|
325
|
-
@mixin ThemeChart($
|
337
|
+
// Used in Mindsets, Brandvoice
|
338
|
+
@mixin ThemeChart($color) {
|
326
339
|
.block.chart-pcent-title {
|
327
|
-
color: $
|
340
|
+
color: setcolor($color);
|
328
341
|
}
|
329
342
|
|
330
343
|
.block.chart-bar-bg {
|
331
|
-
background-color: $
|
344
|
+
background-color: setcolor($color);
|
332
345
|
}
|
333
346
|
}
|
334
347
|
|
335
|
-
|
336
|
-
|
348
|
+
@mixin ThemePagesCore($color,$right) {
|
349
|
+
// stroke: setcolor($color);
|
350
|
+
fill: setcolor($color);
|
337
351
|
|
338
|
-
@
|
352
|
+
@include PageInfo($color,$right);
|
339
353
|
|
340
|
-
|
341
|
-
fill: $col;
|
354
|
+
@include ThemeChart($color);
|
342
355
|
|
343
|
-
|
356
|
+
.block.number-container {
|
357
|
+
color: setcolor($color);
|
358
|
+
}
|
344
359
|
|
345
|
-
|
360
|
+
.lnk.stats {
|
361
|
+
color: setcolor($color);
|
362
|
+
}
|
346
363
|
|
347
|
-
|
348
|
-
|
349
|
-
|
364
|
+
.list.pies {
|
365
|
+
color: setcolor($color);
|
366
|
+
}
|
367
|
+
}
|
350
368
|
|
351
|
-
|
352
|
-
|
353
|
-
}
|
369
|
+
// Used in Mindsets
|
370
|
+
@mixin ThemePages($book,$chapter,$color,$right:false) {
|
354
371
|
|
355
|
-
|
356
|
-
|
357
|
-
|
372
|
+
@if $chapter {
|
373
|
+
|
374
|
+
.wrap.type-page.chapter-#{$chapter} {
|
375
|
+
@include ThemePagesCore($color,$right);
|
358
376
|
}
|
359
377
|
|
360
378
|
} @else {
|
361
379
|
|
362
|
-
.wrap.type-page.book-#{$
|
363
|
-
|
364
|
-
fill: $col;
|
365
|
-
|
366
|
-
@include PageInfo($col,$right);
|
367
|
-
|
368
|
-
@include ThemeChart($col);
|
369
|
-
|
370
|
-
.block.number-container {
|
371
|
-
color: $col;
|
372
|
-
}
|
373
|
-
|
374
|
-
.lnk.stats {
|
375
|
-
color: $col;
|
376
|
-
}
|
377
|
-
|
378
|
-
.list.pies {
|
379
|
-
color: $col;
|
380
|
-
}
|
380
|
+
.wrap.type-page.book-#{$book} {
|
381
|
+
@include ThemePagesCore($color,$right);
|
381
382
|
}
|
382
383
|
}
|
383
384
|
}
|
@@ -391,39 +392,33 @@
|
|
391
392
|
}
|
392
393
|
}
|
393
394
|
|
394
|
-
|
395
|
-
|
395
|
+
@mixin ThemeSearchCore($color) {
|
396
|
+
color: setcolor($color);
|
396
397
|
|
397
|
-
|
398
|
-
|
399
|
-
|
398
|
+
&:hover {
|
399
|
+
background-color: rgba(setcolor($color),10%);
|
400
|
+
}
|
400
401
|
|
401
|
-
|
402
|
-
|
402
|
+
.block.results-dot {
|
403
|
+
background-color: setcolor($color);
|
404
|
+
}
|
405
|
+
}
|
403
406
|
|
404
|
-
|
405
|
-
|
406
|
-
}
|
407
|
+
// Used Globally
|
408
|
+
@mixin ThemeSearch($book,$chapter,$color) {
|
407
409
|
|
408
|
-
|
409
|
-
|
410
|
-
|
410
|
+
@if $chapter {
|
411
|
+
|
412
|
+
// theme results by chapter
|
413
|
+
.block.results-entry.chapter-#{$chapter} {
|
414
|
+
@include ThemeSearchCore($color);
|
411
415
|
}
|
412
416
|
|
413
417
|
} @else {
|
414
418
|
|
415
|
-
//
|
416
|
-
|
417
|
-
|
418
|
-
color: $col;
|
419
|
-
|
420
|
-
&:hover {
|
421
|
-
background-color: rgba($col,10%);
|
422
|
-
}
|
423
|
-
|
424
|
-
.block.results-dot {
|
425
|
-
background-color: $col;
|
426
|
-
}
|
419
|
+
// theme results by book
|
420
|
+
.block.results-entry.book-#{$book} {
|
421
|
+
@include ThemeSearchCore($color);
|
427
422
|
}
|
428
423
|
}
|
429
424
|
}
|
data/_sass/helpers/themes.scss
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
|
2
|
-
// ThemeBook | $name | $col
|
2
|
+
// // ThemeBook | $name | $col
|
3
3
|
|
4
|
-
@include ThemeBook("orwell",blue);
|
4
|
+
// @include ThemeBook("orwell",blue);
|
5
5
|
|
6
|
-
@include ThemeBook("woolf",green);
|
6
|
+
// @include ThemeBook("woolf",green);
|
7
7
|
|
8
|
-
// ThemeCover | $name | $col | $left | $chapter
|
8
|
+
// // ThemeCover | $name | $col | $left | $chapter
|
9
9
|
|
10
|
-
@include ThemeCover("animal",blue,false,true);
|
10
|
+
// @include ThemeCover("animal",blue,false,true);
|
11
11
|
|
12
|
-
// ThemePages | $name | $col | $right | $chapter
|
12
|
+
// // ThemePages | $name | $col | $right | $chapter
|
13
13
|
|
14
|
-
@include ThemePages("animal",blue,false,true);
|
14
|
+
// @include ThemePages("animal",blue,false,true);
|
@@ -147,28 +147,46 @@ $colormap : (
|
|
147
147
|
),
|
148
148
|
|
149
149
|
addicts : (
|
150
|
-
base : #e6433a
|
150
|
+
base : #e6433a,
|
151
|
+
dark : darken(#e6433a,10%), // untested
|
152
|
+
light : lighten(#e6433a,20%), // untested
|
153
|
+
xlight : lighten(#e6433a,40%) // untested
|
151
154
|
),
|
152
155
|
|
153
156
|
family : (
|
154
|
-
base : #029ddf
|
157
|
+
base : #029ddf,
|
158
|
+
dark : darken(#029ddf,10%), // untested
|
159
|
+
light : lighten(#029ddf,20%), // untested
|
160
|
+
xlight : lighten(#029ddf,40%) // untested
|
155
161
|
),
|
156
162
|
|
157
163
|
receptive : (
|
158
|
-
base : #b25400
|
164
|
+
base : #b25400,
|
165
|
+
dark : darken(#b25400,10%), // untested
|
166
|
+
light : lighten(#b25400,20%), // untested
|
167
|
+
xlight : lighten(#b25400,40%) // untested
|
159
168
|
),
|
160
169
|
|
161
170
|
value : (
|
162
|
-
base : #5fb641
|
171
|
+
base : #5fb641,
|
172
|
+
dark : darken(#5fb641,10%), // untested
|
173
|
+
light : lighten(#5fb641,20%), // untested
|
174
|
+
xlight : lighten(#5fb641,40%) // untested
|
163
175
|
),
|
164
176
|
|
165
177
|
next : (
|
166
|
-
base : #ffa905
|
178
|
+
base : #ffa905,
|
179
|
+
dark : darken(#ffa905,10%), // untested
|
180
|
+
light : lighten(#ffa905,20%), // untested
|
181
|
+
xlight : lighten(#ffa905,40%) // untested
|
167
182
|
),
|
168
183
|
|
169
184
|
maybe : (
|
170
|
-
base : #974597
|
171
|
-
|
185
|
+
base : #974597,
|
186
|
+
dark : darken(#974597,10%), // untested
|
187
|
+
light : lighten(#974597,20%), // untested
|
188
|
+
xlight : lighten(#974597,40%) // untested
|
189
|
+
),
|
172
190
|
|
173
191
|
paradise : (
|
174
192
|
base : #e8396c,
|
data/_sass/item/scroller.scss
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
|
2
|
-
$(
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
$(Site.scroller).map((_index,value) => {
|
3
|
+
|
4
|
+
let label = $(value)[0].classList[2],
|
5
|
+
scene = new ScrollMagic
|
6
|
+
.Scene({
|
7
|
+
triggerElement : `.block.stop#${label}`
|
8
|
+
})
|
9
|
+
.setTween(value,0.1,{
|
10
|
+
opacity : 1
|
11
|
+
})
|
12
|
+
.addTo(controller);
|
13
|
+
|
10
14
|
return scene;
|
15
|
+
|
11
16
|
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
Button.func.reset = (self,saved) => {
|
3
|
+
let text = $(self).find(".button-title"),
|
4
|
+
bg = $(self).find(".button-bg"),
|
5
|
+
all = [text,bg,self],
|
6
|
+
tl = gsap.timeline();
|
7
|
+
|
8
|
+
tl
|
9
|
+
.set(all,{
|
10
|
+
clearProps : "all"
|
11
|
+
})
|
12
|
+
.set(text,{
|
13
|
+
text : saved
|
14
|
+
});
|
15
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
Button.func.submit = (self, complete = "Done", reset = true) => {
|
3
|
+
let text = $(self).find(".button-title"),
|
4
|
+
bg = $(self).find(".button-bg"),
|
5
|
+
all = [text,bg,self],
|
6
|
+
tl = gsap.timeline();
|
7
|
+
|
8
|
+
Save.text = $(self).find(".button-title").text();
|
9
|
+
Save.color = $(self).css('backgroundColor');
|
10
|
+
|
11
|
+
tl
|
12
|
+
.set(self,{
|
13
|
+
backgroundColor : tinycolor(Save.color).lighten(44).desaturate(5)
|
14
|
+
})
|
15
|
+
.set(text,{
|
16
|
+
color : Save.color
|
17
|
+
})
|
18
|
+
.set(all,{
|
19
|
+
clearProps : "all"
|
20
|
+
})
|
21
|
+
.set([self,bg],{
|
22
|
+
backgroundColor : Color.green
|
23
|
+
})
|
24
|
+
.set(text,{
|
25
|
+
text : complete
|
26
|
+
})
|
27
|
+
.to(bg,{
|
28
|
+
duration : 0.5,
|
29
|
+
scaleX : 1.2,
|
30
|
+
scaleY : 1.3,
|
31
|
+
opacity : 0
|
32
|
+
});
|
33
|
+
|
34
|
+
if (reset) {
|
35
|
+
tl.call(()=>{
|
36
|
+
Button.func.reset(self,Save.text);
|
37
|
+
},"+=1");
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
Button.func.switch = self => {
|
3
|
+
|
4
|
+
if ($(self).hasClass('undo')) {
|
5
|
+
|
6
|
+
$(self).parents(".control").siblings(".before").show();
|
7
|
+
$(self).parents(".control").siblings(".after").hide();
|
8
|
+
$(self).parents(".wrap.switch").siblings(".wrap.switch").children(".before").show();
|
9
|
+
$(self).parents(".wrap.switch").siblings(".wrap.switch").children(".after").hide();
|
10
|
+
$(self).removeClass("undo");
|
11
|
+
|
12
|
+
Button.func.reset(self, "Next");
|
13
|
+
|
14
|
+
} else {
|
15
|
+
|
16
|
+
Button.func.submit(self, "Back", false);
|
17
|
+
|
18
|
+
$(self).parents(".control").siblings(".before").hide();
|
19
|
+
$(self).parents(".control").siblings(".after").show();
|
20
|
+
$(self).parents(".wrap.switch").siblings(".wrap.switch").children(".before").hide();
|
21
|
+
$(self).parents(".wrap.switch").siblings(".wrap.switch").children(".after").show();
|
22
|
+
$(self).addClass("undo");
|
23
|
+
|
24
|
+
}
|
25
|
+
|
26
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
Button.func.update = self => {
|
3
|
+
let text = $(self).find(".button-title"),
|
4
|
+
bg = $(self).find(".button-bg"),
|
5
|
+
all = [text,bg,self];
|
6
|
+
|
7
|
+
Save.text = $(self).find(".button-title").text();
|
8
|
+
Save.color = $(self).css('backgroundColor');
|
9
|
+
|
10
|
+
if (!UpdateIsLocked) {
|
11
|
+
|
12
|
+
let tl = gsap.timeline();
|
13
|
+
|
14
|
+
tl
|
15
|
+
.set(text,{
|
16
|
+
text : "Adding"
|
17
|
+
})
|
18
|
+
.set(bg,{
|
19
|
+
backgroundColor : tinycolor(Save.color).darken(8)
|
20
|
+
})
|
21
|
+
.to(bg,{
|
22
|
+
right : 0,
|
23
|
+
duration : 1
|
24
|
+
})
|
25
|
+
.set(text,{
|
26
|
+
text : "Added"
|
27
|
+
})
|
28
|
+
.to(bg,{
|
29
|
+
duration : 0.5,
|
30
|
+
backgroundColor : Color.green
|
31
|
+
});
|
32
|
+
|
33
|
+
if (reset) {
|
34
|
+
tl.call(()=>{
|
35
|
+
Button.func.reset(self,Save.text);
|
36
|
+
},"+=1");
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller;Browse.able=!1,Body.classes=$("body")[0].classList,$("body").hasClass("type-home")&&(Body.isHome=!0),Site.isTheme||(Browse.able=$(".wrap.type-page").length);var HandleClass=function(e,t,a){var o=2<arguments.length&&void 0!==a?a:"active";$(e).map(function(e,a){"add"==t?$(a).addClass(o):"remove"==t?$(a).removeClass(o):"clear"==t&&$(a).removeClass()})};Print.width=function(){var e=$(document)[0].documentElement.clientWidth,a=Site.desktop.width-e+"px",t=100/Site.desktop.width*e+"%";$(".width").html(a),gsap.set(Overlay.mobile.bar,{width:t})},Check.width=function(){Site.desktop.active?(gsap.set(Overlay.mobile.screen,{clearProps:"display"}),gsap.set(".site",{display:Config.display})):(gsap.set(".site",{clearProps:"display"}),gsap.set(Overlay.mobile.screen,{display:Config.display}),Print.width())},Config.respond||($(Check.width()),$(window).resize(Check.width()));var BackgroundShade={background:shade},ClearDisplay={clearProps:"display"},ClearBackground={clearProps:"background"},DisplayNone={display:"none"};Browse.book.links=$(".link.browse-book",".wrap.browse-book"),Browse.book.class="",Browse.book.notFound=!0,Browse.chapter.links=$(".link.browse-chapter",".wrap.browse-chapter"),Browse.chapter.books=$(".block.browse-book",".wrap.browse-chapter"),Browse.chapter.class="",Browse.chapter.notFound=!0,Browse.page.links=$(".link.browse-page",".wrap.browse-page"),Browse.page.books=$(".block.browse-book",".wrap.browse-page"),Browse.page.chapters=$(".block.browse-chapter",".wrap.browse-page"),Browse.page.class="",Browse.page.notFound=!0,Browse.found.success=!1,Browse.match=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"book";$(e.classList).each(function(e,a){"book"==t?a.startsWith("book-")&&(Browse.book.class=a):a.startsWith("chapter-")&&(Browse.chapter.class=a)})},Browse.found.check=function(e){Browse.found.success?gsap.set(e,ClearDisplay):gsap.set(e,DisplayNone)},$(window.location.pathname.split("/")).map(function(e,a){Site.isLibrary?1==e?(Book.url=a,Browse.book.class="book-"+Book.url):2==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):3==e&&(Page.url=a,Browse.page.class="title-"+Page.url):1==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):2==e&&(Page.url=a,Browse.page.class="title-"+Page.url)}),Check.book.class=function(e){Browse.found.success=!1,$(e.classList).map(function(e,a){a.startsWith("book-")&&Browse.book.class==a&&(Browse.found.success=!0,Browse.book.notFound=!1)})},Check.chapter.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("chapter-")&&Browse.chapter.class==a&&(Browse.found.success=!0,Browse.chapter.notFound=!1)})},Check.page.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("title-")&&Browse.page.class==a&&(Browse.found.success=!0,Browse.page.notFound=!1)})},Browse.chapter.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.notFound&&gsap.set(a.children[0],BackgroundShade)},Browse.page.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success?(gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.page.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.page.notFound&&gsap.set(a.children[0],BackgroundShade)):gsap.set(a,DisplayNone)}),Browse.chapter.notFound&&(gsap.set(a.children[0],ClearDisplay),gsap.set(a.children[0].children[0],BackgroundShade))},Browse.book.links.respond=function(e){Browse.match(e),gsap.set(Browse.book.links,ClearBackground),gsap.set(e,BackgroundShade),Check.book.class(e)},Browse.chapter.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.chapter.links.respond=function(e){var a=e.parentElement;Browse.match(a,"book"),Browse.match(e,"chapter"),gsap.set(Browse.chapter.links,ClearBackground),gsap.set(e,BackgroundShade)},Browse.page.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,DisplayNone),gsap.set(e.children[0],ClearDisplay),gsap.set(e.children[0].children,ClearBackground),gsap.set(e.children[0].children[0],BackgroundShade)},Browse.page.chapters.respond=function(e){Check.chapter.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.page.links.respond=function(e){gsap.set(Browse.page.links,ClearBackground),gsap.set(e,BackgroundShade)},Roller.default.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass([a,o[e]],"remove"))}),HandleClass([t,o[s]],"add")},Roller.default.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&HandleClass([a,t[e]],"remove")}),HandleClass([Save.input,t[Save.index]],"add"),e.play()},Roller.default.tl=function(t,o){var s=gsap.timeline({repeat:-1});t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),s.call(HandleClass,[a,"add"]).call(HandleClass,[o[e],"add"]).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o[e],"remove"]),$(a).hover(function(){Roller.default.over(s,t,a,o,e)},function(){Roller.default.out(s,t,o)})})},Roller.morph.over=function(e,a,t,o,s,n,r){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"))}),HandleClass(o,"clear"),$(t.classList).map(function(e,a){a.startsWith("title-")&&(r=a.slice(6))}),n="path#".concat(r),gsap.to(o,{morphSVG:n,duration:.3}),HandleClass(t,"add"),HandleClass(o,"add",r)},Roller.morph.out=function(e,a,t,o,s){a.map(function(e,a){$(a).hasClass("active")&&HandleClass(a,"remove")}),HandleClass(t,"clear"),$(Save.input.classList).map(function(e,a){a.startsWith("title-")&&(o=a.slice(6))}),s="path#".concat(o),gsap.to(t,{morphSVG:s,duration:.3}),HandleClass(Save.input,"add"),HandleClass(t,"add",o),e.play()},Roller.morph.tl=function(t,o){var s=gsap.timeline({repeat:-1}),n="",r="";t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&(n=a.slice(6))}),r="path#".concat(n),s.call(HandleClass,[a,"add"]).call(HandleClass,[o,"add",n]).to(o,{morphSVG:r,duration:.3}).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o,"remove",n]),$(a).hover(function(){Roller.morph.over(s,t,a,o,e,r,n)},function(){Roller.morph.out(s,t,o)})})},Roller.snap.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"),o.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(t,"add");var i=s;o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[i];HandleClass(t[i],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})})},Roller.snap.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&(HandleClass(a,"remove"),t.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(Save.input,"add"),t.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];HandleClass(t[Save.index],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})}),e.play()},Roller.snap.tl=function(t,o){var i=gsap.timeline({repeat:-1});t.map(function(e,a){Save.index=e,$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),i.call(HandleClass,[a,"add"]),o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];i.call(HandleClass,[t[Save.index],"add"]).set(s,{color:r.color}).set(n,{text:r.pcent[e]})}),i.call(HandleClass,[a,"remove"],"+=1"),o.map(function(e,a){var t=$(a).find("path");i.call(HandleClass,[t[Save.index],"remove"])}),$(a).hover(function(){Roller.snap.over(i,t,a,o,e)},function(){Roller.snap.out(i,t,o)})})};var ActiveBook=function(){if(!Body.isHome){var o="";$(Body.classes).map(function(e,a){if(a.startsWith("book-")){o=a.slice(5);var t=$("button",Site.topbar.lnk+"."+o);gsap.set(t,{borderBottom:"3px solid"})}})}};Site.isTheme||$(ActiveBook),Setup.home=function(){gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".link.book",{y:-5},{duration:1,y:5}),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})})},Site.isLibrary&&Body.isHome&&$(Setup.home());var ChangeScreen=function(e,a,t){var o=Overlay.custom[e],s=".area.overlay-"+o.name,n=$(".input.text-search"),r=$(".wrap.results");"close"==t?(gsap.set("body",{clearProps:"overflow"}),gsap.set(s,{clearProps:"display"}),o.open=!1,"search"==a.name&&(n.val(""),r.empty())):(gsap.set("body",{overflow:"hidden"}),gsap.set(s,{display:Config.display}),o.open=!0,"search"==a.name&&n.focus())},BuildScreens=function(e,a){var t=Overlay.button+"."+a.name,o=Overlay.exit+"."+a.name;$(t).click(function(){ChangeScreen(e,a,"open")}),$(o).click(function(){ChangeScreen(e,a,"close")})},KeyUp=function(t){$(Overlay.custom).map(function(e,a){a.open&&27==t.keyCode&&ChangeScreen(e,a,"close"),a.open||Site.inFocus||(65==t.keyCode&&"about"==a.name&&ChangeScreen(e,a,"open"),66==t.keyCode&&"browse"==a.name&&ChangeScreen(e,a,"open"),83==t.keyCode&&"search"==a.name&&ChangeScreen(e,a,"open"))})};$(Overlay.custom).map(function(e,a){BuildScreens(e,a)}),$(document).keyup(function(e){KeyUp(e)}),Setup.scroll=function(){$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(e){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash);(a=a.length?a:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:a.offset().top},500,function(){var e=$(a);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})},$(Setup.scroll()),Setup.site=function(){Config.respond?gsap.set(".site",{display:Config.display}):Site.mobile.active||gsap.set(".site",{display:Config.display}),setTimeout(function(){gsap.set(Overlay.load.screen,{clearProps:"display"}),Site.tl.pause()},1e3)},$(Setup.site()),$(window).resize(Setup.site()),Start.browse=function(){Book.url?(Browse.book.links.map(function(e,a){Check.book.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.chapter.books.filter(e,a):gsap.set(a,DisplayNone)}),Browse.page.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.page.books.filter(e,a):gsap.set(a,DisplayNone)})):(Browse.chapter.books.map(function(e,a){Browse.chapter.books.filter(e,a)}),Browse.page.books.map(function(e,a){Browse.page.books.filter(e,a)}))},Site.isTheme||Body.isHome||Browse.able&&Start.browse();var AnimateChart=function(){$(Site.charts.list).map(function(e,a){var o=gsap.timeline({repeat:-1,repeatDelay:3}),t=$(a).find(".block.chart-bar"),s=$(t).children(Site.charts.pcent).children("span"),n=$(t).find(Site.charts.title);o.from(t,{duration:1,stagger:.2,height:0},"start").from(n,{delay:1,duration:.2,opacity:0},"start").from(n,{delay:1,duration:.8,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),s.map(function(a){var e=s[a].innerText,t={val:0};o.to(t,{val:e,duration:2,onUpdate:function(){var e=gsap.utils.snap(1,t.val);s[a].innerText=e}},"start")})})},AnimateNumbers=function(){$(Site.numbers).map(function(e,a){var t=a.innerText,o={val:0};gsap.timeline({repeat:-1,repeatDelay:3}).to(o,{val:t,duration:3,onUpdate:function(){var e=gsap.utils.snap(1,o.val);a.innerText=e}},"start")})},AnimatePies=function(){$(Site.pies.list).map(function(e,a){var l=gsap.timeline({repeat:-1,repeatDelay:3}),t=a.children;$(t).map(function(e,a){var t=$(a).children(Site.pies.pcent).children("span"),o=$(a).children(Site.pies.wrap),s=$(a).children(Site.pies.title),n=o.children(Site.pies.data),r=$(t).text(),i={val:0};l.to(i,{val:r,duration:.4*6,onUpdate:function(){var e=gsap.utils.snap(1,i.val);t.text(e)}},"start").from(s,{duration:.4*3,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),n.map(function(e,a){var t=$("g#data",a);0==e?l.from(t,{duration:.4,opacity:0},"start").from(t,{duration:.4*3,rotation:-180,transformOrigin:"center"},"start"):0<e&&l.from(t,{duration:.4*3,rotation:-90,transformOrigin:"center",delay:.4*1.5},"start").from(t,{duration:.4,opacity:0,delay:.4*1.5},"start")})})})};$(".item.scroller").each(function(e,a){var t=$(a)[0].classList[2],o="#".concat(t,"-").concat(t),s=".item.scroller.".concat(t);return new ScrollMagic.Scene({triggerElement:o}).setTween(s,.1,{opacity:1}).addTo(controller)}),Artform.list=Object.keys(Color.artforms),Artform.clear=function(e){$(e).attr("class","block header title-artform"),$(Page.wrap+".title-artform").map(function(e,a){Contrast.reset(a)})},Artform.update=function(e,a){$(e).addClass("tag-"+a),$(Page.wrap+".title-artform").map(function(e,a){Contrast.check(a,".block.header",".block.header")})},Artform.header=function(){var a=".header.title-artform",t=gsap.timeline({repeat:-1});Artform.list.map(function(e){t.set(a,{opacity:1,onComplete:function(){Artform.update(a,e)}}).set(a,{clearProps:"all",delay:1.5,onComplete:function(){Artform.clear(a)}})})};var ParseInputs=function(e,a){e.map(function(e){$(e).parsley(a)})},RequireInputs=function(e){ParseInputs(e,{required:!0})},ValidateSelects=function(e){ParseInputs(e,{min:1,errorMessage:"Please select an option"})},ValidateNumbers=function(e){ParseInputs(e,{type:"digits"})},ValidateText=function(e){ParseInputs(e,{minlength:5})},ValidateEmail=function(e){ParseInputs(e,{type:"email"})};Contrast.reset=function(e){var a={ratio:$(e).find(Site.access.ratio)};$(a.ratio).attr("class","block access-ratio")},Contrast.round=function(e){return Math.round(100*e)/100},Contrast.ratio=function(e,a){return Contrast.round(tinycolor.readability(e,a))},Contrast.check=function(e,a,t){var o={ratio:$(e).find(Site.access.ratio),color:tinycolor($(a,e).css("color")).toHexString(),backg:tinycolor($(t,e).css("background-color")).toHexString()},s={ratio:Contrast.ratio(o.color,o.backg)};$(o.ratio).text(s.ratio),4.5<=s.ratio?$(o.ratio).addClass(Site.access.best):3<=s.ratio?$(o.ratio).addClass(Site.access.good):$(o.ratio).addClass(Site.access.poor)},Respond.browse=function(){Browse.book.links.hover(function(){Browse.book.links.respond(this),Browse.chapter.books.map(function(e,a){Browse.chapter.books.respond(a)}),Browse.page.books.map(function(e,a){Browse.page.books.respond(a)})}),Browse.chapter.links.hover(function(){Browse.chapter.links.respond(this),Browse.page.chapters.map(function(e,a){Browse.page.chapters.respond(a)})}),Browse.page.links.hover(function(){Browse.page.links.respond(this)})},Site.isTheme||Body.isHome||Browse.able&&Respond.browse(),Respond.roller.default.func=function(){$(Roller.default.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.default.output).find(".item");Roller.default.tl(t,o)})},Respond.roller.morph.func=function(){$(Roller.morph.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.morph.output).find("path#output");Roller.morph.tl(t,o)})},Respond.roller.snap.func=function(){$(Roller.snap.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).parents(".area.type-page").siblings(Roller.snap.output).find("svg.snap");Roller.snap.tl(t,o)})};var Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,a){var t=$(e.target),o=t.siblings(".button-bg"),s=t.parent(),n={dis:{before:$(s).siblings(".before"),after:$(s).siblings(".after")},dat:{before:$(s).parent().siblings().children(".before"),after:$(s).parent().siblings().children(".after")}},r=[n.dis.before,n.dat.before],i=[n.dis.after,n.dat.after];if(s.hasClass("undo"))"down"===a?gsap.set([s,o],{clearProps:"all"}):"up"===a&&($(s).removeClass("undo"),gsap.set([r,i],{clearProps:"all"}),gsap.set(t,{text:"Next"}));else if("down"===a)gsap.set([s,o],{scale:.95});else if("up"===a){gsap.timeline().to(r,{duration:.2,opacity:0}).set([s,o],{backgroundColor:Color.green}).set(t,{text:"Undo"}).set(r,{display:"none"}).set(i,{display:"block"}).to(o,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}).call(function(){$(s).addClass("undo")})}};$(Button.target).mousedown(function(e){ButtonSwitch(e,"down")}).mouseup(function(e){ButtonSwitch(e,"up")});var FocusInputs=["input","textarea"],SetFocus=function(e){Site.inFocus=e};FocusInputs.map(function(e){$(e).focusin(function(){SetFocus(!0)}).focusout(function(){SetFocus(!1)})}),Util.copy=function(e){var a=document.createElement("textarea");a.value=e,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)},Util.share=function(e){var a=$(e).parents(Site.page.share),t=$(a.context).find(Site.page.url).text();gsap.timeline();t=t.replace("index",""),$(a.context.classList).map(function(e,a){a.includes("type-")&&0}),Util.copy(t)};var WhatsOn={speed:function(e){return.03*e},slide:function(e){var a=$(".block.alert-content",e),t=$(".alert-feed",e),o=$(t).width()+100,s=$(".alert-clone",e);$(a).addClass("modify-grid");var n=gsap.timeline({defaults:{ease:"none"}}),r=gsap.timeline({repeat:-1,paused:!0,defaults:{ease:"none"}});r.to([t,s],{duration:WhatsOn.speed(o),x:-o}),n.to(a,{duration:WhatsOn.speed(20),paddingLeft:0}).call(function(){r.play()})},scroll:function(e){var a=$(".feed",e),t=$(a).height(),o=$(".clone",e);gsap.timeline({repeat:-1,defaults:{ease:"none"}}).to([a,o],{duration:WhatsOn.speed(t),y:-t})}},YouSaved=function(e){var a=$(".block.form-alert",e),t=tinycolor($(a).css("border-color")).toHexString(),o=tinycolor($(a).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10)}).set(a,{clearProps:"all",delay:.2}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10),delay:.2}).to(a,{backgroundColor:o,borderColor:t,duration:.8,delay:.2})};
|
1
|
+
"use strict";var shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller;Browse.able=!1,Body.classes=$("body")[0].classList,$("body").hasClass("type-home")&&(Body.isHome=!0),Site.isTheme||(Browse.able=$(".wrap.type-page").length);var HandleClass=function(e,t,a){var o=2<arguments.length&&void 0!==a?a:"active";$(e).map(function(e,a){"add"==t?$(a).addClass(o):"remove"==t?$(a).removeClass(o):"clear"==t&&$(a).removeClass()})};Print.width=function(){var e=$(document)[0].documentElement.clientWidth,a=Site.desktop.width-e+"px",t=100/Site.desktop.width*e+"%";$(".width").html(a),gsap.set(Overlay.mobile.bar,{width:t})},Check.width=function(){Site.desktop.active?(gsap.set(Overlay.mobile.screen,{clearProps:"display"}),gsap.set(".site",{display:Config.display})):(gsap.set(".site",{clearProps:"display"}),gsap.set(Overlay.mobile.screen,{display:Config.display}),Print.width())},Config.respond||($(Check.width()),$(window).resize(Check.width()));var BackgroundShade={background:shade},ClearDisplay={clearProps:"display"},ClearBackground={clearProps:"background"},DisplayNone={display:"none"};Browse.book.links=$(".link.browse-book",".wrap.browse-book"),Browse.book.class="",Browse.book.notFound=!0,Browse.chapter.links=$(".link.browse-chapter",".wrap.browse-chapter"),Browse.chapter.books=$(".block.browse-book",".wrap.browse-chapter"),Browse.chapter.class="",Browse.chapter.notFound=!0,Browse.page.links=$(".link.browse-page",".wrap.browse-page"),Browse.page.books=$(".block.browse-book",".wrap.browse-page"),Browse.page.chapters=$(".block.browse-chapter",".wrap.browse-page"),Browse.page.class="",Browse.page.notFound=!0,Browse.found.success=!1,Browse.match=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"book";$(e.classList).each(function(e,a){"book"==t?a.startsWith("book-")&&(Browse.book.class=a):a.startsWith("chapter-")&&(Browse.chapter.class=a)})},Browse.found.check=function(e){Browse.found.success?gsap.set(e,ClearDisplay):gsap.set(e,DisplayNone)},$(window.location.pathname.split("/")).map(function(e,a){Site.isLibrary?1==e?(Book.url=a,Browse.book.class="book-"+Book.url):2==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):3==e&&(Page.url=a,Browse.page.class="title-"+Page.url):1==e?(Chapter.url=a,Browse.chapter.class="chapter-"+Chapter.url):2==e&&(Page.url=a,Browse.page.class="title-"+Page.url)}),Check.book.class=function(e){Browse.found.success=!1,$(e.classList).map(function(e,a){a.startsWith("book-")&&Browse.book.class==a&&(Browse.found.success=!0,Browse.book.notFound=!1)})},Check.chapter.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("chapter-")&&Browse.chapter.class==a&&(Browse.found.success=!0,Browse.chapter.notFound=!1)})},Check.page.class=function(e){Browse.found.success=!1,$(e.classList).each(function(e,a){a.startsWith("title-")&&Browse.page.class==a&&(Browse.found.success=!0,Browse.page.notFound=!1)})},Browse.chapter.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.notFound&&gsap.set(a.children[0],BackgroundShade)},Browse.page.books.filter=function(e,a){gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.chapter.class(a),Browse.found.success?(gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){Check.page.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.page.notFound&&gsap.set(a.children[0],BackgroundShade)):gsap.set(a,DisplayNone)}),Browse.chapter.notFound&&(gsap.set(a.children[0],ClearDisplay),gsap.set(a.children[0].children[0],BackgroundShade))},Browse.book.links.respond=function(e){Browse.match(e),gsap.set(Browse.book.links,ClearBackground),gsap.set(e,BackgroundShade),Check.book.class(e)},Browse.chapter.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.chapter.links.respond=function(e){var a=e.parentElement;Browse.match(a,"book"),Browse.match(e,"chapter"),gsap.set(Browse.chapter.links,ClearBackground),gsap.set(e,BackgroundShade)},Browse.page.books.respond=function(e){Check.book.class(e),Browse.found.check(e),gsap.set(e.children,DisplayNone),gsap.set(e.children[0],ClearDisplay),gsap.set(e.children[0].children,ClearBackground),gsap.set(e.children[0].children[0],BackgroundShade)},Browse.page.chapters.respond=function(e){Check.chapter.class(e),Browse.found.check(e),gsap.set(e.children,ClearBackground),gsap.set(e.children[0],BackgroundShade)},Browse.page.links.respond=function(e){gsap.set(Browse.page.links,ClearBackground),gsap.set(e,BackgroundShade)},Roller.default.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass([a,o[e]],"remove"))}),HandleClass([t,o[s]],"add")},Roller.default.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&HandleClass([a,t[e]],"remove")}),HandleClass([Save.input,t[Save.index]],"add"),e.play()},Roller.default.tl=function(t,o){var s=gsap.timeline({repeat:-1});t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),s.call(HandleClass,[a,"add"]).call(HandleClass,[o[e],"add"]).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o[e],"remove"]),$(a).hover(function(){Roller.default.over(s,t,a,o,e)},function(){Roller.default.out(s,t,o)})})},Roller.morph.over=function(e,a,t,o,s,n,r){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"))}),HandleClass(o,"clear"),$(t.classList).map(function(e,a){a.startsWith("title-")&&(r=a.slice(6))}),n="path#".concat(r),gsap.to(o,{morphSVG:n,duration:.3}),HandleClass(t,"add"),HandleClass(o,"add",r)},Roller.morph.out=function(e,a,t,o,s){a.map(function(e,a){$(a).hasClass("active")&&HandleClass(a,"remove")}),HandleClass(t,"clear"),$(Save.input.classList).map(function(e,a){a.startsWith("title-")&&(o=a.slice(6))}),s="path#".concat(o),gsap.to(t,{morphSVG:s,duration:.3}),HandleClass(Save.input,"add"),HandleClass(t,"add",o),e.play()},Roller.morph.tl=function(t,o){var s=gsap.timeline({repeat:-1}),n="",r="";t.map(function(e,a){$(a.classList).map(function(e,a){a.startsWith("title-")&&(n=a.slice(6))}),r="path#".concat(n),s.call(HandleClass,[a,"add"]).call(HandleClass,[o,"add",n]).to(o,{morphSVG:r,duration:.3}).call(HandleClass,[a,"remove"],"+=1").call(HandleClass,[o,"remove",n]),$(a).hover(function(){Roller.morph.over(s,t,a,o,e,r,n)},function(){Roller.morph.out(s,t,o)})})},Roller.snap.over=function(e,a,t,o,s){e.pause(),a.map(function(e,a){$(a).hasClass("active")&&(Save.input=a,Save.index=e,HandleClass(a,"remove"),o.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(t,"add");var i=s;o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[i];HandleClass(t[i],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})})},Roller.snap.out=function(e,a,t){a.map(function(e,a){$(a).hasClass("active")&&(HandleClass(a,"remove"),t.map(function(e,a){var t=$(a).find("path");HandleClass(t,"remove")}))}),HandleClass(Save.input,"add"),t.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];HandleClass(t[Save.index],"add"),gsap.set(s,{color:r.color}),gsap.set(n,{text:r.pcent[e]})}),e.play()},Roller.snap.tl=function(t,o){var i=gsap.timeline({repeat:-1});t.map(function(e,a){Save.index=e,$(a.classList).map(function(e,a){a.startsWith("title-")&&a.slice(6)}),i.call(HandleClass,[a,"add"]),o.map(function(e,a){var t=$(a).find("path"),o=$(a).parents(".pie-wrap"),s=o.siblings(".title"),n=o.siblings(".pie-pcent").find("span"),r=Site.chapters[Save.index];i.call(HandleClass,[t[Save.index],"add"]).set(s,{color:r.color}).set(n,{text:r.pcent[e]})}),i.call(HandleClass,[a,"remove"],"+=1"),o.map(function(e,a){var t=$(a).find("path");i.call(HandleClass,[t[Save.index],"remove"])}),$(a).hover(function(){Roller.snap.over(i,t,a,o,e)},function(){Roller.snap.out(i,t,o)})})};var ActiveBook=function(){if(!Body.isHome){var o="";$(Body.classes).map(function(e,a){if(a.startsWith("book-")){o=a.slice(5);var t=$("button",Site.topbar.lnk+"."+o);gsap.set(t,{borderBottom:"3px solid"})}})}};Site.isTheme||$(ActiveBook),Setup.home=function(){gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".link.book",{y:-5},{duration:1,y:5}),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})})},Site.isLibrary&&Body.isHome&&$(Setup.home());var ChangeScreen=function(e,a,t){var o=Overlay.custom[e],s=".area.overlay-"+o.name,n=$(".input.text-search"),r=$(".wrap.results");"close"==t?(gsap.set("body",{clearProps:"overflow"}),gsap.set(s,{clearProps:"display"}),o.open=!1,"search"==a.name&&(n.val(""),r.empty())):(gsap.set("body",{overflow:"hidden"}),gsap.set(s,{display:Config.display}),o.open=!0,"search"==a.name&&n.focus())},BuildScreens=function(e,a){var t=Overlay.button+"."+a.name,o=Overlay.exit+"."+a.name;$(t).click(function(){ChangeScreen(e,a,"open")}),$(o).click(function(){ChangeScreen(e,a,"close")})},KeyUp=function(t){$(Overlay.custom).map(function(e,a){a.open&&27==t.keyCode&&ChangeScreen(e,a,"close"),a.open||Site.inFocus||(65==t.keyCode&&"about"==a.name&&ChangeScreen(e,a,"open"),66==t.keyCode&&"browse"==a.name&&ChangeScreen(e,a,"open"),83==t.keyCode&&"search"==a.name&&ChangeScreen(e,a,"open"))})};$(Overlay.custom).map(function(e,a){BuildScreens(e,a)}),$(document).keyup(function(e){KeyUp(e)}),Setup.scroll=function(){$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(e){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash);(a=a.length?a:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:a.offset().top},500,function(){var e=$(a);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})},$(Setup.scroll()),Setup.site=function(){Config.respond?gsap.set(".site",{display:Config.display}):Site.mobile.active||gsap.set(".site",{display:Config.display}),setTimeout(function(){gsap.set(Overlay.load.screen,{clearProps:"display"}),Site.tl.pause()},1e3)},$(Setup.site()),$(window).resize(Setup.site()),Start.browse=function(){Book.url?(Browse.book.links.map(function(e,a){Check.book.class(a),Browse.found.success&&gsap.set(a,BackgroundShade)}),Browse.chapter.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.chapter.books.filter(e,a):gsap.set(a,DisplayNone)}),Browse.page.books.map(function(e,a){Check.book.class(a),Browse.found.success?Browse.page.books.filter(e,a):gsap.set(a,DisplayNone)})):(Browse.chapter.books.map(function(e,a){Browse.chapter.books.filter(e,a)}),Browse.page.books.map(function(e,a){Browse.page.books.filter(e,a)}))},Site.isTheme||Body.isHome||Browse.able&&Start.browse();var AnimateChart=function(){$(Site.charts.list).map(function(e,a){var o=gsap.timeline({repeat:-1,repeatDelay:3}),t=$(a).find(".block.chart-bar"),s=$(t).children(Site.charts.pcent).children("span"),n=$(t).find(Site.charts.title);o.from(t,{duration:1,stagger:.2,height:0},"start").from(n,{delay:1,duration:.2,opacity:0},"start").from(n,{delay:1,duration:.8,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),s.map(function(a){var e=s[a].innerText,t={val:0};o.to(t,{val:e,duration:2,onUpdate:function(){var e=gsap.utils.snap(1,t.val);s[a].innerText=e}},"start")})})},AnimateNumbers=function(){$(Site.numbers).map(function(e,a){var t=a.innerText,o={val:0};gsap.timeline({repeat:-1,repeatDelay:3}).to(o,{val:t,duration:3,onUpdate:function(){var e=gsap.utils.snap(1,o.val);a.innerText=e}},"start")})},AnimatePies=function(){$(Site.pies.list).map(function(e,a){var l=gsap.timeline({repeat:-1,repeatDelay:3}),t=a.children;$(t).map(function(e,a){var t=$(a).children(Site.pies.pcent).children("span"),o=$(a).children(Site.pies.wrap),s=$(a).children(Site.pies.title),n=o.children(Site.pies.data),r=$(t).text(),i={val:0};l.to(i,{val:r,duration:.4*6,onUpdate:function(){var e=gsap.utils.snap(1,i.val);t.text(e)}},"start").from(s,{duration:.4*3,scrambleText:{chars:Site.scramble.chars,speed:Site.scramble.speed}},"start"),n.map(function(e,a){var t=$("g#data",a);0==e?l.from(t,{duration:.4,opacity:0},"start").from(t,{duration:.4*3,rotation:-180,transformOrigin:"center"},"start"):0<e&&l.from(t,{duration:.4*3,rotation:-90,transformOrigin:"center",delay:.4*1.5},"start").from(t,{duration:.4,opacity:0,delay:.4*1.5},"start")})})})};$(Site.scroller).map(function(e,a){var t=$(a)[0].classList[2];return new ScrollMagic.Scene({triggerElement:".block.stop#".concat(t)}).setTween(a,.1,{opacity:1}).addTo(controller)}),Artform.list=Object.keys(Color.artforms),Artform.clear=function(e){$(e).attr("class","block header title-artform"),$(Page.wrap+".title-artform").map(function(e,a){Contrast.reset(a)})},Artform.update=function(e,a){$(e).addClass("tag-"+a),$(Page.wrap+".title-artform").map(function(e,a){Contrast.check(a,".block.header",".block.header")})},Artform.header=function(){var a=".header.title-artform",t=gsap.timeline({repeat:-1});Artform.list.map(function(e){t.set(a,{opacity:1,onComplete:function(){Artform.update(a,e)}}).set(a,{clearProps:"all",delay:1.5,onComplete:function(){Artform.clear(a)}})})},Button.func.reset=function(e,a){var t=$(e).find(".button-title"),o=[t,$(e).find(".button-bg"),e];gsap.timeline().set(o,{clearProps:"all"}).set(t,{text:a})},Button.func.submit=function(e){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"Done",t=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],o=$(e).find(".button-title"),s=$(e).find(".button-bg"),n=[o,s,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(o,{color:Save.color}).set(n,{clearProps:"all"}).set([e,s],{backgroundColor:Color.green}).set(o,{text:a}).to(s,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}),t&&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 a=$(e).find(".button-title"),t=$(e).find(".button-bg");if(Save.text=$(e).find(".button-title").text(),Save.color=$(e).css("backgroundColor"),!UpdateIsLocked){var o=gsap.timeline();o.set(a,{text:"Adding"}).set(t,{backgroundColor:tinycolor(Save.color).darken(8)}).to(t,{right:0,duration:1}).set(a,{text:"Added"}).to(t,{duration:.5,backgroundColor:Color.green}),reset&&o.call(function(){Button.func.reset(e,Save.text)},"+=1")}};var ParseInputs=function(e,a){e.map(function(e){$(e).parsley(a)})},RequireInputs=function(e){ParseInputs(e,{required:!0})},ValidateSelects=function(e){ParseInputs(e,{min:1,errorMessage:"Please select an option"})},ValidateNumbers=function(e){ParseInputs(e,{type:"digits"})},ValidateText=function(e){ParseInputs(e,{minlength:5})},ValidateEmail=function(e){ParseInputs(e,{type:"email"})};Contrast.reset=function(e){var a={ratio:$(e).find(Site.access.ratio)};$(a.ratio).attr("class","block access-ratio")},Contrast.round=function(e){return Math.round(100*e)/100},Contrast.ratio=function(e,a){return Contrast.round(tinycolor.readability(e,a))},Contrast.check=function(e,a,t){var o={ratio:$(e).find(Site.access.ratio),color:tinycolor($(a,e).css("color")).toHexString(),backg:tinycolor($(t,e).css("background-color")).toHexString()},s={ratio:Contrast.ratio(o.color,o.backg)};$(o.ratio).text(s.ratio),4.5<=s.ratio?$(o.ratio).addClass(Site.access.best):3<=s.ratio?$(o.ratio).addClass(Site.access.good):$(o.ratio).addClass(Site.access.poor)},Respond.browse=function(){Browse.book.links.hover(function(){Browse.book.links.respond(this),Browse.chapter.books.map(function(e,a){Browse.chapter.books.respond(a)}),Browse.page.books.map(function(e,a){Browse.page.books.respond(a)})}),Browse.chapter.links.hover(function(){Browse.chapter.links.respond(this),Browse.page.chapters.map(function(e,a){Browse.page.chapters.respond(a)})}),Browse.page.links.hover(function(){Browse.page.links.respond(this)})},Site.isTheme||Body.isHome||Browse.able&&Respond.browse(),Respond.roller.default.func=function(){$(Roller.default.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.default.output).find(".item");Roller.default.tl(t,o)})},Respond.roller.morph.func=function(){$(Roller.morph.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).siblings(Roller.morph.output).find("path#output");Roller.morph.tl(t,o)})},Respond.roller.snap.func=function(){$(Roller.snap.input).map(function(e,a){var t=$(a).find(".item"),o=$(a).parents(".area.type-page").siblings(Roller.snap.output).find("svg.snap");Roller.snap.tl(t,o)})};var FocusInputs=["input","textarea"],SetFocus=function(e){Site.inFocus=e};FocusInputs.map(function(e){$(e).focusin(function(){SetFocus(!0)}).focusout(function(){SetFocus(!1)})}),Util.copy=function(e){var a=document.createElement("textarea");a.value=e,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)},Util.share=function(e){var a=$(e).parents(Site.page.share),t=$(a.context).find(Site.page.url).text();gsap.timeline();t=t.replace("index",""),$(a.context.classList).map(function(e,a){a.includes("type-")&&0}),Util.copy(t)};var WhatsOn={speed:function(e){return.03*e},slide:function(e){var a=$(".block.alert-content",e),t=$(".alert-feed",e),o=$(t).width()+100,s=$(".alert-clone",e);$(a).addClass("modify-grid");var n=gsap.timeline({defaults:{ease:"none"}}),r=gsap.timeline({repeat:-1,paused:!0,defaults:{ease:"none"}});r.to([t,s],{duration:WhatsOn.speed(o),x:-o}),n.to(a,{duration:WhatsOn.speed(20),paddingLeft:0}).call(function(){r.play()})},scroll:function(e){var a=$(".feed",e),t=$(a).height(),o=$(".clone",e);gsap.timeline({repeat:-1,defaults:{ease:"none"}}).to([a,o],{duration:WhatsOn.speed(t),y:-t})}},YouSaved=function(e){var a=$(".block.form-alert",e),t=tinycolor($(a).css("border-color")).toHexString(),o=tinycolor($(a).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10)}).set(a,{clearProps:"all",delay:.2}).set(a,{backgroundColor:tinycolor(o).darken(5),borderColor:tinycolor(t).darken(10),delay:.2}).to(a,{backgroundColor:o,borderColor:t,duration:.8,delay:.2})};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var Artform={},Body={},Book={},Chapter={},Color={},Contrast={},Form={},Overlay={},Page={},Print={},Require={},Roller={},Save={},Setup={},Share={},Site={},Start={},Util={},Validate={},Browse={book:{},chapter:{},page:{},found:{}},Check={book:{},chapter:{},page:{}},Respond={roller:{default:{},morph:{},snap:{}}};function Target(e){return document.querySelector(Overlay.load.wrap).children[e-1]}function SwitchOn(e){return{display:"block",fill:e}}function SwitchOff(){return{clearProps:"display",delay:Overlay.load.speed}}
|
1
|
+
"use strict";var Artform={},Body={},Book={},Chapter={},Color={},Contrast={},Form={},Overlay={},Page={},Print={},Require={},Roller={},Save={},Setup={},Share={},Site={},Start={},Util={},Validate={},Browse={book:{},chapter:{},page:{},found:{}},Check={book:{},chapter:{},page:{}},Respond={roller:{default:{},morph:{},snap:{}}},Button={func:{}};Book.is={},Page.is={};var SubmitIsLocked=!(Chapter.is={});function Target(e){return document.querySelector(Overlay.load.wrap).children[e-1]}function SwitchOn(e){return{display:"block",fill:e}}function SwitchOff(){return{clearProps:"display",delay:Overlay.load.speed}}(Color={system:"#6e46a0",brand:"#ff8200",supply:"#f00a0a",demo:"#005a9b",generic:"#fe5900",theatre:"#019fc6",talks:"#ff9000",music:"#dc3636",classical:"#bf8f3a",cinema:"#259d31",tours:"#718ab2",hire:"#412f79",members:"#5d91e5",art:"#f90082",shop:"#23D5B0",paradise:"#e8396c",artforall:"#f9ae00",park:"#009640",news:"#009fe3",dodgers:"#0092FF",green:"#259d31"}).artforms={theatre:Color.theatre,talks:Color.talks,music:Color.music,classical:Color.classical,cinema:Color.cinema,tours:Color.tours,hire:Color.hire,members:Color.members,art:Color.art},Overlay.mobile={screen:".area.overlay-mobile",bar:".bar.mobile"},Overlay.load={screen:".area.overlay-load",wrap:".wrap.overlay-load",speed:.3},Overlay.custom=[{name:"about",open:!1},{name:"browse",open:!1},{name:"search",open:!1}],Overlay.button="button.navigation",Overlay.exit=".exit",Page.wrap=".wrap.type-page",Page.get=function(e,t,a){var r=Page.wrap;return e&&(r+=".chapter-".concat(e)),t&&(r+=".title-".concat(t)),a&&(r+=".tag-".concat(a)),r},Roller.default={input:".list.roller.input.style-default",output:".list.roller.output.style-default"},Roller.morph={input:".list.roller.input.style-morph",output:"svg#morph"},Roller.snap={input:".list.roller.input.style-snap",output:".list.pies.style-snap"},Site.tl=gsap.timeline({repeat:-1}),Site.inFocus=!1,Site.access={ratio:".access-ratio",best:"best",good:"good",poor:"poor"},Site.scramble={chars:"1234567890%",speed:.6},Site.mobile={active:!0},Site.tablet={active:!1,width:768},Site.desktop={active:!1,width:1200},Site.topbar={lnk:".link.navigation"},Site.scroller=".item.scroller",Site.chapter={target:".wrap.type-chapter"},Site.page={artwork:".area.page-artwork",share:".util-share",url:".util-url",height:560},Site.rollers={input:".list.roller.input",output:".list.roller.output",morph:"svg#morph"},Site.charts={list:".block.chart-container",pcent:".block.chart-pcent-title",title:".block.chart-title"},Site.pies={list:".list.pies.style-spin",pcent:".title.pie-pcent",wrap:".block.pie-wrap",data:".block.pie-svg-data",title:".title.pie-title"},Site.numbers=".title.number-value",Site.mobile.query="screen and (max-width: ".concat(Site.tablet.width-1,"px)"),Site.tablet.query="screen and (min-width: ".concat(Site.tablet.width,"px) and (max-width: ").concat(Site.desktop.width-1,"px)"),Site.desktop.query="screen and (min-width: ".concat(Site.desktop.width,"px)"),enquire.register(Site.mobile.query,{match:function(){Site.mobile.active=!0,Site.tablet.active=!1,Site.desktop.active=!1}}),enquire.register(Site.tablet.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!0,Site.desktop.active=!1}}),enquire.register(Site.desktop.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!1,Site.desktop.active=!0}}),"theme"==Config.install&&(Site.isTheme=!0),"library"==Config.install&&(Site.isLibrary=!0),Config.share&&(Site.isShareable=!0);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: futuro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Heading
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -279,6 +279,7 @@ files:
|
|
279
279
|
- _sass/link/book.scss
|
280
280
|
- _sass/link/browse.scss
|
281
281
|
- _sass/link/navigation.scss
|
282
|
+
- _sass/link/scroller.scss
|
282
283
|
- _sass/list/pie.scss
|
283
284
|
- _sass/list/roller.scss
|
284
285
|
- _sass/list/scroller.scss
|
@@ -303,6 +304,7 @@ files:
|
|
303
304
|
- _sass/wrap/page.scss
|
304
305
|
- _sass/wrap/scroller.scss
|
305
306
|
- _sass/wrap/select.scss
|
307
|
+
- _sass/wrap/switch.scss
|
306
308
|
- _sass/wrap/text.scss
|
307
309
|
- assets/css/fallback.jpg
|
308
310
|
- assets/css/favicon.png
|
@@ -340,11 +342,14 @@ files:
|
|
340
342
|
- assets/js/footer/custom/5_Contrast.js
|
341
343
|
- assets/js/footer/custom/5_Respond.browse.js
|
342
344
|
- assets/js/footer/custom/5_Respond.roller.js
|
343
|
-
- assets/js/footer/custom/5_Switch.button.js
|
344
345
|
- assets/js/footer/custom/5_Switch.focus.js
|
345
346
|
- assets/js/footer/custom/5_Util.share.js
|
346
347
|
- assets/js/footer/custom/5_WhatsOn.js
|
347
348
|
- assets/js/footer/custom/5_YouSaved.js
|
349
|
+
- assets/js/footer/custom/5_button.func.reset.js
|
350
|
+
- assets/js/footer/custom/5_button.func.submit.js
|
351
|
+
- assets/js/footer/custom/5_button.func.switch.js
|
352
|
+
- assets/js/footer/custom/5_button.func.update.js
|
348
353
|
- assets/js/footer/custom/5_check.form.js
|
349
354
|
- assets/js/footer/vendor/gsap-draw.js
|
350
355
|
- assets/js/footer/vendor/gsap-morph.js
|
@@ -1,97 +0,0 @@
|
|
1
|
-
|
2
|
-
let Button = {
|
3
|
-
target : ".button-wrap.switch-button"
|
4
|
-
};
|
5
|
-
|
6
|
-
const ButtonSwitch = (e,type) => {
|
7
|
-
let text = $(e.target),
|
8
|
-
bg = text.siblings(".button-bg"),
|
9
|
-
btn = text.parent(),
|
10
|
-
all = [text,btn,bg];
|
11
|
-
|
12
|
-
let Text = {
|
13
|
-
dis : {
|
14
|
-
before : $(btn).siblings(".before"),
|
15
|
-
after : $(btn).siblings(".after")
|
16
|
-
},
|
17
|
-
dat : {
|
18
|
-
before : $(btn).parent().siblings().children(".before"),
|
19
|
-
after : $(btn).parent().siblings().children(".after")
|
20
|
-
}
|
21
|
-
};
|
22
|
-
|
23
|
-
let before = [Text.dis.before,Text.dat.before],
|
24
|
-
after = [Text.dis.after,Text.dat.after];
|
25
|
-
|
26
|
-
if (btn.hasClass("undo")) {
|
27
|
-
|
28
|
-
if (type === "down") {
|
29
|
-
|
30
|
-
gsap.set([btn,bg],{
|
31
|
-
clearProps : "all"
|
32
|
-
});
|
33
|
-
|
34
|
-
} else if (type === "up") {
|
35
|
-
|
36
|
-
$(btn).removeClass("undo");
|
37
|
-
|
38
|
-
gsap.set([before,after],{
|
39
|
-
clearProps : "all"
|
40
|
-
});
|
41
|
-
|
42
|
-
gsap.set(text,{
|
43
|
-
text : "Next"
|
44
|
-
});
|
45
|
-
}
|
46
|
-
|
47
|
-
|
48
|
-
} else {
|
49
|
-
|
50
|
-
if (type === "down") {
|
51
|
-
gsap.set([btn,bg],{
|
52
|
-
scale : 0.95
|
53
|
-
});
|
54
|
-
}
|
55
|
-
|
56
|
-
else if (type === "up") {
|
57
|
-
|
58
|
-
let tl = gsap.timeline();
|
59
|
-
|
60
|
-
tl
|
61
|
-
.to(before,{
|
62
|
-
duration : 0.2,
|
63
|
-
opacity : 0
|
64
|
-
})
|
65
|
-
.set([btn,bg],{
|
66
|
-
backgroundColor : Color.green
|
67
|
-
})
|
68
|
-
.set(text,{
|
69
|
-
text : "Undo"
|
70
|
-
})
|
71
|
-
.set(before,{
|
72
|
-
display : "none",
|
73
|
-
})
|
74
|
-
.set(after,{
|
75
|
-
display : "block"
|
76
|
-
})
|
77
|
-
.to(bg,{
|
78
|
-
duration : 0.5,
|
79
|
-
scaleX : 1.2,
|
80
|
-
scaleY : 1.3,
|
81
|
-
opacity : 0
|
82
|
-
})
|
83
|
-
.call(()=>{
|
84
|
-
$(btn).addClass("undo");
|
85
|
-
})
|
86
|
-
;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
$(Button.target)
|
92
|
-
.mousedown(function(e) {
|
93
|
-
ButtonSwitch(e,'down');
|
94
|
-
})
|
95
|
-
.mouseup(function(e) {
|
96
|
-
ButtonSwitch(e,'up');
|
97
|
-
});
|