futuro 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/artwork/animal/icon.svg +10 -0
- data/_includes/artwork/orwell/animal/flob.scss +5 -0
- data/_includes/artwork/orwell/animal/waldo.scss +45 -0
- data/_includes/html/assign/page.liquid +85 -0
- data/_includes/html/assign/site.liquid +88 -0
- data/_includes/html/layout/loop.liquid +32 -0
- data/_includes/html/layout/type.liquid +16 -0
- data/_includes/html/overlay/about.liquid +5 -2
- data/_includes/html/overlay/browse/book.liquid +14 -25
- data/_includes/html/overlay/browse/chapter.liquid +24 -19
- data/_includes/html/overlay/browse/page.liquid +50 -30
- data/_includes/html/overlay/browse.liquid +5 -5
- data/_includes/html/overlay/load.liquid +29 -9
- data/_includes/html/overlay/search.liquid +20 -12
- data/_includes/html/overlay/wrap.liquid +18 -0
- data/_includes/html/page/clippies.liquid +22 -0
- data/_includes/html/page/content/chart.liquid +8 -0
- data/_includes/html/page/content/header.liquid +42 -0
- data/_includes/html/page/content/loop/artwork/image.liquid +2 -0
- data/_includes/html/page/content/loop/artwork/video.liquid +4 -0
- data/_includes/html/page/content/loop/artwork.liquid +22 -0
- data/_includes/html/page/content/loop/chart/assign.liquid +30 -0
- data/_includes/html/page/content/loop/chart.liquid +38 -0
- data/_includes/html/page/content/loop/form/alert.liquid +14 -0
- data/_includes/html/page/content/loop/form/button.liquid +26 -0
- data/_includes/html/page/content/loop/form/callout.liquid +6 -0
- data/_includes/html/page/content/loop/form/checkbox.liquid +24 -0
- data/_includes/html/page/content/loop/form/date.liquid +197 -0
- data/_includes/html/page/content/loop/form/fee.liquid +9 -0
- data/_includes/html/page/content/loop/form/input.liquid +7 -0
- data/_includes/html/page/content/loop/form/item.liquid +38 -0
- data/_includes/html/page/content/loop/form/label.liquid +15 -0
- data/_includes/html/page/content/loop/form/legend.liquid +38 -0
- data/_includes/html/page/content/loop/form/message.liquid +6 -0
- data/_includes/html/page/content/loop/form/password.liquid +11 -0
- data/_includes/html/page/content/loop/form/radio.liquid +39 -0
- data/_includes/html/page/content/loop/form/select.liquid +22 -0
- data/_includes/html/page/content/loop/form/text.liquid +45 -0
- data/_includes/html/page/content/loop/form/textarea.liquid +18 -0
- data/_includes/html/page/content/loop/form/yousaved.liquid +10 -0
- data/_includes/html/page/content/loop/form.liquid +66 -0
- data/_includes/html/page/content/loop/header/back.liquid +6 -0
- data/_includes/html/page/content/loop/header/basket.liquid +8 -0
- data/_includes/html/page/content/loop/header/login.liquid +28 -0
- data/_includes/html/page/content/loop/header/logo.liquid +32 -0
- data/_includes/html/page/content/loop/header/search.liquid +16 -0
- data/_includes/html/page/content/loop/header/subheader.liquid +8 -0
- data/_includes/html/page/content/loop/header.liquid +18 -0
- data/_includes/html/page/content/loop/number.liquid +16 -0
- data/_includes/html/page/content/loop/pies.liquid +42 -0
- data/_includes/html/page/content/loop/roller/item.liquid +47 -0
- data/_includes/html/page/content/loop/roller.liquid +8 -0
- data/_includes/html/page/content/loop/screen/row.liquid +18 -0
- data/_includes/html/page/content/loop/screen/small.liquid +6 -0
- data/_includes/html/page/content/loop/screen/title.liquid +12 -0
- data/_includes/html/page/content/loop/screen.liquid +38 -0
- data/_includes/html/page/content/loop.liquid +10 -0
- data/_includes/html/page/content/more.liquid +10 -0
- data/_includes/html/page/content/roller.liquid +76 -0
- data/_includes/html/page/content.liquid +135 -0
- data/_includes/html/page/footnote.liquid +24 -0
- data/_includes/html/page/header.liquid +8 -34
- data/_includes/html/page/info.liquid +18 -23
- data/_includes/html/page/layout/home.liquid +7 -0
- data/_includes/html/page/layout/page.liquid +15 -24
- data/_includes/html/page/subtitle.liquid +1 -3
- data/_includes/html/page/title.liquid +18 -17
- data/_includes/html/page/topbar.liquid +16 -8
- data/_includes/html/page/{utils → util}/author.liquid +1 -1
- data/_includes/html/page/util/share.liquid +24 -0
- data/_includes/html/page/{utils → util}/update.liquid +1 -1
- data/_includes/html/page/util.liquid +28 -12
- data/_includes/html/search/loop.liquid +11 -0
- data/_includes/html/site/footer.liquid +10 -0
- data/_includes/html/site/header.liquid +10 -0
- data/_includes/html/site/scroller.liquid +68 -0
- data/_includes/svg/site/icon.liquid +17 -11
- data/_layouts/feed.html +37 -33
- data/_layouts/single.html +36 -31
- data/_sass/_bar.scss +1 -1
- data/_sass/_base.scss +10 -21
- data/_sass/_block.scss +7 -26
- data/_sass/_box.scss +1 -1
- data/_sass/_button.scss +2 -2
- data/_sass/_col.scss +2 -2
- data/_sass/_input.scss +14 -28
- data/_sass/_item.scss +20 -16
- data/_sass/_link.scss +42 -0
- data/_sass/_list.scss +21 -20
- data/_sass/_site.scss +3 -3
- data/_sass/_title.scss +74 -42
- data/_sass/area/book.scss +18 -0
- data/_sass/area/chapter.scss +15 -0
- data/_sass/area/content.scss +9 -0
- data/_sass/area/overlay.scss +50 -5
- data/_sass/area/page.scss +59 -20
- data/_sass/area/topbar.scss +5 -2
- data/_sass/block/chart.scss +44 -0
- data/_sass/block/custom.scss +9 -0
- data/_sass/block/form/alert.scss +17 -0
- data/_sass/block/form/checkbox.scss +42 -0
- data/_sass/block/form/header.scss +78 -0
- data/_sass/block/form/input.scss +51 -0
- data/_sass/block/form/item.scss +22 -0
- data/_sass/block/form/label.scss +15 -0
- data/_sass/block/form/legend.scss +70 -0
- data/_sass/block/form/login.scss +70 -0
- data/_sass/block/form/message.scss +9 -0
- data/_sass/block/form/password.scss +19 -0
- data/_sass/block/form/radio.scss +12 -0
- data/_sass/block/form/screen.scss +89 -0
- data/_sass/block/form/scroller.scss +8 -0
- data/_sass/block/form/search.scss +39 -0
- data/_sass/block/form/select.scss +49 -0
- data/_sass/block/form/subheader.scss +60 -0
- data/_sass/block/form/text.scss +20 -0
- data/_sass/block/form/title.scss +12 -0
- data/_sass/block/form.scss +17 -0
- data/_sass/block/navigation.scss +3 -3
- data/_sass/block/number.scss +9 -0
- data/_sass/block/pie.scss +14 -0
- data/_sass/block/results.scss +9 -5
- data/_sass/block/scroller.scss +12 -0
- data/_sass/block/stop.scss +0 -1
- data/_sass/block/util.scss +19 -17
- data/_sass/futuro.core.scss +74 -27
- data/_sass/helpers/extends/grid.scss +24 -0
- data/_sass/helpers/extends/layout.scss +27 -0
- data/_sass/helpers/extends.scss +22 -115
- data/_sass/helpers/mixins/layout.scss +11 -0
- data/_sass/helpers/mixins/mindsets.scss +0 -6
- data/_sass/helpers/mixins/patterns.scss +4 -4
- data/_sass/helpers/mixins/theme.scss +292 -210
- data/_sass/helpers/mixins.scss +1 -12
- data/_sass/helpers/themes.scss +10 -0
- data/_sass/helpers/variables.scss +55 -42
- data/_sass/title/overlay.scss +16 -17
- data/_sass/wrap/book.scss +1 -1
- data/_sass/wrap/browse.scss +26 -0
- data/_sass/wrap/chapter.scss +11 -1
- data/_sass/wrap/overlay.scss +54 -1
- data/_sass/wrap/page.scss +18 -1
- data/_sass/wrap/scroller.scss +1 -1
- data/assets/js/footer/custom/ActiveBook.js +10 -12
- data/assets/js/footer/custom/AnimateScroller.js +11 -0
- data/assets/js/footer/custom/Overlays.js +21 -21
- data/assets/js/footer/custom/RespondBrowse.js +80 -0
- data/assets/js/footer/custom/Settings.js +9 -5
- data/assets/js/footer/custom/SetupBrowse.js +115 -0
- data/assets/js/footer/custom/SetupHome.js +23 -6
- data/assets/js/footer/custom/SiteFunc.js +17 -11
- data/assets/js/footer/custom/StartBrowse.js +95 -59
- data/assets/js/footer/custom/SwitchFocus.js +6 -6
- data/assets/js/footer/custom/UtilShare.js +14 -8
- data/assets/js/footer/vendor/gsap-scramble.js +11 -0
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.footer.vendor.js +12 -0
- data/assets/js/futuro.header.custom.js +1 -1
- data/assets/js/header/custom/Color.js +39 -27
- data/assets/js/header/custom/Config.js +16 -0
- data/assets/js/header/custom/Overlay.js +21 -34
- data/assets/js/header/custom/Site.js +5 -0
- metadata +100 -38
- data/_includes/html/assign.liquid +0 -7
- data/_includes/html/filter/loop.liquid +0 -31
- data/_includes/html/filter/type.liquid +0 -31
- data/_includes/html/loop/artwork/book/number.liquid +0 -7
- data/_includes/html/loop/artwork/book/pies.liquid +0 -41
- data/_includes/html/loop/artwork/book/textbox.liquid +0 -16
- data/_includes/html/loop/artwork/book/video.liquid +0 -4
- data/_includes/html/loop/artwork/book.liquid +0 -38
- data/_includes/html/loop/artwork/docs.liquid +0 -31
- data/_includes/html/loop/search.liquid +0 -16
- data/_includes/html/overlay.liquid +0 -23
- data/_includes/html/page/artwork.liquid +0 -27
- data/_includes/html/page/layout/chapter.liquid +0 -32
- data/_includes/html/page/layout/custom.liquid +0 -79
- data/_includes/html/page/layout/panel.liquid +0 -15
- data/_includes/html/page/layout/tree.liquid +0 -15
- data/_includes/html/page/utils/share.liquid +0 -18
- data/_includes/svg/site/btn/search.svg +0 -1
- data/_sass/_area.scss +0 -52
- data/_sass/_lnk.scss +0 -32
- data/_sass/area/overlay/about.scss +0 -10
- data/_sass/area/overlay/browse.scss +0 -6
- data/_sass/area/overlay/load.scss +0 -10
- data/_sass/area/overlay/mobile.scss +0 -9
- data/_sass/area/overlay/search.scss +0 -6
- data/_sass/block/browse.scss +0 -35
- data/_sass/helpers/variables/patterns.scss +0 -10
- data/_sass/wrap/overlay/legacy.scss +0 -18
- data/_sass/wrap/overlay/load.scss +0 -4
- data/_sass/wrap/overlay/mobile.scss +0 -8
- data/_sass/wrap/overlay/search.scss +0 -4
- data/assets/js/footer/custom/ExpandBlock.js +0 -21
- data/assets/js/footer/custom/ScrollFunc.js +0 -41
- data/assets/js/footer/custom/SplitCode.js +0 -14
@@ -1,24 +1,41 @@
|
|
1
1
|
|
2
2
|
const SetupHome = () => {
|
3
3
|
|
4
|
-
if (
|
4
|
+
if (BodyIsHome) {
|
5
5
|
|
6
|
-
let tl = gsap.timeline({
|
6
|
+
let tl = gsap.timeline({
|
7
|
+
repeat : -1,
|
8
|
+
yoyo : true,
|
9
|
+
defaults : {
|
10
|
+
ease : "sine.inOut"
|
11
|
+
}
|
12
|
+
});
|
7
13
|
|
8
|
-
tl.fromTo(".area.book",{
|
14
|
+
tl.fromTo(".area.book",{
|
15
|
+
y : -5
|
16
|
+
},{
|
17
|
+
duration : 1,
|
18
|
+
y : 5
|
19
|
+
});
|
9
20
|
|
10
21
|
$(".wrap.home").slick(Config.slick);
|
11
22
|
|
12
23
|
$(".wrap.book").hover(
|
13
24
|
function() {
|
14
|
-
gsap.to(this,{
|
25
|
+
gsap.to(this,{
|
26
|
+
duration : 0.1,
|
27
|
+
y : -20
|
28
|
+
});
|
15
29
|
},
|
16
30
|
function() {
|
17
|
-
gsap.to(this,{
|
31
|
+
gsap.to(this,{
|
32
|
+
duration : 0.1,
|
33
|
+
y : 0
|
34
|
+
});
|
18
35
|
});
|
19
36
|
}
|
20
37
|
}
|
21
38
|
|
22
|
-
if (
|
39
|
+
if (SiteIsLibrary) {
|
23
40
|
$(SetupHome);
|
24
41
|
}
|
@@ -1,6 +1,4 @@
|
|
1
1
|
|
2
|
-
const isLibraryHome = Config.install == "library" && $(body).hasClass("type-home");
|
3
|
-
|
4
2
|
const SiteFunc = () => {
|
5
3
|
|
6
4
|
if (!Config.respond) {
|
@@ -11,16 +9,19 @@ const SiteFunc = () => {
|
|
11
9
|
|
12
10
|
// NOT Mobile
|
13
11
|
|
14
|
-
if (
|
12
|
+
if (SiteIsLibrary && BodyIsHome) {
|
15
13
|
|
16
14
|
// IS Library AND IS Home
|
17
15
|
|
18
|
-
gsap.set(site,{
|
16
|
+
gsap.set(site,{
|
17
|
+
display : "block"
|
18
|
+
});
|
19
19
|
|
20
20
|
} else {
|
21
21
|
|
22
|
-
gsap.set(site,{
|
23
|
-
|
22
|
+
gsap.set(site,{
|
23
|
+
display : Config.display
|
24
|
+
});
|
24
25
|
}
|
25
26
|
}
|
26
27
|
}
|
@@ -29,22 +30,27 @@ const SiteFunc = () => {
|
|
29
30
|
|
30
31
|
// IS Responsive
|
31
32
|
|
32
|
-
if (
|
33
|
+
if (SiteIsLibrary && BodyIsHome) {
|
33
34
|
|
34
35
|
// IS Library AND IS Home
|
35
36
|
|
36
|
-
gsap.set(site,{
|
37
|
+
gsap.set(site,{
|
38
|
+
display : "block"
|
39
|
+
});
|
37
40
|
|
38
41
|
} else {
|
39
42
|
|
40
|
-
gsap.set(site,{
|
41
|
-
|
43
|
+
gsap.set(site,{
|
44
|
+
display : Config.display
|
45
|
+
});
|
42
46
|
}
|
43
47
|
}
|
44
48
|
|
45
49
|
setTimeout(function() {
|
46
50
|
|
47
|
-
gsap.set(Overlay.load.screen,{
|
51
|
+
gsap.set(Overlay.load.screen,{
|
52
|
+
clearProps : "display"
|
53
|
+
});
|
48
54
|
|
49
55
|
SiteTl.pause();
|
50
56
|
|
@@ -1,74 +1,110 @@
|
|
1
1
|
|
2
2
|
const StartBrowse = () => {
|
3
|
-
let book = $(".block.browse-lnk", BrowseScreen.book.col)[0],
|
4
|
-
chapter = $(".block.browse-chunk", BrowseScreen.chapter.col)[0],
|
5
|
-
page = $(".block.browse-chunk", BrowseScreen.page.col)[0],
|
6
|
-
pChild = $(page)[0].children[0],
|
7
|
-
bShade = $(book)[0].children[0],
|
8
|
-
cShade = $(chapter)[0].children[0].children[0],
|
9
|
-
pShade = $(pChild)[0].children[0].children[0],
|
10
|
-
tl = gsap.timeline();
|
11
|
-
|
12
|
-
tl
|
13
|
-
.set(BrowseScreen.chunk,{display:"none"})
|
14
|
-
.set([chapter,page,pChild],{display:"block"})
|
15
|
-
.set([bShade,cShade,pShade],{backgroundColor:shade})
|
16
|
-
;
|
17
|
-
}
|
18
3
|
|
19
|
-
|
20
|
-
let label = $(e.target)[0].classList[2].slice(5),
|
21
|
-
chapter = $(BrowseScreen.chunk + "." + label, BrowseScreen.chapter.col),
|
22
|
-
page = $(BrowseScreen.chunk + "." + label, BrowseScreen.page.col),
|
23
|
-
pChild = $(page)[0].children[0],
|
24
|
-
cShade = $(chapter)[0].children[0].children[0],
|
25
|
-
pShade = $(pChild)[0].children[0].children[0],
|
26
|
-
tl = gsap.timeline();
|
27
|
-
|
28
|
-
tl
|
29
|
-
.set(BrowseScreen.chunk,{display:"none"})
|
30
|
-
.set([chapter,page,pChild],{display:"block"})
|
31
|
-
.set([BrowseScreen.book.lnk,BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"})
|
32
|
-
.set([$(e.target),cShade,pShade],{backgroundColor:shade});
|
33
|
-
}
|
4
|
+
BookLinks.each(function(index,value) {
|
34
5
|
|
35
|
-
|
36
|
-
let aLabel = $(e.target)[0].classList[2].slice(5),
|
37
|
-
bLabel = $(e.target)[0].classList[3].slice(8),
|
38
|
-
cChunk = $(BrowseScreen.chunk + "." + aLabel, BrowseScreen.chapter.col),
|
39
|
-
pChunkA = $(BrowseScreen.chunk + "." + aLabel, BrowseScreen.page.col),
|
40
|
-
pChunkB = $(BrowseScreen.chunk + "." + bLabel, pChunkA),
|
41
|
-
pChunkBKid = $(pChunkB)[0].children[0].children[0],
|
42
|
-
tl = gsap.timeline();
|
43
|
-
|
44
|
-
tl
|
45
|
-
.set(BrowseScreen.chunk,{display:"none"})
|
46
|
-
.set([cChunk,pChunkA,pChunkB],{display:"block"})
|
47
|
-
.set([BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"})
|
48
|
-
.set([$(e.target),pChunkBKid],{backgroundColor:shade});
|
49
|
-
}
|
6
|
+
CheckBookClass(value);
|
50
7
|
|
51
|
-
|
52
|
-
let tl = gsap.timeline();
|
8
|
+
if (Found) {
|
53
9
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
10
|
+
gsap.set(value,BackgroundShade);
|
11
|
+
|
12
|
+
}
|
13
|
+
|
14
|
+
});
|
15
|
+
|
16
|
+
ChapterBooks.each(function(index,value) {
|
17
|
+
|
18
|
+
CheckBookClass(value);
|
19
|
+
|
20
|
+
if (Found) {
|
21
|
+
|
22
|
+
gsap.set(value,ClearDisplay);
|
23
|
+
|
24
|
+
$(value.children).each(function(index,value) {
|
25
|
+
|
26
|
+
CheckChapterClass(value);
|
27
|
+
|
28
|
+
if (Found) {
|
29
|
+
|
30
|
+
gsap.set(value,BackgroundShade);
|
31
|
+
|
32
|
+
}
|
33
|
+
|
34
|
+
});
|
35
|
+
|
36
|
+
if (ChapterNotFound) {
|
37
|
+
|
38
|
+
gsap.set(value.children[0],BackgroundShade);
|
39
|
+
|
40
|
+
}
|
41
|
+
|
42
|
+
} else {
|
43
|
+
|
44
|
+
gsap.set(value,DisplayNone);
|
45
|
+
|
46
|
+
}
|
47
|
+
|
48
|
+
});
|
49
|
+
|
50
|
+
PageBooks.each(function(index,value) {
|
51
|
+
|
52
|
+
CheckBookClass(value);
|
53
|
+
|
54
|
+
if(Found) {
|
55
|
+
|
56
|
+
gsap.set(value,ClearDisplay);
|
57
|
+
|
58
|
+
$(value.children).each(function(index,value) {
|
59
|
+
|
60
|
+
CheckChapterClass(value);
|
61
|
+
|
62
|
+
if (Found) {
|
63
|
+
|
64
|
+
gsap.set(value,ClearDisplay);
|
65
|
+
|
66
|
+
$(value.children).each(function(index,value) {
|
67
|
+
|
68
|
+
CheckPageClass(value);
|
69
|
+
|
70
|
+
if (Found) {
|
71
|
+
|
72
|
+
gsap.set(value,BackgroundShade);
|
73
|
+
|
74
|
+
}
|
58
75
|
|
59
|
-
|
76
|
+
})
|
60
77
|
|
61
|
-
|
78
|
+
if (PageNotFound) {
|
62
79
|
|
63
|
-
|
80
|
+
gsap.set(value.children[0],BackgroundShade);
|
81
|
+
|
82
|
+
}
|
83
|
+
|
84
|
+
} else {
|
85
|
+
|
86
|
+
gsap.set(value,DisplayNone);
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
});
|
91
|
+
|
92
|
+
if (ChapterNotFound) {
|
93
|
+
|
94
|
+
gsap.set(value.children[0],ClearDisplay);
|
95
|
+
|
96
|
+
gsap.set(value.children[0].children[0],BackgroundShade);
|
64
97
|
|
65
|
-
if (BrowseScreen.data > 0) {
|
66
|
-
StartBrowse();
|
67
|
-
$(BrowseScreen.book.lnk).hover(function(e){ HoverBook(e); });
|
68
|
-
$(BrowseScreen.chapter.lnk).hover(function(e){ HoverChap(e); });
|
69
|
-
$(BrowseScreen.page.lnk).hover(function(e){ HoverPage(e); });
|
70
98
|
}
|
99
|
+
|
100
|
+
} else {
|
101
|
+
|
102
|
+
gsap.set(value,DisplayNone);
|
103
|
+
|
71
104
|
}
|
105
|
+
|
72
106
|
});
|
73
107
|
|
74
108
|
}
|
109
|
+
|
110
|
+
if (!SiteIsTheme) { if (!BodyIsHome) { if (Browseable) { StartBrowse(); } } }
|
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
2
|
const SwitchFocus = () => {
|
3
3
|
|
4
|
-
|
5
|
-
Site.focus = true;
|
6
|
-
});
|
4
|
+
let target = "input,textarea";
|
7
5
|
|
8
|
-
|
9
|
-
Site.focus =
|
10
|
-
}
|
6
|
+
const SetFocus = (focus) => {
|
7
|
+
Site.focus = focus;
|
8
|
+
}
|
9
|
+
|
10
|
+
$(target).focusin(SetFocus(true)).focusout(SetFocus(false));
|
11
11
|
}
|
12
12
|
|
13
13
|
$(SwitchFocus);
|
@@ -23,15 +23,21 @@ const UtilShare = e => {
|
|
23
23
|
UtilCopy(url);
|
24
24
|
|
25
25
|
tl
|
26
|
-
.set(title,{
|
27
|
-
|
28
|
-
|
26
|
+
.set(title,{
|
27
|
+
text : 'Copied!'
|
28
|
+
})
|
29
|
+
.to(title,{
|
30
|
+
duration : 0.3,
|
31
|
+
opacity : 0
|
32
|
+
},'+=0.6')
|
33
|
+
.set(title,{
|
34
|
+
text : reset,
|
35
|
+
clearProps : 'all'
|
36
|
+
},'+=0.3');
|
29
37
|
}
|
30
38
|
|
31
|
-
if (
|
32
|
-
if (
|
33
|
-
$(
|
34
|
-
$(Site.page.share).click(UtilShare);
|
35
|
-
});
|
39
|
+
if (!SiteIsTheme) {
|
40
|
+
if (SiteIsShareable) {
|
41
|
+
$(Site.page.share).click(UtilShare);
|
36
42
|
}
|
37
43
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*!
|
2
|
+
* ScrambleTextPlugin 3.0.5
|
3
|
+
* https://greensock.com
|
4
|
+
*
|
5
|
+
* @license Copyright 2020, GreenSock. All rights reserved.
|
6
|
+
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
|
7
|
+
* @author: Jack Doyle, jack@greensock.com
|
8
|
+
*/
|
9
|
+
|
10
|
+
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var n=/(^\s+|\s+$)/g,r=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F){if(F&&(D=D.replace(n,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var C,E,e=[],t=D.length,i=0;i<t;i++)(55296<=(E=D.charAt(i)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(i+1)&&D.charCodeAt(i+1)<=65039)&&(C=((D.substr(i,12).split(r)||[])[1]||"").length||2,E=D.substr(i,C),i+=C-(e.emoji=1)),e.push(">"===E?">":"<"===E?"<":E);return e}var s=(CharSet.prototype.grow=function grow(D){for(var u=0;u<20;u++)this.sets[u]+=F(D-this.length,this.chars);this.length=D},CharSet);function CharSet(D){this.chars=emojiSafeSplit(D),this.sets=[],this.length=50;for(var u=0;u<20;u++)this.sets[u]=F(80,this.chars)}function i(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}function p(){a=u=i()}var u,a,B=/\s+/g,F=function _scrambleText(D,u){for(var F=u.length,C="";-1<--D;)C+=u[~~(Math.random()*F)];return C},C="ABCDEFGHIJKLMNOPQRSTUVWXYZ",E=C.toLowerCase(),l={upperCase:new s(C),lowerCase:new s(E),upperAndLowerCase:new s(C+E)},e={version:"3.0.5",name:"scrambleText",register:function register(D){u=D,p()},init:function init(D,u,F){if(a||p(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,this.prop){this.target=D,"object"!=typeof u&&(u={text:u});var C,E,e,t,i=u.text||u.value,n=!1!==u.trim,r=this;return r.delimiter=C=u.delimiter||"",r.original=emojiSafeSplit(getText(D).replace(B," ").split(" ").join(""),C,n),"{original}"!==i&&!0!==i&&null!=i||(i=r.original.join(C)),r.text=emojiSafeSplit((i||"").replace(B," "),C,n),r.hasClass=!(!u.newClass&&!u.oldClass),r.newClass=u.newClass,r.oldClass=u.oldClass,t=""===C,r.textHasEmoji=t&&!!r.text.emoji,r.charsHaveEmoji=!!u.chars&&!!emojiSafeSplit(u.chars).emoji,r.length=t?r.original.length:r.original.join(C).length,r.lengthDif=(t?r.text.length:r.text.join(C).length)-r.length,r.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",r.charSet=e=l[u.chars||"upperCase"]||new s(u.chars),r.speed=.05/(u.speed||1),r.prevScrambleTime=0,r.setIndex=20*Math.random()|0,(E=r.length+Math.max(r.lengthDif,0))>e.length&&e.grow(E),r.chars=e.sets[r.setIndex],r.revealDelay=u.revealDelay||0,r.tweenLength=!1!==u.tweenLength,r.tween=F,r.rightToLeft=!!u.rightToLeft,r._props.push("scrambleText","text"),1}},render:function render(D,u){var F,C,E,e,t,i,n,r,s,a=u.target,B=u.prop,l=u.text,o=u.delimiter,A=u.tween,h=u.prevScrambleTime,p=u.revealDelay,f=u.setIndex,g=u.chars,c=u.charSet,d=u.length,m=u.textHasEmoji,x=u.charsHaveEmoji,S=u.lengthDif,j=u.tweenLength,w=u.oldClass,v=u.newClass,b=u.rightToLeft,T=u.fillChar,y=u.speed,L=u.original,_=u.hasClass,M=l.length,H=A._time,I=H-h;p&&(A._from&&(H=A._dur-H),D=0===H?0:H<p?1e-6:H===A._dur?1:A._ease((H-p)/(A._dur-p))),D<0?D=0:1<D&&(D=1),b&&(D=1-D),F=~~(D*M+.5),e=D?((y<I||I<-y)&&(u.setIndex=f=(f+(19*Math.random()|0))%20,u.chars=c.sets[f],u.prevScrambleTime+=I),g):L.join(o),e=b?1!==D||!A._from&&"isFromStart"!==A.data?(n=l.slice(F).join(o),E=x?emojiSafeSplit(e).slice(0,d+(j?1-D*D*D:1)*S-(m?emojiSafeSplit(n):n).length+.5|0).join(""):e.substr(0,d+(j?1-D*D*D:1)*S-(m?emojiSafeSplit(n):n).length+.5|0),n):(E="",L.join(o)):(E=l.slice(0,F).join(o),C=(m?emojiSafeSplit(E):E).length,x?emojiSafeSplit(e).slice(C,d+(j?1-(D=1-D)*D*D*D:1)*S+.5|0).join(""):e.substr(C,d+(j?1-(D=1-D)*D*D*D:1)*S-C+.5|0)),n=_?((t=(r=b?w:v)&&0!=F)?"<span class='"+r+"'>":"")+E+(t?"</span>":"")+((i=(s=b?v:w)&&F!==M)?"<span class='"+s+"'>":"")+o+e+(i?"</span>":""):E+o+e,a[B]=" "===T&&~n.indexOf(" ")?n.split(" ").join(" "):n}};e.emojiSafeSplit=emojiSafeSplit,e.getText=getText,i()&&u.registerPlugin(e),D.ScrambleTextPlugin=e,D.default=e;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}});
|
11
|
+
//# sourceMappingURL=ScrambleTextPlugin.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var Browseable,BodyIsHome,body="body",site=".site",shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller,BodyClasses=$(body)[0].classList;$(body).hasClass("type-home")&&(BodyIsHome=!0),SiteIsTheme||(Browseable=$(".wrap.type-page").length);var PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,a=Site.desktop.width-e+"px",o=100/Site.desktop.width*e+"%";$(".width").html(a),gsap.set(Overlay.mobile.bar,{width:o})},CheckWidth=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}),PrintWidth())};Config.respond||($(CheckWidth),$(window).resize(CheckWidth));var SplitPath=window.location.pathname.split("/"),BookLinks=$(".link.browse-book",".wrap.browse-book"),ChapterBooks=$(".block.browse-book",".wrap.browse-chapter"),ChapterLinks=$(".link.browse-chapter",".wrap.browse-chapter"),PageBooks=$(".block.browse-book",".wrap.browse-page"),PageChapters=$(".block.browse-chapter",".wrap.browse-page"),PageLinks=$(".link.browse-page",".wrap.browse-page"),BackgroundShade={background:shade},ClearDisplay={clearProps:"display"},ClearBackground={clearProps:"background"},DisplayNone={display:"none"},BookClass="",BookNotFound=!0,ChapterClass="",ChapterNotFound=!0,PageClass="",PageNotFound=!0,Found="";$(SplitPath).each(function(e,a){if(1==e)BookClass="book-"+a;else if(2==e){ChapterClass="chapter-"+a}else if(3==e){PageClass="title-"+a}});var StartsWith=function(e,a){"book"==a?e.startsWith("book-")&&(BookClass=e):e.startsWith("chapter-")&&(ChapterClass=e)},CreateMatch=function(e,a){var o=1<arguments.length&&void 0!==a?a:"book";$(e.classList).each(function(e,a){StartsWith(a,o)})},CheckBookClass=function(e){Found=!1,$(e.classList).each(function(e,a){a.startsWith("book-")&&BookClass==a&&(BookNotFound=!(Found=!0))})},CheckChapterClass=function(e){Found=!1,$(e.classList).each(function(e,a){a.startsWith("chapter-")&&ChapterClass==a&&(ChapterNotFound=!(Found=!0))})},CheckPageClass=function(e){Found=!1,$(e.classList).each(function(e,a){a.startsWith("title-")&&PageClass==a&&(PageNotFound=!(Found=!0))})},IfFound=function(e){Found?gsap.set(e,ClearDisplay):gsap.set(e,DisplayNone)},ActiveBook=function(){if(!BodyIsHome){var t="";$(BodyClasses).each(function(e,a){if(a.startsWith("book-")){t=a.slice(5);var o=$("button",Site.topbar.lnk+"."+t);gsap.set(o,{borderBottom:"3px solid"})}})}};SiteIsTheme||$(ActiveBook),$(".item.scroller").each(function(e,a){var o=$(a)[0].classList[2],t="#".concat(o,"-").concat(o),s=".item.scroller.".concat(o);return new ScrollMagic.Scene({triggerElement:t}).setTween(s,.1,{opacity:1}).addTo(controller)});var ChangeScreen=function(e,a,o){"close"==o?(gsap.set(body,{clearProps:"overflow"}),gsap.set(".area.overlay-"+Overlay.custom[e].name,{clearProps:"display"}),Overlay.custom[e].open=!1):(gsap.set(body,{overflow:"hidden"}),gsap.set(".area.overlay-"+Overlay.custom[e].name,{display:Config.display}),Overlay.custom[e].open=!0)},BuildScreens=function(e,a){var o=Overlay.button+"."+a.name,t=Overlay.exit+"."+a.name;$(o).click(function(){ChangeScreen(e,a,"open")}),$(t).click(function(){ChangeScreen(e,a,"close")})},KeyUp=function(o){27==o.keyCode&&$(Overlay.custom).each(function(e,a){Overlay.custom[e].open&&ChangeScreen(e,a,"close")}),65==o.keyCode&&$(Overlay.custom).each(function(e,a){Overlay.custom[0].open||(ChangeScreen(0,a,"open"),console.log(o.keyCode))}),66==o.keyCode&&$(Overlay.custom).each(function(e,a){Overlay.custom[1].open||ChangeScreen(1,a,"open")}),83==o.keyCode&&$(Overlay.custom).each(function(e,a){Overlay.custom[2].open||ChangeScreen(2,a,"open")})};$(function(){$(Overlay.custom).each(function(e,a){BuildScreens(e,a)})}),$(document).keyup(function(e){Site.focus||KeyUp(e)});var RespondBrowse=function(){BookLinks.hover(function(e){CreateMatch(this),gsap.set(BookLinks,ClearBackground),gsap.set(this,BackgroundShade),CheckBookClass(this),ChapterBooks.each(function(e,a){CheckBookClass(a),IfFound(a),gsap.set(a.children,ClearBackground),gsap.set(a.children[0],BackgroundShade)}),PageBooks.each(function(e,a){CheckBookClass(a),IfFound(a),gsap.set(a.children,DisplayNone),gsap.set(a.children[0],ClearDisplay),gsap.set(a.children[0].children,ClearBackground),gsap.set(a.children[0].children[0],BackgroundShade)})}),ChapterLinks.hover(function(e){var a=this.parentElement;CreateMatch(a,"book"),CreateMatch(this,"chapter"),gsap.set(ChapterLinks,ClearBackground),gsap.set(this,BackgroundShade),PageChapters.each(function(e,a){CheckChapterClass(a),IfFound(a),gsap.set(a.children,ClearBackground),gsap.set(a.children[0],BackgroundShade)})}),PageLinks.hover(function(e){gsap.set(PageLinks,ClearBackground),gsap.set(this,BackgroundShade)})};SiteIsTheme||BodyIsHome||Browseable&&RespondBrowse();var SetupHome=function(){BodyIsHome&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".area.book",{y:-5},{duration:1,y:5}),$(".wrap.home").slick(Config.slick),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};SiteIsLibrary&&$(SetupHome);var SiteFunc=function(){Config.respond?SiteIsLibrary&&BodyIsHome?gsap.set(site,{display:"block"}):gsap.set(site,{display:Config.display}):Site.mobile.active||(SiteIsLibrary&&BodyIsHome?gsap.set(site,{display:"block"}):gsap.set(site,{display:Config.display})),setTimeout(function(){gsap.set(Overlay.load.screen,{clearProps:"display"}),SiteTl.pause()},1e3)};$(SiteFunc),$(window).resize(SiteFunc);var SmoothScroll=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()}))}})};$(SmoothScroll);var StartBrowse=function(){BookLinks.each(function(e,a){CheckBookClass(a),Found&&gsap.set(a,BackgroundShade)}),ChapterBooks.each(function(e,a){CheckBookClass(a),Found?(gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){CheckChapterClass(a),Found&&gsap.set(a,BackgroundShade)}),ChapterNotFound&&gsap.set(a.children[0],BackgroundShade)):gsap.set(a,DisplayNone)}),PageBooks.each(function(e,a){CheckBookClass(a),Found?(gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){CheckChapterClass(a),Found?(gsap.set(a,ClearDisplay),$(a.children).each(function(e,a){CheckPageClass(a),Found&&gsap.set(a,BackgroundShade)}),PageNotFound&&gsap.set(a.children[0],BackgroundShade)):gsap.set(a,DisplayNone)}),ChapterNotFound&&(gsap.set(a.children[0],ClearDisplay),gsap.set(a.children[0].children[0],BackgroundShade))):gsap.set(a,DisplayNone)})};SiteIsTheme||BodyIsHome||Browseable&&StartBrowse();var Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,a){var o=$(e.target),t=o.siblings(".button-bg"),s=o.parent(),n={dis:{before:$(s).siblings(".before"),after:$(s).siblings(".after")},dat:{before:$(s).parent().siblings().children(".before"),after:$(s).parent().siblings().children(".after")}},i=[n.dis.before,n.dat.before],r=[n.dis.after,n.dat.after];if(s.hasClass("undo"))"down"===a?gsap.set([s,t],{clearProps:"all"}):"up"===a&&($(s).removeClass("undo"),gsap.set([i,r],{clearProps:"all"}),gsap.set(o,{text:"Next"}));else if("down"===a)gsap.set([s,t],{scale:.95});else if("up"===a){gsap.timeline().to(i,{duration:.2,opacity:0}).set([s,t],{backgroundColor:Color.green}).set(o,{text:"Undo"}).set(i,{display:"none"}).set(r,{display:"block"}).to(t,{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 SwitchFocus=function(){function e(e){Site.focus=e}$("input,textarea").focusin(e(!0)).focusout(e(!1))};$(SwitchFocus);var UtilCopy=function(e){var a=document.createElement("textarea");a.value=e,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)},UtilShare=function(e){var a=$(e.target).parents(Site.page.share),o=$(a)[0].classList[2],t=$(a).children(Site.page.url).text().replace("index",""),s=$(a)[0].children[1],n=gsap.timeline(),i="";"page"==o&&(i="Copy page"),UtilCopy(t),n.set(s,{text:"Copied!"}).to(s,{duration:.3,opacity:0},"+=0.6").set(s,{text:i,clearProps:"all"},"+=0.3")};SiteIsTheme||SiteIsShareable&&$(Site.page.share).click(UtilShare);
|
@@ -50,6 +50,18 @@ padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){va
|
|
50
50
|
* @author: Jack Doyle, jack@greensock.com
|
51
51
|
*/
|
52
52
|
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a,b=Math.PI,c=b/180,d=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,e=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,f=/(^[#\.][a-z]|[a-y][a-z])/gi,g=/[achlmqstvz]/gi,h=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,i=Math.atan2,j=Math.cos,k=Math.sin,l=Math.sqrt,m=2*b,n=.3*b,o=.7*b,p=1e20,q=_gsScope._gsDefine.globals.TweenLite,r=function(a){_gsScope.console&&console.log(a)},s=function(a,d,e,f,g,h,i,n,o){if(a!==n||d!==o){e=Math.abs(e),f=Math.abs(f);var p=g%360*c,q=j(p),r=k(p),s=(a-n)/2,t=(d-o)/2,u=q*s+r*t,v=-r*s+q*t,w=u*u,x=v*v,y=w/(e*e)+x/(f*f);y>1&&(e=l(y)*e,f=l(y)*f);var z=e*e,A=f*f,B=(z*A-z*x-A*w)/(z*x+A*w);0>B&&(B=0);var C=(h===i?-1:1)*l(B),D=C*(e*v/f),E=C*-(f*u/e),F=(a+n)/2,G=(d+o)/2,H=F+(q*D-r*E),I=G+(r*D+q*E),J=(u-D)/e,K=(v-E)/f,L=(-u-D)/e,M=(-v-E)/f,N=J*J+K*K,O=(0>K?-1:1)*Math.acos(J/l(N)),P=(0>J*M-K*L?-1:1)*Math.acos((J*L+K*M)/l(N*(L*L+M*M)));isNaN(P)&&(P=b),!i&&P>0?P-=m:i&&0>P&&(P+=m),O%=m,P%=m;var Q,R=Math.ceil(Math.abs(P)/(m/4)),S=[],T=P/R,U=4/3*k(T/2)/(1+j(T/2)),V=q*e,W=r*e,X=r*-f,Y=q*f;for(Q=0;R>Q;Q++)g=O+Q*T,u=j(g),v=k(g),J=j(g+=T),K=k(g),S.push(u-U*v,v+U*u,J+U*K,K-U*J,J,K);for(Q=0;Q<S.length;Q+=2)u=S[Q],v=S[Q+1],S[Q]=u*V+v*X+H,S[Q+1]=u*W+v*Y+I;return S[Q-2]=n,S[Q-1]=o,S}},t=function(a){var b,c,e,f,g,i,j,k,l,m,n,o,p,q=(a+"").replace(h,function(a){var b=+a;return 1e-4>b&&b>-1e-4?0:b}).match(d)||[],t=[],u=0,v=0,w=2/3,x=q.length,y=0,z="ERROR: malformed path: "+a,A=function(a,b,c,d){m=(c-a)/3,n=(d-b)/3,j.push(a+m,b+n,c-m,d-n,c,d)};if(!a||!isNaN(q[0])||isNaN(q[1]))return r(z),t;for(b=0;x>b;b++)if(p=g,isNaN(q[b])?(g=q[b].toUpperCase(),i=g!==q[b]):b--,e=+q[b+1],f=+q[b+2],i&&(e+=u,f+=v),b||(k=e,l=f),"M"===g)j&&(j.length<8?t.length-=1:y+=j.length),u=k=e,v=l=f,j=[e,f],t.push(j),b+=2,g="L";else if("C"===g)j||(j=[0,0]),i||(u=v=0),j.push(e,f,u+1*q[b+3],v+1*q[b+4],u+=1*q[b+5],v+=1*q[b+6]),b+=6;else if("S"===g)m=u,n=v,("C"===p||"S"===p)&&(m+=u-j[j.length-4],n+=v-j[j.length-3]),i||(u=v=0),j.push(m,n,e,f,u+=1*q[b+3],v+=1*q[b+4]),b+=4;else if("Q"===g)m=u+(e-u)*w,n=v+(f-v)*w,i||(u=v=0),u+=1*q[b+3],v+=1*q[b+4],j.push(m,n,u+(e-u)*w,v+(f-v)*w,u,v),b+=4;else if("T"===g)m=u-j[j.length-4],n=v-j[j.length-3],j.push(u+m,v+n,e+(u+1.5*m-e)*w,f+(v+1.5*n-f)*w,u=e,v=f),b+=2;else if("H"===g)A(u,v,u=e,v),b+=1;else if("V"===g)A(u,v,u,v=e+(i?v-u:0)),b+=1;else if("L"===g||"Z"===g)"Z"===g&&(e=k,f=l,j.closed=!0),("L"===g||Math.abs(u-e)>.5||Math.abs(v-f)>.5)&&(A(u,v,e,f),"L"===g&&(b+=2)),u=e,v=f;else if("A"===g){if(o=s(u,v,+q[b+1],+q[b+2],+q[b+3],+q[b+4],+q[b+5],(i?u:0)+1*q[b+6],(i?v:0)+1*q[b+7]))for(c=0;c<o.length;c++)j.push(o[c]);u=j[j.length-2],v=j[j.length-1],b+=7}else r(z);return b=j.length,6>b?(t.pop(),b=0):j[0]===j[b-2]&&j[1]===j[b-1]&&(j.closed=!0),t.totalPoints=y+b,t},u=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q=0,r=.999999,s=a.length,t=b/((s-2)/6);for(o=2;s>o;o+=6)for(q+=t;q>r;)c=a[o-2],d=a[o-1],e=a[o],f=a[o+1],g=a[o+2],h=a[o+3],i=a[o+4],j=a[o+5],p=1/((Math.floor(q)||1)+1),k=c+(e-c)*p,m=e+(g-e)*p,k+=(m-k)*p,m+=(g+(i-g)*p-m)*p,l=d+(f-d)*p,n=f+(h-f)*p,l+=(n-l)*p,n+=(h+(j-h)*p-n)*p,a.splice(o,4,c+(e-c)*p,d+(f-d)*p,k,l,k+(m-k)*p,l+(n-l)*p,m,n,g+(i-g)*p,h+(j-h)*p),o+=6,s+=6,q--;return a},v=function(a,b){var c,d,e,f="",g=" ",h=a.length,i=Math.pow(10,b||2);for(d=0;d<a.length;d++){for(e=a[d],h=e.length,f+="M"+(e[0]*i|0)/i+g+(e[1]*i|0)/i+" C",c=2;h>c;c++)f+=(e[c]*i|0)/i+g;e.closed&&(f+="z")}return f},w=function(a){for(var b=[],c=a.length-1,d=0;--c>-1;)b[d++]=a[c],b[d++]=a[c+1],c--;for(c=0;d>c;c++)a[c]=b[c];a.reversed=!a.reversed},x=function(a){var b,c=a.length,d=0,e=0;for(b=0;c>b;b++)d+=a[b++],e+=a[b];return[d/(c/2),e/(c/2)]},y=function(a){var b,c,d,e=a.length,f=a[0],g=f,h=a[1],i=h;for(d=6;e>d;d+=6)b=a[d],c=a[d+1],b>f?f=b:g>b&&(g=b),c>h?h=c:i>c&&(i=c);return a.centerX=(f+g)/2,a.centerY=(h+i)/2,a.size=(f-g)*(h-i)},z=function(a,b){b=b||3;for(var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=a.length,t=a[0][0],u=t,v=a[0][1],w=v,x=1/b;--s>-1;)for(g=a[s],c=g.length,f=6;c>f;f+=6)for(k=g[f],l=g[f+1],m=g[f+2]-k,p=g[f+3]-l,n=g[f+4]-k,q=g[f+5]-l,o=g[f+6]-k,r=g[f+7]-l,h=b;--h>-1;)i=x*h,j=1-i,d=(i*i*o+3*j*(i*n+j*m))*i+k,e=(i*i*r+3*j*(i*q+j*p))*i+l,d>t?t=d:u>d&&(u=d),e>v?v=e:w>e&&(w=e);return a.centerX=(t+u)/2,a.centerY=(v+w)/2,a.left=u,a.width=t-u,a.top=w,a.height=v-w,a.size=(t-u)*(v-w)},A=function(a,b){return b.length-a.length},B=function(a,b){var c=a.size||y(a),d=b.size||y(b);return Math.abs(d-c)<(c+d)/20?b.centerX-a.centerX||b.centerY-a.centerY:d-c},C=function(a,b){var c,d,e=a.slice(0),f=a.length,g=f-2;for(b=0|b,c=0;f>c;c++)d=(c+b)%g,a[c++]=e[d],a[c]=e[d+1]},D=function(a,b,c,d,e){var f,g,h,i,j=a.length,k=0,m=j-2;for(c*=6,g=0;j>g;g+=6)f=(g+c)%m,i=a[f]-(b[g]-d),h=a[f+1]-(b[g+1]-e),k+=l(h*h+i*i);return k},E=function(a,b,c){var d,e,f,g=a.length,h=x(a),i=x(b),j=i[0]-h[0],k=i[1]-h[1],l=D(a,b,0,j,k),m=0;for(f=6;g>f;f+=6)e=D(a,b,f/6,j,k),l>e&&(l=e,m=f);if(c)for(d=a.slice(0),w(d),f=6;g>f;f+=6)e=D(d,b,f/6,j,k),l>e&&(l=e,m=-f);return m/6},F=function(a,b,c){for(var d,e,f,g,h,i,j=a.length,k=p,m=0,n=0;--j>-1;)for(d=a[j],i=d.length,h=0;i>h;h+=6)e=d[h]-b,f=d[h+1]-c,g=l(e*e+f*f),k>g&&(k=g,m=d[h],n=d[h+1]);return[m,n]},G=function(a,b,c,d,e,f){var g,h,i,j,k,m=b.length,n=0,o=Math.min(a.size||y(a),b[c].size||y(b[c]))*d,q=p,r=a.centerX+e,s=a.centerY+f;for(h=c;m>h&&(g=b[h].size||y(b[h]),!(o>g));h++)i=b[h].centerX-r,j=b[h].centerY-s,k=l(i*i+j*j),q>k&&(n=h,q=k);return k=b[n],b.splice(n,1),k},H=function(a,b,c,d,e){var f,g,h,i,j,k,l,m=b.length-a.length,n=m>0?b:a,o=m>0?a:b,p=0,q="complexity"===d?A:B,s="position"===d?0:"number"==typeof d?d:.8,t=o.length,v="object"==typeof c&&c.push?c.slice(0):[c],x="reverse"===v[0]||v[0]<0,D="log"===c;if(o[0]){if(n.length>1&&(a.sort(q),b.sort(q),k=n.size||z(n),k=o.size||z(o),k=n.centerX-o.centerX,l=n.centerY-o.centerY,q===B))for(t=0;t<o.length;t++)n.splice(t,0,G(o[t],n,t,s,k,l));if(m)for(0>m&&(m=-m),n[0].length>o[0].length&&u(o[0],(n[0].length-o[0].length)/6|0),t=o.length;m>p;)i=n[t].size||y(n[t]),h=F(o,n[t].centerX,n[t].centerY),i=h[0],j=h[1],o[t++]=[i,j,i,j,i,j,i,j],o.totalPoints+=8,p++;for(t=0;t<a.length;t++)f=b[t],g=a[t],m=f.length-g.length,0>m?u(f,-m/6|0):m>0&&u(g,m/6|0),x&&e!==!1&&!g.reversed&&w(g),c=v[t]||0===v[t]?v[t]:"auto",c&&(g.closed||Math.abs(g[0]-g[g.length-2])<.5&&Math.abs(g[1]-g[g.length-1])<.5?"auto"===c||"log"===c?(v[t]=c=E(g,f,!t||e===!1),0>c&&(x=!0,w(g),c=-c),C(g,6*c)):"reverse"!==c&&(t&&0>c&&w(g),C(g,6*(0>c?-c:c))):!x&&("auto"===c&&Math.abs(f[0]-g[0])+Math.abs(f[1]-g[1])+Math.abs(f[f.length-2]-g[g.length-2])+Math.abs(f[f.length-1]-g[g.length-1])>Math.abs(f[0]-g[g.length-2])+Math.abs(f[1]-g[g.length-1])+Math.abs(f[f.length-2]-g[0])+Math.abs(f[f.length-1]-g[1])||c%2)?(w(g),v[t]=-1,x=!0):"auto"===c?v[t]=0:"reverse"===c&&(v[t]=-1),g.closed!==f.closed&&(g.closed=f.closed=!1));return D&&r("shapeIndex:["+v.join(",")+"]"),a.shapeIndex=v,v}},I=function(a,b,c,d,e){var f=t(a[0]),g=t(a[1]);H(f,g,b||0===b?b:"auto",c,e)&&(a[0]=v(f),a[1]=v(g),("log"===d||d===!0)&&r('precompile:["'+a[0]+'","'+a[1]+'"]'))},J=function(a,b){if(!b)return a;var c,d,f,g=a.match(e)||[],h=g.length,i="";for("reverse"===b?(d=h-1,c=-2):(d=(2*(parseInt(b,10)||0)+1+100*h)%h,c=2),f=0;h>f;f+=2)i+=g[d-1]+","+g[d]+" ",d=(d+c)%h;return i},K=function(a,b){var c,d,e,f,g,h,i,j=0,k=parseFloat(a[0]),l=parseFloat(a[1]),m=k+","+l+" ",n=.999999;for(e=a.length,c=.5*b/(.5*e-1),d=0;e-2>d;d+=2){if(j+=c,h=parseFloat(a[d+2]),i=parseFloat(a[d+3]),j>n)for(g=1/(Math.floor(j)+1),f=1;j>n;)m+=(k+(h-k)*g*f).toFixed(2)+","+(l+(i-l)*g*f).toFixed(2)+" ",j--,f++;m+=h+","+i+" ",k=h,l=i}return m},L=function(a){var b=a[0].match(e)||[],c=a[1].match(e)||[],d=c.length-b.length;d>0?a[0]=K(b,d):a[1]=K(c,-d)},M=function(a){return isNaN(a)?L:function(b){L(b),b[1]=J(b[1],parseInt(a,10))}},N=function(a,b){var c,d=_gsScope.document.createElementNS("http://www.w3.org/2000/svg","path"),e=Array.prototype.slice.call(a.attributes),f=e.length;for(b=","+b+",";--f>-1;)c=e[f].nodeName.toLowerCase(),-1===b.indexOf(","+c+",")&&d.setAttributeNS(null,c,e[f].nodeValue);return d},O={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},P=function(a,b){for(var c=b?b.split(","):[],d={},e=c.length;--e>-1;)d[c[e]]=+a.getAttribute(c[e])||0;return d},Q=function(a,b){var c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,w,x,y,z,A,B=a.tagName.toLowerCase(),C=.552284749831;return"path"!==B&&a.getBBox?(i=N(a,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),A=P(a,O[B]),"rect"===B?(g=A.rx,h=A.ry,d=A.x,f=A.y,m=A.width-2*g,n=A.height-2*h,g||h?(o=d+g*(1-C),p=d+g,q=p+m,r=q+g*C,s=q+g,u=f+h*(1-C),w=f+h,x=w+n,y=x+h*C,z=x+h,c="M"+s+","+w+" V"+x+" C"+[s,y,r,z,q,z,q-(q-p)/3,z,p+(q-p)/3,z,p,z,o,z,d,y,d,x,d,x-(x-w)/3,d,w+(x-w)/3,d,w,d,u,o,f,p,f,p+(q-p)/3,f,q-(q-p)/3,f,q,f,r,f,s,u,s,w].join(",")+"z"):c="M"+(d+m)+","+f+" v"+n+" h"+-m+" v"+-n+" h"+m+"z"):"circle"===B||"ellipse"===B?("circle"===B?(g=h=A.r,k=g*C):(g=A.rx,h=A.ry,k=h*C),d=A.cx,f=A.cy,j=g*C,c="M"+(d+g)+","+f+" C"+[d+g,f+k,d+j,f+h,d,f+h,d-j,f+h,d-g,f+k,d-g,f,d-g,f-k,d-j,f-h,d,f-h,d+j,f-h,d+g,f-k,d+g,f].join(",")+"z"):"line"===B?c="M"+A.x1+","+A.y1+" L"+A.x2+","+A.y2:("polyline"===B||"polygon"===B)&&(l=(a.getAttribute("points")+"").match(e)||[],d=l.shift(),f=l.shift(),c="M"+d+","+f+" L"+l.join(","),"polygon"===B&&(c+=","+d+","+f+"z")),i.setAttribute("d",v(i._gsRawPath=t(c))),b&&a.parentNode&&(a.parentNode.insertBefore(i,a),a.parentNode.removeChild(a)),i):a},R=function(a,b,c){var d,g,h="string"==typeof a;return(!h||f.test(a)||(a.match(e)||[]).length<3)&&(d=h?q.selector(a):a&&a[0]?a:[a],d&&d[0]?(d=d[0],g=(d.nodeName+"").toUpperCase(),b&&"PATH"!==g&&(d=Q(d,!1),g="PATH"),a=d.getAttribute("PATH"===g?"d":"points")||"",d===c&&(a=d.getAttributeNS(null,"data-original")||a)):(r("WARNING: invalid morph to: "+a),a=!1)),a},S=function(a,b){for(var c,d,e,f,g,h,j,k,m,n,o,p,q=a.length,r=.2*(b||1);--q>-1;){for(d=a[q],o=d.isSmooth=d.isSmooth||[0,0,0,0],p=d.smoothData=d.smoothData||[0,0,0,0],o.length=4,k=d.length-2,j=6;k>j;j+=6)e=d[j]-d[j-2],f=d[j+1]-d[j-1],g=d[j+2]-d[j],h=d[j+3]-d[j+1],m=i(f,e),n=i(h,g),c=Math.abs(m-n)<r,c&&(p[j-2]=m,p[j+2]=n,p[j-1]=l(e*e+f*f),p[j+3]=l(g*g+h*h)),o.push(c,c,0,0,c,c);d[k]===d[0]&&d[k+1]===d[1]&&(e=d[0]-d[k-2],f=d[1]-d[k-1],g=d[2]-d[0],h=d[3]-d[1],m=i(f,e),n=i(h,g),Math.abs(m-n)<r&&(p[k-2]=m,p[2]=n,p[k-1]=l(e*e+f*f),p[3]=l(g*g+h*h),o[k-2]=o[k-1]=!0))}return a},T=function(a){var b=a.trim().split(" "),c=a.indexOf("left")>=0?0:a.indexOf("right")>=0?100:isNaN(parseFloat(b[0]))?50:parseFloat(b[0]),d=a.indexOf("top")>=0?0:a.indexOf("bottom")>=0?100:isNaN(parseFloat(b[1]))?50:parseFloat(b[1]);return{x:c/100,y:d/100}},U=function(a){return a!==a%b?a+(0>a?m:-m):a},V="Use MorphSVGPlugin.convertToPath(elementOrSelectorText) to convert to a path before morphing.",W=_gsScope._gsDefine.plugin({propName:"morphSVG",API:2,global:!0,version:"0.9.2",overwriteProps:["morphSVG"],init:function(b,c,d,f){var h,i,j,k,l,m,n,o,p,q,s,u,w,x,y,A,B,C,D,E,F,G,I=b.nodeType?window.getComputedStyle(b):{},J=I.fill+"",K=!("none"===J||"0"===(J.match(e)||[])[3]||"evenodd"===I.fillRule),L=(c.origin||"50 50").split(",");if("function"==typeof c&&(c=c(f,b)),h=(b.nodeName+"").toUpperCase(),l="POLYLINE"===h||"POLYGON"===h,"PATH"!==h&&!l&&!c.prop)return r("WARNING: cannot morph a <"+h+"> element. "+V),!1;if(i="PATH"===h?"d":"points",("string"==typeof c||c.getBBox||c[0])&&(c={shape:c}),!c.prop&&"function"!=typeof b.setAttribute)return!1;if(k=R(c.shape||c.d||c.points||"","d"===i,b),l&&g.test(k))return r("WARNING: a <"+h+"> cannot accept path data. "+V),!1;if(m=c.shapeIndex||0===c.shapeIndex?c.shapeIndex:"auto",n=c.map||W.defaultMap,this._prop=c.prop,this._render=c.render||W.defaultRender,this._apply="updateTarget"in c?c.updateTarget:W.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(c.precision)?2:+c.precision),this._tween=d,k){if(this._target=b,B="object"==typeof c.precompile,q=this._prop?b[this._prop]:b.getAttribute(i),this._prop||b.getAttributeNS(null,"data-original")||b.setAttributeNS(null,"data-original",q),"d"===i||this._prop){if(q=t(B?c.precompile[0]:q),s=t(B?c.precompile[1]:k),!B&&!H(q,s,m,n,K))return!1;for(("log"===c.precompile||c.precompile===!0)&&r('precompile:["'+v(q)+'","'+v(s)+'"]'),F="linear"!==(c.type||W.defaultType),F&&(q=S(q,c.smoothTolerance),s=S(s,c.smoothTolerance),q.size||z(q),s.size||z(s),E=T(L[0]),this._origin=q.origin={x:q.left+E.x*q.width,y:q.top+E.y*q.height},L[1]&&(E=T(L[1])),this._eOrigin={x:s.left+E.x*s.width,y:s.top+E.y*s.height}),this._rawPath=b._gsRawPath=q,w=q.length;--w>-1;)for(y=q[w],A=s[w],o=y.isSmooth||[],p=A.isSmooth||[],x=y.length,a=0,u=0;x>u;u+=2)(A[u]!==y[u]||A[u+1]!==y[u+1])&&(F?o[u]&&p[u]?(C=y.smoothData,D=A.smoothData,G=u+(u===x-4?7-x:5),this._controlPT={_next:this._controlPT,i:u,j:w,l1s:C[u+1],l1c:D[u+1]-C[u+1],l2s:C[G],l2c:D[G]-C[G]},j=this._tweenRotation(y,A,u+2),this._tweenRotation(y,A,u,j),this._tweenRotation(y,A,G-1,j),u+=4):this._tweenRotation(y,A,u):(this._addTween(y,u,y[u],A[u]),j=this._addTween(y,u+1,y[u+1],A[u+1])))}else j=this._addTween(b,"setAttribute",b.getAttribute(i)+"",k+"","morphSVG",!1,i,M(m));F&&(this._addTween(this._origin,"x",this._origin.x,this._eOrigin.x),j=this._addTween(this._origin,"y",this._origin.y,this._eOrigin.y)),j&&(this._overwriteProps.push("morphSVG"),j.end=k,j.endProp=i)}return!0},set:function(a){var b,c,d,e,f,g,h,l,m,n,o,p,q,r,s=this._rawPath,t=this._controlPT,u=this._anchorPT,v=this._rnd,w=this._target;if(this._super.setRatio.call(this,a),1===a&&this._apply)for(e=this._firstPT;e;)e.end&&(this._prop?w[this._prop]=e.end:w.setAttribute(e.endProp,e.end)),e=e._next;else if(s){for(;u;)h=u.sa+a*u.ca,g=u.sl+a*u.cl,u.t[u.i]=this._origin.x+j(h)*g,u.t[u.i+1]=this._origin.y+k(h)*g,u=u._next;for(d=.5>a?2*a*a:(4-2*a)*a-1;t;)l=t.i,f=s[t.j],r=l+(l===f.length-4?7-f.length:5),h=i(f[r]-f[l+1],f[r-1]-f[l]),p=k(h),q=j(h),n=f[l+2],o=f[l+3],g=t.l1s+d*t.l1c,f[l]=n-q*g,f[l+1]=o-p*g,g=t.l2s+d*t.l2c,f[r-1]=n+q*g,f[r]=o+p*g,t=t._next;if(w._gsRawPath=s,this._apply){for(b="",c=" ",m=0;m<s.length;m++)for(f=s[m],g=f.length,b+="M"+(f[0]*v|0)/v+c+(f[1]*v|0)/v+" C",l=2;g>l;l++)b+=(f[l]*v|0)/v+c;this._prop?w[this._prop]=b:w.setAttribute("d",b)}}this._render&&s&&this._render.call(this._tween,s,w)}});W.prototype._tweenRotation=function(b,c,d,e){var f,g,h=this._origin,j=this._eOrigin,k=b[d]-h.x,m=b[d+1]-h.y,p=l(k*k+m*m),q=i(m,k);return k=c[d]-j.x,m=c[d+1]-j.y,f=i(m,k)-q,g=U(f),!e&&a&&Math.abs(g+a.ca)<n&&(e=a),this._anchorPT=a={_next:this._anchorPT,t:b,sa:q,ca:e&&g*e.ca<0&&Math.abs(g)>o?f:g,sl:p,cl:l(k*k+m*m)-p,i:d}},W.pathFilter=I,W.pointsFilter=L,W.getTotalSize=z,W.subdivideRawBezier=W.subdividemindset=u,W.rawPathToString=v,W.defaultType="linear",W.defaultUpdateTarget=!0,W.defaultMap="size",W.stringToRawPath=W.pathDataToRawBezier=function(a){return t(R(a,!0))},W.equalizemindsetQuantity=H,W.convertToPath=function(a,b){"string"==typeof a&&(a=q.selector(a));for(var c=a&&0!==a.length?a.length&&a[0]&&a[0].nodeType?Array.prototype.slice.call(a,0):[a]:[],d=c.length;--d>-1;)c[d]=Q(c[d],b!==!1);return c},W.pathDataToBezier=function(a,b){var c,d,e,f,g,h,i,j,k=t(R(a,!0))[0]||[],l=0;if(b=b||{},j=b.align||b.relative,f=b.matrix||[1,0,0,1,0,0],g=b.offsetX||0,h=b.offsetY||0,"relative"===j||j===!0?(g-=k[0]*f[0]+k[1]*f[2],h-=k[0]*f[1]+k[1]*f[3],l="+="):(g+=f[4],h+=f[5],j&&(j="string"==typeof j?q.selector(j):j&&j[0]?j:[j],j&&j[0]&&(i=j[0].getBBox()||{x:0,y:0},g-=i.x,h-=i.y))),c=[],e=k.length,f&&"1,0,0,1,0,0"!==f.join(","))for(d=0;e>d;d+=2)c.push({x:l+(k[d]*f[0]+k[d+1]*f[2]+g),y:l+(k[d]*f[1]+k[d+1]*f[3]+h)});else for(d=0;e>d;d+=2)c.push({x:l+(k[d]+g),y:l+(k[d+1]+h)});return c}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("MorphSVGPlugin");
|
53
|
+
/*!
|
54
|
+
* ScrambleTextPlugin 3.0.5
|
55
|
+
* https://greensock.com
|
56
|
+
*
|
57
|
+
* @license Copyright 2020, GreenSock. All rights reserved.
|
58
|
+
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
|
59
|
+
* @author: Jack Doyle, jack@greensock.com
|
60
|
+
*/
|
61
|
+
|
62
|
+
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var n=/(^\s+|\s+$)/g,r=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F){if(F&&(D=D.replace(n,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var C,E,e=[],t=D.length,i=0;i<t;i++)(55296<=(E=D.charAt(i)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(i+1)&&D.charCodeAt(i+1)<=65039)&&(C=((D.substr(i,12).split(r)||[])[1]||"").length||2,E=D.substr(i,C),i+=C-(e.emoji=1)),e.push(">"===E?">":"<"===E?"<":E);return e}var s=(CharSet.prototype.grow=function grow(D){for(var u=0;u<20;u++)this.sets[u]+=F(D-this.length,this.chars);this.length=D},CharSet);function CharSet(D){this.chars=emojiSafeSplit(D),this.sets=[],this.length=50;for(var u=0;u<20;u++)this.sets[u]=F(80,this.chars)}function i(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}function p(){a=u=i()}var u,a,B=/\s+/g,F=function _scrambleText(D,u){for(var F=u.length,C="";-1<--D;)C+=u[~~(Math.random()*F)];return C},C="ABCDEFGHIJKLMNOPQRSTUVWXYZ",E=C.toLowerCase(),l={upperCase:new s(C),lowerCase:new s(E),upperAndLowerCase:new s(C+E)},e={version:"3.0.5",name:"scrambleText",register:function register(D){u=D,p()},init:function init(D,u,F){if(a||p(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,this.prop){this.target=D,"object"!=typeof u&&(u={text:u});var C,E,e,t,i=u.text||u.value,n=!1!==u.trim,r=this;return r.delimiter=C=u.delimiter||"",r.original=emojiSafeSplit(getText(D).replace(B," ").split(" ").join(""),C,n),"{original}"!==i&&!0!==i&&null!=i||(i=r.original.join(C)),r.text=emojiSafeSplit((i||"").replace(B," "),C,n),r.hasClass=!(!u.newClass&&!u.oldClass),r.newClass=u.newClass,r.oldClass=u.oldClass,t=""===C,r.textHasEmoji=t&&!!r.text.emoji,r.charsHaveEmoji=!!u.chars&&!!emojiSafeSplit(u.chars).emoji,r.length=t?r.original.length:r.original.join(C).length,r.lengthDif=(t?r.text.length:r.text.join(C).length)-r.length,r.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",r.charSet=e=l[u.chars||"upperCase"]||new s(u.chars),r.speed=.05/(u.speed||1),r.prevScrambleTime=0,r.setIndex=20*Math.random()|0,(E=r.length+Math.max(r.lengthDif,0))>e.length&&e.grow(E),r.chars=e.sets[r.setIndex],r.revealDelay=u.revealDelay||0,r.tweenLength=!1!==u.tweenLength,r.tween=F,r.rightToLeft=!!u.rightToLeft,r._props.push("scrambleText","text"),1}},render:function render(D,u){var F,C,E,e,t,i,n,r,s,a=u.target,B=u.prop,l=u.text,o=u.delimiter,A=u.tween,h=u.prevScrambleTime,p=u.revealDelay,f=u.setIndex,g=u.chars,c=u.charSet,d=u.length,m=u.textHasEmoji,x=u.charsHaveEmoji,S=u.lengthDif,j=u.tweenLength,w=u.oldClass,v=u.newClass,b=u.rightToLeft,T=u.fillChar,y=u.speed,L=u.original,_=u.hasClass,M=l.length,H=A._time,I=H-h;p&&(A._from&&(H=A._dur-H),D=0===H?0:H<p?1e-6:H===A._dur?1:A._ease((H-p)/(A._dur-p))),D<0?D=0:1<D&&(D=1),b&&(D=1-D),F=~~(D*M+.5),e=D?((y<I||I<-y)&&(u.setIndex=f=(f+(19*Math.random()|0))%20,u.chars=c.sets[f],u.prevScrambleTime+=I),g):L.join(o),e=b?1!==D||!A._from&&"isFromStart"!==A.data?(n=l.slice(F).join(o),E=x?emojiSafeSplit(e).slice(0,d+(j?1-D*D*D:1)*S-(m?emojiSafeSplit(n):n).length+.5|0).join(""):e.substr(0,d+(j?1-D*D*D:1)*S-(m?emojiSafeSplit(n):n).length+.5|0),n):(E="",L.join(o)):(E=l.slice(0,F).join(o),C=(m?emojiSafeSplit(E):E).length,x?emojiSafeSplit(e).slice(C,d+(j?1-(D=1-D)*D*D*D:1)*S+.5|0).join(""):e.substr(C,d+(j?1-(D=1-D)*D*D*D:1)*S-C+.5|0)),n=_?((t=(r=b?w:v)&&0!=F)?"<span class='"+r+"'>":"")+E+(t?"</span>":"")+((i=(s=b?v:w)&&F!==M)?"<span class='"+s+"'>":"")+o+e+(i?"</span>":""):E+o+e,a[B]=" "===T&&~n.indexOf(" ")?n.split(" ").join(" "):n}};e.emojiSafeSplit=emojiSafeSplit,e.getText=getText,i()&&u.registerPlugin(e),D.ScrambleTextPlugin=e,D.default=e;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}});
|
63
|
+
//# sourceMappingURL=ScrambleTextPlugin.min.js.map
|
64
|
+
|
53
65
|
/*!
|
54
66
|
* TextPlugin 3.0.5
|
55
67
|
* https://greensock.com
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var 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",
|
1
|
+
"use strict";var SiteIsTheme,SiteIsLibrary,SiteIsShareable,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",addicts:"#e6433a",family:"#029ddf",receptive:"#b25400",value:"#5fb641",next:"#ffa905",maybe:"#974597",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};"theme"==Config.install&&(SiteIsTheme=!0),"library"==Config.install&&(SiteIsLibrary=!0),Config.shareable&&(SiteIsShareable=!0);var Overlay={mobile:{screen:".area.overlay-mobile",bar:".bar.mobile"},load:{screen:".area.overlay-load",speed:.3},custom:[{name:"about",open:!1},{name:"browse",open:!1},{name:"search",open:!1}],button:"button.navigation",exit:".exit"},Site={scramble:{chars:"1234567890%",speed:.6},mobile:{active:!0},tablet:{active:!1,width:768},desktop:{active:!1,width:1200},focus:!1,topbar:{lnk:".link.navigation"},scroll:{lnk:".lnk.scroller"},chapter:{target:".wrap.type-chapter"},page:{artwork:".area.page-artwork",share:".util-share",url:".util-url",height:560},code:{page:".wrap.type-page.style-docs",expand:".block.expand-block",wrap:".code-wrap",scss:".code-scss",html:".code-html"}};Site.mobile.query="screen and (max-width:"+(Site.tablet.width-1)+"px)",Site.tablet.query="screen and (min-width:"+Site.tablet.width+"px) and (max-width:"+(Site.desktop.width-1)+"px)",Site.desktop.query="screen and (min-width:"+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}});
|
@@ -1,30 +1,42 @@
|
|
1
1
|
|
2
2
|
let Color = {
|
3
|
-
system
|
4
|
-
brand
|
5
|
-
supply
|
6
|
-
demo
|
7
|
-
generic
|
8
|
-
theatre
|
9
|
-
talks
|
10
|
-
music
|
11
|
-
classical
|
12
|
-
cinema
|
13
|
-
tours
|
14
|
-
hire
|
15
|
-
|
16
|
-
art
|
17
|
-
shop
|
18
|
-
addicts
|
19
|
-
family
|
20
|
-
receptive
|
21
|
-
value
|
22
|
-
next
|
23
|
-
maybe
|
24
|
-
|
25
|
-
artforall
|
26
|
-
|
27
|
-
|
28
|
-
dodgers
|
29
|
-
green
|
3
|
+
system : '#6e46a0',
|
4
|
+
brand : '#ff8200',
|
5
|
+
supply : '#f00a0a',
|
6
|
+
demo : '#005a9b',
|
7
|
+
generic : '#fe5900',
|
8
|
+
theatre : '#019fc6',
|
9
|
+
talks : '#ff9000',
|
10
|
+
music : '#dc3636',
|
11
|
+
classical : '#bf8f3a',
|
12
|
+
cinema : '#259d31',
|
13
|
+
tours : '#718ab2',
|
14
|
+
hire : '#412f79',
|
15
|
+
members : '#5d91e5',
|
16
|
+
art : '#f90082',
|
17
|
+
shop : '#23D5B0',
|
18
|
+
addicts : '#e6433a',
|
19
|
+
family : '#029ddf',
|
20
|
+
receptive : '#b25400',
|
21
|
+
value : '#5fb641',
|
22
|
+
next : '#ffa905',
|
23
|
+
maybe : '#974597',
|
24
|
+
paradise : '#e8396c',
|
25
|
+
artforall : '#f9ae00',
|
26
|
+
park : '#009640',
|
27
|
+
news : '#009fe3',
|
28
|
+
dodgers : '#0092FF',
|
29
|
+
green : '#259d31'
|
30
|
+
};
|
31
|
+
|
32
|
+
let Artforms = {
|
33
|
+
theatre : Color.theatre,
|
34
|
+
talks : Color.talks,
|
35
|
+
music : Color.music,
|
36
|
+
classical : Color.classical,
|
37
|
+
cinema : Color.cinema,
|
38
|
+
tours : Color.tours,
|
39
|
+
hire : Color.hire,
|
40
|
+
members : Color.members,
|
41
|
+
art : Color.art
|
30
42
|
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
let SiteIsTheme,
|
3
|
+
SiteIsLibrary,
|
4
|
+
SiteIsShareable;
|
5
|
+
|
6
|
+
if (Config.install == "theme") {
|
7
|
+
SiteIsTheme = true;
|
8
|
+
}
|
9
|
+
|
10
|
+
if (Config.install == "library") {
|
11
|
+
SiteIsLibrary = true;
|
12
|
+
}
|
13
|
+
|
14
|
+
if (Config.shareable) {
|
15
|
+
SiteIsShareable = true;
|
16
|
+
}
|