futuro 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/artwork/orwell/animal/flob.scss +5 -0
- data/_includes/artwork/orwell/animal/waldo.scss +45 -0
- data/_includes/html/head.liquid +7 -5
- data/_includes/html/overlay/about.liquid +1 -1
- data/_includes/html/overlay/browse.liquid +19 -19
- data/_includes/html/overlay/load.liquid +42 -47
- data/_includes/html/overlay/mobile.liquid +4 -4
- data/_includes/html/overlay/search.liquid +16 -12
- data/_includes/html/overlay.liquid +7 -4
- data/_includes/html/page/artwork.liquid +1 -1
- data/_includes/html/page/info.liquid +4 -4
- data/_includes/html/page/layout/chapter.liquid +2 -2
- data/_includes/html/page/layout/home.liquid +11 -9
- data/_includes/html/page/layout/page.liquid +4 -4
- data/_includes/html/page/title.liquid +3 -3
- data/_includes/html/page/topbar.liquid +10 -10
- data/_includes/html/page/util.liquid +2 -2
- data/_includes/html/page/utils/author.liquid +1 -1
- data/_includes/html/page/utils/share.liquid +3 -3
- data/_includes/html/page/utils/update.liquid +1 -1
- data/_includes/html/scripts.liquid +2 -2
- data/_layouts/feed.html +1 -1
- data/_layouts/single.html +1 -1
- data/_sass/_area.scss +23 -76
- data/_sass/_bar.scss +2 -2
- data/_sass/_base.lite.scss +4 -0
- data/_sass/_base.scss +16 -15
- data/_sass/_block.scss +21 -153
- data/_sass/_box.scss +2 -2
- data/_sass/_btn.scss +1 -1
- data/_sass/_col.scss +14 -17
- data/_sass/_form.scss +1 -1
- data/_sass/_input.scss +6 -7
- data/_sass/_lnk.scss +9 -10
- data/_sass/_nav.scss +3 -3
- data/_sass/_site.scss +3 -15
- data/_sass/_slick.scss +93 -97
- data/_sass/_split.scss +7 -10
- data/_sass/_task.scss +10 -13
- data/_sass/_title.scss +30 -58
- data/_sass/_wrap.scss +19 -50
- data/_sass/{_overlay.scss → area/_overlay.scss} +9 -17
- data/_sass/area/_topbar.scss +14 -0
- data/_sass/block/_browse.scss +35 -0
- data/_sass/block/_results.scss +39 -0
- data/_sass/block/_util.scss +37 -0
- data/_sass/fonts/_lite.scss +18 -0
- data/_sass/fonts/_max.scss +41 -0
- data/_sass/futuro.lite.scss +37 -0
- data/_sass/futuro.scss +32 -34
- data/_sass/helpers/_extends.scss +66 -49
- data/_sass/helpers/_mixins.scss +13 -5
- data/_sass/{_helpers.scss → helpers/_variables.scss} +0 -0
- data/_sass/title/_overlay.scss +22 -0
- data/_sass/wrap/_overlay.scss +28 -0
- data/assets/{img → css}/fallback.jpg +0 -0
- data/assets/{img → css}/favicon.png +0 -0
- data/assets/css/styles.lite.scss +4 -0
- data/assets/css/styles.scss +0 -1
- data/assets/js/footer/custom/CheckWidth.js +13 -11
- data/assets/js/footer/custom/ExpandBlock.js +9 -5
- data/assets/js/footer/custom/OpenOverlay.js +90 -65
- data/assets/js/footer/custom/ScrollFunc.js +15 -14
- data/assets/js/footer/custom/Settings.js +6 -7
- data/assets/js/footer/custom/SetupHome.js +6 -9
- data/assets/js/footer/custom/SiteFunc.js +15 -11
- data/assets/js/footer/custom/SplitCode.js +8 -10
- data/assets/js/footer/custom/StartBrowse.js +45 -45
- data/assets/js/footer/custom/UtilShare.js +13 -10
- data/assets/js/footer/vendor/gsap-draw.js +6 -9
- data/assets/js/futuro.footer.custom.js +1 -0
- data/assets/js/{futuro.vendor.js → futuro.footer.vendor.js} +7 -9
- data/assets/js/futuro.header.custom.js +1 -0
- data/assets/js/futuro.header.legacy.js +26 -0
- data/assets/js/{header.vendor.js → futuro.header.vendor.js} +1 -0
- data/assets/js/header/custom/Overlay.js +58 -0
- data/assets/js/header/custom/Site.js +72 -0
- data/assets/js/header/vendor/{enquire.min.js → enquire.js} +0 -0
- data/assets/js/header/vendor/{gsap.min.js → gsap.js} +0 -0
- data/assets/js/header/vendor/{modernizr.min.js → modernizr.js} +1 -1
- data/assets/js/header/vendor/modernizr.legacy.js +1 -0
- metadata +30 -19
- data/_sass/_copy.scss +0 -10
- data/_sass/_fonts.scss +0 -21
- data/assets/css/normalize.css +0 -423
- data/assets/img/search.svg +0 -1
- data/assets/js/futuro.custom.min.js +0 -1
- data/assets/js/header/custom/Settings.js +0 -21
- data/assets/js/header/data.js +0 -5
- data/assets/js/header.custom.min.js +0 -1
@@ -1,27 +1,26 @@
|
|
1
1
|
|
2
2
|
const ScrollerUpdate = () => {
|
3
|
-
let set = $(
|
3
|
+
let set = $(Site.scroll.lnk),
|
4
4
|
length = set.length;
|
5
5
|
|
6
6
|
if (length > 1) {
|
7
7
|
set.each(function() {
|
8
8
|
let ting = $(this)[0].classList[2],
|
9
|
-
tween = TweenMax.to(
|
9
|
+
tween = TweenMax.to(Site.scroll.lnk + ting,0.1,{className:'+=active'}),
|
10
10
|
scene = new ScrollMagic.Scene({triggerElement:'#' + ting}).setTween(tween).addTo(controller);
|
11
11
|
});
|
12
12
|
}
|
13
13
|
}
|
14
14
|
|
15
|
-
const ScrollFunc =
|
16
|
-
let
|
17
|
-
Scroller = '<div class="area _scroller"><div class="wrap _scroller">';
|
15
|
+
const ScrollFunc = () => {
|
16
|
+
let Scroller = '<div class="area _scroller"><div class="wrap _scroller">';
|
18
17
|
|
19
|
-
|
18
|
+
$(Site.chapter.target).each(function(i,val){
|
20
19
|
let id = $(val)[0].children[0].id;
|
21
20
|
|
22
21
|
if(i == 0) {
|
23
22
|
Scroller += `<a class="lnk _scroller ${id}" href="#${id}" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>`;
|
24
|
-
} else if(i ==
|
23
|
+
} else if(i == $(Site.chapter.target).length - 1) {
|
25
24
|
Scroller += `<a class="lnk _scroller ${id}" href="#${id}"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>`;
|
26
25
|
} else {
|
27
26
|
Scroller += `<a class="lnk _scroller ${id}" href="#${id}"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>`;
|
@@ -29,14 +28,16 @@ const ScrollFunc = chaps => {
|
|
29
28
|
});
|
30
29
|
|
31
30
|
Scroller += '</div></div>';
|
32
|
-
|
31
|
+
$(Site.feed).append(Scroller);
|
33
32
|
ScrollerUpdate();
|
34
33
|
SmoothScroll();
|
35
34
|
}
|
36
35
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
}
|
36
|
+
if (Site.chapter.active) {
|
37
|
+
|
38
|
+
$(function() {
|
39
|
+
if ($(Site.chapter.target).length > 1) {
|
40
|
+
ScrollFunc();
|
41
|
+
}
|
42
|
+
});
|
43
|
+
}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
|
2
2
|
let body = "body",
|
3
|
-
|
4
|
-
overMobi = ".overlay._mobile",
|
5
|
-
overLoad = ".overlay._load",
|
3
|
+
shade = "rgba(0,0,0,0.05)",
|
6
4
|
controller = new ScrollMagic.Controller(),
|
7
|
-
half = Site.page * 0.5
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
half = Site.page * 0.5;
|
6
|
+
|
7
|
+
if (Overlay.browse.active) {
|
8
|
+
Overlay.browse.data = $(Overlay.browse.chapter.col).children(Overlay.browse.chunk).children().length;
|
9
|
+
}
|
@@ -6,16 +6,11 @@ const SetupHome = () => {
|
|
6
6
|
|
7
7
|
let tl = gsap.timeline({repeat:-1,yoyo:true,defaults:{ease:"sine.inOut"}});
|
8
8
|
|
9
|
-
tl.fromTo(
|
9
|
+
tl.fromTo(Site.home.book.area,{y:-5},{duration:1,y:5});
|
10
10
|
|
11
|
-
$(
|
12
|
-
slidesToScroll : 1,
|
13
|
-
slidesToShow : 5,
|
14
|
-
infinite : true,
|
15
|
-
arrows : false
|
16
|
-
});
|
11
|
+
$(Site.home.wrap).slick(Site.home.slick);
|
17
12
|
|
18
|
-
$(
|
13
|
+
$(Site.home.book.wrap).hover(
|
19
14
|
function() {
|
20
15
|
gsap.to(this,{duration:0.1,y:-20});
|
21
16
|
},
|
@@ -25,4 +20,6 @@ const SetupHome = () => {
|
|
25
20
|
}
|
26
21
|
}
|
27
22
|
|
28
|
-
|
23
|
+
if (Site.home.active) {
|
24
|
+
$(SetupHome);
|
25
|
+
}
|
@@ -1,27 +1,31 @@
|
|
1
1
|
|
2
2
|
const SiteFunc = () => {
|
3
3
|
|
4
|
-
if (!Site.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
if (!Site.respond) {
|
5
|
+
|
6
|
+
if (!Site.mobile) {
|
7
|
+
|
8
|
+
if ($(body).hasClass("setup-library") &&
|
9
|
+
$(body).hasClass("type-home")) {
|
10
|
+
gsap.set(Site.target,{display:"block"});
|
9
11
|
} else {
|
10
|
-
gsap.set(
|
12
|
+
gsap.set(Site.target,{display:Site.open});
|
11
13
|
}
|
12
14
|
}
|
13
15
|
}
|
14
16
|
|
15
17
|
else {
|
16
|
-
gsap.set(
|
18
|
+
gsap.set(Site.target,{display:Site.open});
|
17
19
|
}
|
18
20
|
|
19
21
|
setTimeout(function() {
|
20
|
-
|
22
|
+
|
23
|
+
gsap.set(Overlay.load.screen,{display:"none"});
|
21
24
|
SiteTl.pause();
|
22
25
|
},1000);
|
23
26
|
}
|
24
27
|
|
25
|
-
|
26
|
-
|
27
|
-
$(window).resize(SiteFunc);
|
28
|
+
if (Overlay.load.active) {
|
29
|
+
$(SiteFunc);
|
30
|
+
$(window).resize(SiteFunc);
|
31
|
+
}
|
@@ -1,16 +1,14 @@
|
|
1
1
|
|
2
2
|
const SplitCode = () => {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
html = $('.code-html',this),
|
8
|
-
htmlstring = html.html();
|
9
|
-
|
10
|
-
html.text(htmlstring);
|
3
|
+
$(Site.code.page).each(function(i,val) {
|
4
|
+
let scss = $(Site.code.scss,this),
|
5
|
+
html = $(Site.code.html,this),
|
6
|
+
string = html.html();
|
11
7
|
|
8
|
+
html.text(string);
|
12
9
|
});
|
13
|
-
|
14
10
|
}
|
15
11
|
|
16
|
-
|
12
|
+
if (Site.code.active) {
|
13
|
+
$(SplitCode);
|
14
|
+
}
|
@@ -1,15 +1,8 @@
|
|
1
1
|
|
2
|
-
let browsabl = $('.col._browse.--chapter').children('._browse-chunk').children().length,
|
3
|
-
books = $('.lnk._browse-book'),
|
4
|
-
chapters = $('.lnk._browse-chapter'),
|
5
|
-
pages = $('.lnk._browse-page'),
|
6
|
-
chunk = '._browse-chunk',
|
7
|
-
shade = 'rgba(0,0,0,0.07)';
|
8
|
-
|
9
2
|
const StartBrowse = () => {
|
10
|
-
let book = $(
|
11
|
-
chapter = $(
|
12
|
-
page = $(
|
3
|
+
let book = $(".block.browse-lnk", Overlay.browse.book.col)[0],
|
4
|
+
chapter = $(".block.browse-chunk", Overlay.browse.chapter.col)[0],
|
5
|
+
page = $(".block.browse-chunk", Overlay.browse.page.col)[0],
|
13
6
|
pChild = $(page)[0].children[0],
|
14
7
|
bShade = $(book)[0].children[0],
|
15
8
|
cShade = $(chapter)[0].children[0].children[0],
|
@@ -17,67 +10,74 @@ const StartBrowse = () => {
|
|
17
10
|
tl = gsap.timeline();
|
18
11
|
|
19
12
|
tl
|
20
|
-
.set(chunk,{display:
|
13
|
+
.set(Overlay.browse.chunk,{display:"none"})
|
21
14
|
.set([chapter,page,pChild],{display:"block"})
|
22
15
|
.set([bShade,cShade,pShade],{backgroundColor:shade})
|
23
16
|
;
|
24
17
|
}
|
25
18
|
|
26
19
|
const HoverBook = (e) => {
|
27
|
-
let
|
28
|
-
|
29
|
-
|
30
|
-
page = $(chunk + '.--' + label, '.col._browse.--page'),
|
20
|
+
let label = $(e.target)[0].classList[2].slice(5),
|
21
|
+
chapter = $(Overlay.browse.chunk + "." + label, Overlay.browse.chapter.col),
|
22
|
+
page = $(Overlay.browse.chunk + "." + label, Overlay.browse.page.col),
|
31
23
|
pChild = $(page)[0].children[0],
|
32
24
|
cShade = $(chapter)[0].children[0].children[0],
|
33
25
|
pShade = $(pChild)[0].children[0].children[0],
|
34
26
|
tl = gsap.timeline();
|
35
27
|
|
36
28
|
tl
|
37
|
-
.set(chunk,{display:
|
29
|
+
.set(Overlay.browse.chunk,{display:"none"})
|
38
30
|
.set([chapter,page,pChild],{display:"block"})
|
39
|
-
.set([
|
40
|
-
.set([
|
41
|
-
;
|
31
|
+
.set([Overlay.browse.book.lnk,Overlay.browse.chapter.lnk,Overlay.browse.page.lnk],{clearProps:"backgroundColor"})
|
32
|
+
.set([$(e.target),cShade,pShade],{backgroundColor:shade});
|
42
33
|
}
|
43
34
|
|
44
35
|
const HoverChap = (e) => {
|
45
|
-
let
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
pChunkBKid = $(pChunkB)[0].children[0].children[0];
|
36
|
+
let aLabel = $(e.target)[0].classList[2].slice(5),
|
37
|
+
bLabel = $(e.target)[0].classList[3].slice(8),
|
38
|
+
cChunk = $(Overlay.browse.chunk + "." + aLabel, Overlay.browse.chapter.col),
|
39
|
+
pChunkA = $(Overlay.browse.chunk + "." + aLabel, Overlay.browse.page.col),
|
40
|
+
pChunkB = $(Overlay.browse.chunk + "." + bLabel, pChunkA),
|
41
|
+
pChunkBKid = $(pChunkB)[0].children[0].children[0],
|
52
42
|
tl = gsap.timeline();
|
53
43
|
|
54
44
|
tl
|
55
|
-
.set(chunk,{display:
|
45
|
+
.set(Overlay.browse.chunk,{display:"none"})
|
56
46
|
.set([cChunk,pChunkA,pChunkB],{display:"block"})
|
57
|
-
.set([
|
58
|
-
.set([
|
59
|
-
;
|
47
|
+
.set([Overlay.browse.chapter.lnk,Overlay.browse.page.lnk],{clearProps:"backgroundColor"})
|
48
|
+
.set([$(e.target),pChunkBKid],{backgroundColor:shade});
|
60
49
|
}
|
61
50
|
|
62
51
|
const HoverPage = (e) => {
|
63
|
-
let
|
64
|
-
tl = gsap.timeline();
|
52
|
+
let tl = gsap.timeline();
|
65
53
|
|
66
54
|
tl
|
67
|
-
.set(
|
68
|
-
.set(
|
69
|
-
;
|
55
|
+
.set(Overlay.browse.page.lnk,{clearProps:"backgroundColor"})
|
56
|
+
.set($(e.target),{backgroundColor:shade});
|
70
57
|
}
|
71
58
|
|
72
|
-
|
59
|
+
if (Overlay.browse.active) {
|
73
60
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
$('.lnk._browse-book').hover( function (e) { HoverBook(e); });
|
78
|
-
$('.lnk._browse-chapter').hover( function (e) { HoverChap(e); });
|
79
|
-
$('.lnk._browse-page').hover( function (e) { HoverPage(e); });
|
80
|
-
}
|
81
|
-
}
|
61
|
+
$(function(){
|
62
|
+
|
63
|
+
if (!$(body).hasClass(Site.home.class)) {
|
82
64
|
|
83
|
-
|
65
|
+
if (Overlay.browse.data > 0) {
|
66
|
+
|
67
|
+
StartBrowse();
|
68
|
+
|
69
|
+
$(Overlay.browse.book.lnk).hover( function (e) {
|
70
|
+
HoverBook(e);
|
71
|
+
});
|
72
|
+
|
73
|
+
$(Overlay.browse.chapter.lnk).hover( function (e) {
|
74
|
+
HoverChap(e);
|
75
|
+
});
|
76
|
+
|
77
|
+
$(Overlay.browse.page.lnk).hover( function (e) {
|
78
|
+
HoverPage(e);
|
79
|
+
});
|
80
|
+
}
|
81
|
+
}
|
82
|
+
});
|
83
|
+
}
|
@@ -9,12 +9,12 @@ const UtilCopy = str => {
|
|
9
9
|
}
|
10
10
|
|
11
11
|
const UtilShare = e => {
|
12
|
-
let ting = $(e.target).parents(
|
13
|
-
type = $(ting)[0].classList[2]
|
14
|
-
url = $(ting).children(
|
12
|
+
let ting = $(e.target).parents(Site.page.share),
|
13
|
+
type = $(ting)[0].classList[2],
|
14
|
+
url = $(ting).children(Site.page.url).text().replace('index',''),
|
15
15
|
title = $(ting)[0].children[1],
|
16
|
-
|
17
|
-
|
16
|
+
tl = gsap.timeline(),
|
17
|
+
reset = '';
|
18
18
|
|
19
19
|
if (type == 'page') {
|
20
20
|
reset = 'Copy page';
|
@@ -25,10 +25,13 @@ const UtilShare = e => {
|
|
25
25
|
tl
|
26
26
|
.set(title,{text:'Copied!'})
|
27
27
|
.to(title,{duration:0.3,opacity:0},'+=0.6')
|
28
|
-
.set(title,{text:reset,clearProps:'all'},'+=0.3')
|
29
|
-
;
|
28
|
+
.set(title,{text:reset,clearProps:'all'},'+=0.3');
|
30
29
|
}
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
if (Site.page.active) {
|
32
|
+
|
33
|
+
$(function(){
|
34
|
+
$(Site.page.share).click(UtilShare);
|
35
|
+
});
|
36
|
+
|
37
|
+
}
|
@@ -1,13 +1,10 @@
|
|
1
1
|
/*!
|
2
|
-
*
|
3
|
-
*
|
4
|
-
* UPDATES AND DOCS AT: http://greensock.com
|
2
|
+
* DrawSVGPlugin 3.0.5
|
3
|
+
* https://greensock.com
|
5
4
|
*
|
6
|
-
* @license Copyright
|
7
|
-
*
|
8
|
-
* this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
|
9
|
-
* This work is subject to the software agreement that was issued with your membership.
|
10
|
-
*
|
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.
|
11
7
|
* @author: Jack Doyle, jack@greensock.com
|
12
8
|
*/
|
13
|
-
|
9
|
+
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return"undefined"!=typeof window}function j(){return t||i()&&(t=window.gsap)&&t.registerPlugin&&t}function m(e){return Math.round(1e4*e)/1e4}function n(e){return parseFloat(e||0)}function o(e,t){return n(e.getAttribute(t))}function q(e,t,s,r,i,o){return P(Math.pow((n(s)-n(e))*i,2)+Math.pow((n(r)-n(t))*o,2))}function r(e){return console.warn(e)}function s(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function v(e){if(!(e=k(e)[0]))return 0;var t,n,i,a,f,h,d,l=e.tagName.toLowerCase(),u=e.style,c=1,g=1;s(e)&&(g=e.getScreenCTM(),c=P(g.a*g.a+g.b*g.b),g=P(g.d*g.d+g.c*g.c));try{n=e.getBBox()}catch(e){r("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var _=n||{x:0,y:0,width:0,height:0},p=_.x,x=_.y,y=_.width,m=_.height;if(n&&(y||m)||!M[l]||(y=o(e,M[l][0]),m=o(e,M[l][1]),"rect"!==l&&"line"!==l&&(y*=2,m*=2),"line"===l&&(p=o(e,"x1"),x=o(e,"y1"),y=Math.abs(y-p),m=Math.abs(m-x))),"path"===l)a=u.strokeDasharray,u.strokeDasharray="none",t=e.getTotalLength()||0,c!==g&&r("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(c+g)/2,u.strokeDasharray=a;else if("rect"===l)t=2*y*c+2*m*g;else if("line"===l)t=q(p,x,p+y,x+m,c,g);else if("polyline"===l||"polygon"===l)for(i=e.getAttribute("points").match(b)||[],"polygon"===l&&i.push(i[0],i[1]),t=0,f=2;f<i.length;f+=2)t+=q(i[f-2],i[f-1],i[f],i[f+1],c,g)||0;else"circle"!==l&&"ellipse"!==l||(h=y/2*c,d=m/2*g,t=Math.PI*(3*(h+d)-P((3*h+d)*(h+3*d))));return t||0}function w(e,t){if(!(e=k(e)[0]))return[0,0];t=t||v(e)+1;var s=h.getComputedStyle(e),r=s.strokeDasharray||"",i=n(s.strokeDashoffset),o=r.indexOf(",");return o<0&&(o=r.indexOf(" ")),t<(r=o<0?t:n(r.substr(0,o))||1e-5)&&(r=t),[Math.max(0,-i),Math.max(0,r-i)]}function x(){i()&&(h=window,l=t=j(),k=t.utils.toArray,d=-1!==((h.navigator||{}).userAgent||"").indexOf("Edge"))}var t,k,h,d,l,b=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,M={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},P=Math.sqrt,a={version:"3.0.5",name:"drawSVG",register:function register(e){t=e,x()},init:function init(e,t){if(!e.getBBox)return!1;l||x();var r,i,o,a,f=v(e)+1;return this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",i=function _parse(e,t,s){var r,i,o=e.indexOf(" ");return i=o<0?(r=void 0!==s?s+"":e,e):(r=e.substr(0,o),e.substr(o+1)),r=~r.indexOf("%")?n(r)/100*t:n(r),(i=~i.indexOf("%")?n(i)/100*t:n(i))<r?[i,r]:[r,i]}(t,f,(r=w(e,f))[0]),this._length=m(f+10),0===r[0]&&0===i[0]?(o=Math.max(1e-5,i[1]-f),this._dash=m(f+o),this._offset=m(f-r[1]+o),this._offsetPT=this.add(this,"_offset",this._offset,m(f-i[1]+o))):(this._dash=m(r[1]-r[0])||1e-6,this._offset=m(-r[0]),this._dashPT=this.add(this,"_dash",this._dash,m(i[1]-i[0])||1e-5),this._offsetPT=this.add(this,"_offset",this._offset,m(-i[0]))),d&&(a=h.getComputedStyle(e)).strokeLinecap!==a.strokeLinejoin&&(i=n(a.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",i,i+.01)),this._live=s(e)||~(t+"").indexOf("live"),this._props.push("drawSVG"),1},render:function render(e,t){var n,s,r,i,o=t._pt,a=t._style;if(o){for(t._live&&(n=v(t._target)+11)!==t._length&&(s=n/t._length,t._length=n,t._offsetPT.s*=s,t._offsetPT.c*=s,t._dashPT?(t._dashPT.s*=s,t._dashPT.c*=s):t._dash*=s);o;)o.r(e,o.d),o=o._next;r=t._dash,i=t._offset,n=t._length,a.strokeDashoffset=t._offset,1!==e&&e?a.strokeDasharray=r+"px,"+n+"px":(r-i<.001&&n-r<=10&&(a.strokeDashoffset=i+1),a.strokeDasharray=i<.001&&n-r<=10?"none":i===r?"0px, 999999px":r+"px,"+n+"px")}},getLength:v,getPosition:w};j()&&t.registerPlugin(a),e.DrawSVGPlugin=a,e.default=a;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var body="body",shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller,half=.5*Site.page;Overlay.browse.active&&(Overlay.browse.data=$(Overlay.browse.chapter.col).children(Overlay.browse.chunk).children().length);var PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,a=Site.width-e+"px",r=100/Site.width*e+"%";$(".width").html(a),gsap.set(Overlay.mobile.bar,{width:r})},CheckWidth=function(){Site.respond||(Site.mobile?(gsap.set(Overlay.mobile.screen,{display:Site.open}),PrintWidth()):gsap.set(Overlay.mobile.screen,{clearProps:"display"}))};Overlay.mobile.active&&($(CheckWidth),$(window).resize(CheckWidth));var ExpandBlock=function(e){var a=$(e.target),r=a.parent().siblings(Site.page.artwork).children(Site.code.wrap);"none"==r.css("display")?(gsap.set(r,{display:Site.open}),gsap.set(a,{text:"Hide"})):(gsap.set(r,{clearProps:"display"}),gsap.set(a,{text:"Show"}))};Site.code.active&&$(Site.code.expand).click(function(e){ExpandBlock(e)});var OpenOverlay=function(e){gsap.set(body,{overflow:"hidden"}),gsap.set(".overlay."+e,{display:Site.open})},CloseOverlay=function(e){gsap.set([body,".overlay."+e],{clearProps:"all"})};function KeyFunc(e){var a=e.keyCode;27==a&&(Overlay.about.active&&Overlay.about.open&&(CloseOverlay("about"),Overlay.about.open=!1),Overlay.browse.active&&Overlay.browse.open&&(CloseOverlay("browse"),Overlay.browse.open=!1),Overlay.search.active&&Overlay.search.open&&(CloseOverlay("search"),$(Overlay.search.input).val(""),$(Overlay.search.results).html(""),Overlay.search.open=!1)),Overlay.about.active&&65==a&&(OpenOverlay("about"),Overlay.about.open=!0),Overlay.browse.active&&66==a&&(OpenOverlay("browse"),Overlay.browse.open=!0),Overlay.search.active&&83==a&&(OpenOverlay("search"),$(Overlay.search.input).focus(),Overlay.search.open=!0)}Overlay.about.active&&($(Overlay.about.btn).click(function(){OpenOverlay("about"),Overlay.about.open=!0}),$(Overlay.about.exit).click(function(){CloseOverlay("about"),Overlay.about.open=!1})),Overlay.browse.active&&($(Overlay.browse.btn).click(function(){OpenOverlay("browse"),Overlay.browse.open=!0}),$(Overlay.browse.exit).click(function(){CloseOverlay("browse"),Overlay.browse.open=!1})),Overlay.search.active&&($(Overlay.search.btn).click(function(){OpenOverlay("search"),$(Overlay.search.input).focus(),Overlay.search.open=!0}),$(Overlay.search.exit).click(function(){CloseOverlay("search"),$(Overlay.search.input).val(""),$(Overlay.search.results).html(""),Overlay.search.open=!1})),$(document).keyup(function(e){Site.respond?KeyFunc(e):Site.mobile||KeyFunc(e)});var ScrollerUpdate=function(){var e=$(Site.scroll.lnk);1<e.length&&e.each(function(){var e=$(this)[0].classList[2],a=TweenMax.to(Site.scroll.lnk+e,.1,{className:"+=active"});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(a).addTo(controller)})},ScrollFunc=function(){var t='<div class="area _scroller"><div class="wrap _scroller">';$(Site.chapter.target).each(function(e,a){var r=$(a)[0].children[0].id;0==e?t+='<a class="lnk _scroller '.concat(r,'" href="#').concat(r,'" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>'):e==$(Site.chapter.target).length-1?t+='<a class="lnk _scroller '.concat(r,'" href="#').concat(r,'"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>'):t+='<a class="lnk _scroller '.concat(r,'" href="#').concat(r,'"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>')}),t+="</div></div>",$(Site.feed).append(t),ScrollerUpdate(),SmoothScroll()};Site.chapter.active&&$(function(){1<$(Site.chapter.target).length&&ScrollFunc()});var SetupHome=function(){$(body).hasClass("setup-library")&&$(body).hasClass("layout-single")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(Site.home.book.area,{y:-5},{duration:1,y:5}),$(Site.home.wrap).slick(Site.home.slick),$(Site.home.book.wrap).hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};Site.home.active&&$(SetupHome);var SiteFunc=function(){Site.respond?gsap.set(Site.target,{display:Site.open}):Site.mobile||($(body).hasClass("setup-library")&&$(body).hasClass("type-home")?gsap.set(Site.target,{display:"block"}):gsap.set(Site.target,{display:Site.open})),setTimeout(function(){gsap.set(Overlay.load.screen,{display:"none"}),SiteTl.pause()},1e3)};Overlay.load.active&&($(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 SplitCode=function(){$(Site.code.page).each(function(e,a){$(Site.code.scss,this);var r=$(Site.code.html,this),t=r.html();r.text(t)})};Site.code.active&&$(SplitCode);var StartBrowse=function(){var e=$(".block.browse-lnk",Overlay.browse.book.col)[0],a=$(".block.browse-chunk",Overlay.browse.chapter.col)[0],r=$(".block.browse-chunk",Overlay.browse.page.col)[0],t=$(r)[0].children[0],o=$(e)[0].children[0],l=$(a)[0].children[0].children[0],s=$(t)[0].children[0].children[0];gsap.timeline().set(Overlay.browse.chunk,{display:"none"}).set([a,r,t],{display:"block"}).set([o,l,s],{backgroundColor:shade})},HoverBook=function(e){var a=$(e.target)[0].classList[2].slice(5),r=$(Overlay.browse.chunk+"."+a,Overlay.browse.chapter.col),t=$(Overlay.browse.chunk+"."+a,Overlay.browse.page.col),o=$(t)[0].children[0],l=$(r)[0].children[0].children[0],s=$(o)[0].children[0].children[0];gsap.timeline().set(Overlay.browse.chunk,{display:"none"}).set([r,t,o],{display:"block"}).set([Overlay.browse.book.lnk,Overlay.browse.chapter.lnk,Overlay.browse.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),l,s],{backgroundColor:shade})},HoverChap=function(e){var a=$(e.target)[0].classList[2].slice(5),r=$(e.target)[0].classList[3].slice(8),t=$(Overlay.browse.chunk+"."+a,Overlay.browse.chapter.col),o=$(Overlay.browse.chunk+"."+a,Overlay.browse.page.col),l=$(Overlay.browse.chunk+"."+r,o),s=$(l)[0].children[0].children[0];gsap.timeline().set(Overlay.browse.chunk,{display:"none"}).set([t,o,l],{display:"block"}).set([Overlay.browse.chapter.lnk,Overlay.browse.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),s],{backgroundColor:shade})},HoverPage=function(e){gsap.timeline().set(Overlay.browse.page.lnk,{clearProps:"backgroundColor"}).set($(e.target),{backgroundColor:shade})};Overlay.browse.active&&$(function(){$(body).hasClass(Site.home.class)||0<Overlay.browse.data&&(StartBrowse(),$(Overlay.browse.book.lnk).hover(function(e){HoverBook(e)}),$(Overlay.browse.chapter.lnk).hover(function(e){HoverChap(e)}),$(Overlay.browse.page.lnk).hover(function(e){HoverPage(e)}))});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),r=$(a)[0].classList[2],t=$(a).children(Site.page.url).text().replace("index",""),o=$(a)[0].children[1],l=gsap.timeline(),s="";"page"==r&&(s="Copy page"),UtilCopy(t),l.set(o,{text:"Copied!"}).to(o,{duration:.3,opacity:0},"+=0.6").set(o,{text:s,clearProps:"all"},"+=0.3")};Site.page.active&&$(function(){$(Site.page.share).click(UtilShare)});
|
@@ -27,18 +27,16 @@ padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){va
|
|
27
27
|
"top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick("getSlick"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?"left":"right":o<=360&&o>=315?s.options.rtl===!1?"left":"right":o>=135&&o<=225?s.options.rtl===!1?"right":"left":s.options.verticalSwiping===!0?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||"undefined"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),"undefined"!=typeof t)return t;return o}});
|
28
28
|
|
29
29
|
/*!
|
30
|
-
*
|
31
|
-
*
|
32
|
-
* UPDATES AND DOCS AT: http://greensock.com
|
30
|
+
* DrawSVGPlugin 3.0.5
|
31
|
+
* https://greensock.com
|
33
32
|
*
|
34
|
-
* @license Copyright
|
35
|
-
*
|
36
|
-
* this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
|
37
|
-
* This work is subject to the software agreement that was issued with your membership.
|
38
|
-
*
|
33
|
+
* @license Copyright 2020, GreenSock. All rights reserved.
|
34
|
+
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
|
39
35
|
* @author: Jack Doyle, jack@greensock.com
|
40
36
|
*/
|
41
|
-
|
37
|
+
|
38
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return"undefined"!=typeof window}function j(){return t||i()&&(t=window.gsap)&&t.registerPlugin&&t}function m(e){return Math.round(1e4*e)/1e4}function n(e){return parseFloat(e||0)}function o(e,t){return n(e.getAttribute(t))}function q(e,t,s,r,i,o){return P(Math.pow((n(s)-n(e))*i,2)+Math.pow((n(r)-n(t))*o,2))}function r(e){return console.warn(e)}function s(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function v(e){if(!(e=k(e)[0]))return 0;var t,n,i,a,f,h,d,l=e.tagName.toLowerCase(),u=e.style,c=1,g=1;s(e)&&(g=e.getScreenCTM(),c=P(g.a*g.a+g.b*g.b),g=P(g.d*g.d+g.c*g.c));try{n=e.getBBox()}catch(e){r("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var _=n||{x:0,y:0,width:0,height:0},p=_.x,x=_.y,y=_.width,m=_.height;if(n&&(y||m)||!M[l]||(y=o(e,M[l][0]),m=o(e,M[l][1]),"rect"!==l&&"line"!==l&&(y*=2,m*=2),"line"===l&&(p=o(e,"x1"),x=o(e,"y1"),y=Math.abs(y-p),m=Math.abs(m-x))),"path"===l)a=u.strokeDasharray,u.strokeDasharray="none",t=e.getTotalLength()||0,c!==g&&r("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(c+g)/2,u.strokeDasharray=a;else if("rect"===l)t=2*y*c+2*m*g;else if("line"===l)t=q(p,x,p+y,x+m,c,g);else if("polyline"===l||"polygon"===l)for(i=e.getAttribute("points").match(b)||[],"polygon"===l&&i.push(i[0],i[1]),t=0,f=2;f<i.length;f+=2)t+=q(i[f-2],i[f-1],i[f],i[f+1],c,g)||0;else"circle"!==l&&"ellipse"!==l||(h=y/2*c,d=m/2*g,t=Math.PI*(3*(h+d)-P((3*h+d)*(h+3*d))));return t||0}function w(e,t){if(!(e=k(e)[0]))return[0,0];t=t||v(e)+1;var s=h.getComputedStyle(e),r=s.strokeDasharray||"",i=n(s.strokeDashoffset),o=r.indexOf(",");return o<0&&(o=r.indexOf(" ")),t<(r=o<0?t:n(r.substr(0,o))||1e-5)&&(r=t),[Math.max(0,-i),Math.max(0,r-i)]}function x(){i()&&(h=window,l=t=j(),k=t.utils.toArray,d=-1!==((h.navigator||{}).userAgent||"").indexOf("Edge"))}var t,k,h,d,l,b=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,M={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},P=Math.sqrt,a={version:"3.0.5",name:"drawSVG",register:function register(e){t=e,x()},init:function init(e,t){if(!e.getBBox)return!1;l||x();var r,i,o,a,f=v(e)+1;return this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",i=function _parse(e,t,s){var r,i,o=e.indexOf(" ");return i=o<0?(r=void 0!==s?s+"":e,e):(r=e.substr(0,o),e.substr(o+1)),r=~r.indexOf("%")?n(r)/100*t:n(r),(i=~i.indexOf("%")?n(i)/100*t:n(i))<r?[i,r]:[r,i]}(t,f,(r=w(e,f))[0]),this._length=m(f+10),0===r[0]&&0===i[0]?(o=Math.max(1e-5,i[1]-f),this._dash=m(f+o),this._offset=m(f-r[1]+o),this._offsetPT=this.add(this,"_offset",this._offset,m(f-i[1]+o))):(this._dash=m(r[1]-r[0])||1e-6,this._offset=m(-r[0]),this._dashPT=this.add(this,"_dash",this._dash,m(i[1]-i[0])||1e-5),this._offsetPT=this.add(this,"_offset",this._offset,m(-i[0]))),d&&(a=h.getComputedStyle(e)).strokeLinecap!==a.strokeLinejoin&&(i=n(a.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",i,i+.01)),this._live=s(e)||~(t+"").indexOf("live"),this._props.push("drawSVG"),1},render:function render(e,t){var n,s,r,i,o=t._pt,a=t._style;if(o){for(t._live&&(n=v(t._target)+11)!==t._length&&(s=n/t._length,t._length=n,t._offsetPT.s*=s,t._offsetPT.c*=s,t._dashPT?(t._dashPT.s*=s,t._dashPT.c*=s):t._dash*=s);o;)o.r(e,o.d),o=o._next;r=t._dash,i=t._offset,n=t._length,a.strokeDashoffset=t._offset,1!==e&&e?a.strokeDasharray=r+"px,"+n+"px":(r-i<.001&&n-r<=10&&(a.strokeDashoffset=i+1),a.strokeDasharray=i<.001&&n-r<=10?"none":i===r?"0px, 999999px":r+"px,"+n+"px")}},getLength:v,getPosition:w};j()&&t.registerPlugin(a),e.DrawSVGPlugin=a,e.default=a;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});
|
39
|
+
|
42
40
|
/*!
|
43
41
|
* VERSION: 0.9.2
|
44
42
|
* DATE: 2019-08-13
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var _Site;function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var Overlay={mobile:{active:!0,screen:".area.overlay.mobile",bar:".bar.mobile"},load:{active:!0,title:".title.overlay.load",screen:".area.overlay.load",box:".box.load",bar:".bar.load",speed:.3},about:{active:!0,btn:".btn.nav.about",exit:".exit.about",open:!1},browse:{active:!0,btn:".btn.nav.browse",exit:".exit.browse",chunk:".browse-chunk",open:!1,book:{lnk:".lnk.browse-book",col:".col.browse.book"},chapter:{lnk:".lnk.browse-chapter",col:".col.browse.chapter"},page:{lnk:".lnk.browse-page",col:".col.browse.page"}},search:{active:!0,input:".input.text.search",results:".block.results",btn:".btn.nav.search",exit:".exit.search",json:"/search.json",open:!1}},Site=(_defineProperty(_Site={respond:!1,width:1200,page:560,mobile:!0,target:".site",feed:".site.feed",single:".site.single",scroll:{lnk:".lnk.scroller"},chapter:{active:!0,target:".wrap.type-chapter"}},"page",{active:!0,artwork:".area.page-artwork",share:".util-share",url:".util-url"}),_defineProperty(_Site,"code",{active:!0,page:".wrap.type-page.setup-docs",expand:".block.expand-block",wrap:".code-wrap",scss:".code-scss",html:".code-html"}),_defineProperty(_Site,"home",{active:!0,wrap:".wrap.home",class:"type-home",book:{wrap:".wrap.book",area:".area.book"},slick:{slidesToScroll:1,slidesToShow:5,infinite:!0,arrows:!1}}),_Site);Config.legacy?Site.open="block":Site.open="grid",enquire.register("screen and (min-width:"+Site.width+"px)",{match:function(){Site.mobile=!1},unmatch:function(){Site.mobile=!0}});
|