futuro 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/html/assign/page.liquid +1 -1
- data/_includes/html/assign/site.liquid +4 -3
- data/_includes/html/head/meta.liquid +1 -1
- data/_includes/html/page/content.liquid +11 -6
- data/_includes/html/page/content/loop/button/example.liquid +0 -4
- data/_includes/html/page/header.liquid +1 -1
- data/_includes/html/page/info.liquid +1 -1
- data/_includes/html/page/layout/home.liquid +13 -24
- data/_includes/html/page/layout/page.liquid +7 -7
- data/_includes/html/page/title.liquid +27 -13
- data/_includes/html/page/util.liquid +3 -3
- data/_includes/html/page/util/share.liquid +10 -10
- data/_includes/html/search/loop.liquid +1 -1
- data/_includes/svg/site/icon.liquid +8 -0
- data/_sass/_bar.scss +1 -1
- data/_sass/_base.scss +1 -1
- data/_sass/_box.scss +1 -1
- data/_sass/_button.scss +3 -3
- data/_sass/_col.scss +2 -2
- data/_sass/_item.scss +1 -1
- data/_sass/_link.scss +21 -1
- data/_sass/_site.scss +6 -2
- data/_sass/area/overlay.scss +3 -3
- data/_sass/block/access.scss +2 -3
- data/_sass/block/alert.scss +1 -1
- data/_sass/block/form/checkbox.scss +5 -5
- data/_sass/block/form/header.scss +1 -1
- data/_sass/block/form/item.scss +1 -1
- data/_sass/block/form/legend.scss +2 -2
- data/_sass/block/form/password.scss +1 -1
- data/_sass/block/form/select.scss +0 -34
- data/_sass/block/form/title.scss +1 -1
- data/_sass/block/navigation.scss +1 -1
- data/_sass/block/page.scss +4 -4
- data/_sass/block/results.scss +1 -1
- data/_sass/block/util.scss +17 -12
- data/_sass/futuro.core.scss +27 -1
- data/_sass/helpers/extends.scss +19 -19
- data/_sass/helpers/extends/layout.scss +1 -1
- data/_sass/helpers/mixins/items.scss +11 -11
- data/_sass/helpers/mixins/patterns.scss +4 -4
- data/_sass/helpers/mixins/theme.scss +21 -18
- data/_sass/helpers/variables.scss +139 -69
- data/_sass/title/docs.scss +1 -1
- data/_sass/title/overlay.scss +2 -2
- data/_sass/title/page.scss +1 -1
- data/_sass/title/type.scss +14 -11
- data/_sass/wrap/book.scss +0 -19
- data/_sass/wrap/browse.scss +1 -1
- data/_sass/wrap/chapter.scss +4 -2
- data/_sass/wrap/home.scss +8 -9
- data/_sass/wrap/page.scss +3 -3
- data/assets/js/footer/custom/SetupHome.js +26 -32
- data/assets/js/footer/custom/SiteFunc.js +12 -31
- data/assets/js/footer/custom/UtilShare.js +60 -31
- data/assets/js/footer/custom/WhatsOn.js +45 -0
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.footer.vendor.js +0 -19
- data/assets/js/futuro.header.custom.js +1 -1
- data/assets/js/header/custom/Config.js +1 -1
- metadata +3 -8
- data/_includes/artwork/orwell/animal/flob.scss +0 -5
- data/_includes/artwork/orwell/animal/waldo.scss +0 -45
- data/_includes/svg/site/btn/share/chapter.svg +0 -1
- data/_includes/svg/site/btn/share/page.svg +0 -1
- data/_sass/_slick.scss +0 -133
- data/assets/js/footer/vendor/slick.js +0 -18
@@ -1,41 +1,35 @@
|
|
1
1
|
|
2
2
|
const SetupHome = () => {
|
3
|
+
|
4
|
+
let tl = gsap.timeline({
|
5
|
+
repeat : -1,
|
6
|
+
yoyo : true,
|
7
|
+
defaults : {
|
8
|
+
ease : "sine.inOut"
|
9
|
+
}
|
10
|
+
});
|
3
11
|
|
4
|
-
|
12
|
+
tl.fromTo(".link.book", {
|
13
|
+
y : - 5
|
14
|
+
},{
|
15
|
+
duration : 1,
|
16
|
+
y : 5
|
17
|
+
});
|
5
18
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
19
|
+
$(".wrap.book").hover(
|
20
|
+
function() {
|
21
|
+
gsap.to(this,{
|
22
|
+
duration : 0.1,
|
23
|
+
y : -20
|
12
24
|
});
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
y : 5
|
25
|
+
},
|
26
|
+
function() {
|
27
|
+
gsap.to(this,{
|
28
|
+
duration : 0.1,
|
29
|
+
y : 0
|
19
30
|
});
|
31
|
+
});
|
20
32
|
|
21
|
-
$(".wrap.home").slick(Config.slick);
|
22
|
-
|
23
|
-
$(".wrap.book").hover(
|
24
|
-
function() {
|
25
|
-
gsap.to(this,{
|
26
|
-
duration : 0.1,
|
27
|
-
y : -20
|
28
|
-
});
|
29
|
-
},
|
30
|
-
function() {
|
31
|
-
gsap.to(this,{
|
32
|
-
duration : 0.1,
|
33
|
-
y : 0
|
34
|
-
});
|
35
|
-
});
|
36
|
-
}
|
37
33
|
}
|
38
34
|
|
39
|
-
if (SiteIsLibrary) {
|
40
|
-
$(SetupHome);
|
41
|
-
}
|
35
|
+
if (SiteIsLibrary) { if (BodyIsHome) { $(SetupHome); } }
|
@@ -1,49 +1,30 @@
|
|
1
1
|
|
2
2
|
const SiteFunc = () => {
|
3
3
|
|
4
|
-
if (!Config.respond) {
|
4
|
+
if (!Config.respond) {
|
5
5
|
|
6
|
-
// NOT
|
6
|
+
// Config is NOT responsive
|
7
7
|
|
8
8
|
if (!Site.mobile.active) {
|
9
9
|
|
10
|
-
// NOT
|
10
|
+
// Site is NOT mobile
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
gsap.set(site,{
|
17
|
-
display : "block"
|
18
|
-
});
|
19
|
-
|
20
|
-
} else {
|
12
|
+
gsap.set(site,{
|
13
|
+
display : Config.display
|
14
|
+
});
|
21
15
|
|
22
|
-
gsap.set(site,{
|
23
|
-
display : Config.display
|
24
|
-
});
|
25
|
-
}
|
26
16
|
}
|
17
|
+
|
27
18
|
}
|
28
19
|
|
29
20
|
else {
|
30
21
|
|
31
|
-
//
|
32
|
-
|
33
|
-
if (SiteIsLibrary && BodyIsHome) {
|
34
|
-
|
35
|
-
// IS Library AND IS Home
|
22
|
+
// Config is responsive
|
36
23
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
} else {
|
24
|
+
gsap.set(site,{
|
25
|
+
display : Config.display
|
26
|
+
});
|
42
27
|
|
43
|
-
gsap.set(site,{
|
44
|
-
display : Config.display
|
45
|
-
});
|
46
|
-
}
|
47
28
|
}
|
48
29
|
|
49
30
|
setTimeout(function() {
|
@@ -60,4 +41,4 @@ const SiteFunc = () => {
|
|
60
41
|
|
61
42
|
$(SiteFunc);
|
62
43
|
|
63
|
-
$(window).resize(SiteFunc);
|
44
|
+
$(window).resize(SiteFunc);
|
@@ -8,36 +8,65 @@ const UtilCopy = str => {
|
|
8
8
|
document.body.removeChild(el);
|
9
9
|
}
|
10
10
|
|
11
|
-
const UtilShare = e => {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
11
|
+
// const UtilShare = e => {
|
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
|
+
// title = $(ting)[0].children[1],
|
16
|
+
// tl = gsap.timeline(),
|
17
|
+
// reset = '';
|
18
|
+
|
19
|
+
// console.log(e);
|
20
|
+
|
21
|
+
|
22
|
+
// if (type == 'page') {
|
23
|
+
// reset = 'Copy page';
|
24
|
+
// }
|
25
|
+
|
26
|
+
// UtilCopy(url);
|
27
|
+
|
28
|
+
// tl
|
29
|
+
// .set(title,{
|
30
|
+
// text : 'Copied!'
|
31
|
+
// })
|
32
|
+
// .to(title,{
|
33
|
+
// duration : 0.3,
|
34
|
+
// opacity : 0
|
35
|
+
// },'+=0.6')
|
36
|
+
// .set(title,{
|
37
|
+
// text : reset,
|
38
|
+
// clearProps : 'all'
|
39
|
+
// },'+=0.3');
|
40
|
+
// }
|
38
41
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
function UtilShare() {
|
43
|
+
let target = $(this).parents(Site.page.share),
|
44
|
+
getUrl = $(target.context).find(Site.page.url).text(),
|
45
|
+
tl = gsap.timeline(),
|
46
|
+
type = "";
|
47
|
+
getUrl = getUrl.replace("waldo","");
|
48
|
+
|
49
|
+
$(target.context.classList).map((index,value)=>{
|
50
|
+
if (value.includes("type-")) {
|
51
|
+
type = value;
|
52
|
+
}
|
53
|
+
});
|
54
|
+
|
55
|
+
UtilCopy(getUrl);
|
56
|
+
|
57
|
+
// tl
|
58
|
+
// .set(title,{
|
59
|
+
// text : 'Copied!'
|
60
|
+
// })
|
61
|
+
// .to(title,{
|
62
|
+
// duration : 0.3,
|
63
|
+
// opacity : 0
|
64
|
+
// },'+=0.6')
|
65
|
+
// .set(title,{
|
66
|
+
// text : reset,
|
67
|
+
// clearProps : 'all'
|
68
|
+
// },'+=0.3');
|
69
|
+
|
43
70
|
}
|
71
|
+
|
72
|
+
if (!SiteIsTheme) { if (SiteIsShareable) { $(Site.page.share).click(UtilShare); }}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
const WhatsOn = {
|
3
|
+
|
4
|
+
speed : input => {
|
5
|
+
return input * 0.03;
|
6
|
+
},
|
7
|
+
|
8
|
+
slide : value => {
|
9
|
+
|
10
|
+
let alert = $(".block.alert-content",value),
|
11
|
+
feed = $(".alert-feed",value),
|
12
|
+
width = $(feed).width() + 100,
|
13
|
+
clone = $(".alert-clone",value);
|
14
|
+
|
15
|
+
$(alert).addClass("modify-grid");
|
16
|
+
|
17
|
+
const prep = gsap.timeline({ defaults : { ease : "none" }});
|
18
|
+
|
19
|
+
const tl = gsap.timeline({ repeat : -1, paused : true, defaults : { ease : "none" }});
|
20
|
+
|
21
|
+
tl.to([feed,clone],{ duration : WhatsOn.speed(width), x : - width });
|
22
|
+
|
23
|
+
prep
|
24
|
+
.to(alert,{
|
25
|
+
duration : WhatsOn.speed(20),
|
26
|
+
paddingLeft : 0
|
27
|
+
})
|
28
|
+
.call(()=>{
|
29
|
+
tl.play();
|
30
|
+
});
|
31
|
+
|
32
|
+
},
|
33
|
+
|
34
|
+
scroll : value => {
|
35
|
+
|
36
|
+
let feed = $(".feed",value),
|
37
|
+
height = $(feed).height(),
|
38
|
+
clone = $(".clone",value);
|
39
|
+
|
40
|
+
let tl = gsap.timeline({ repeat : -1, defaults : { ease : "none" }});
|
41
|
+
|
42
|
+
tl.to([feed,clone],{ duration : WhatsOn.speed(height), y : - height });
|
43
|
+
|
44
|
+
}
|
45
|
+
}
|
@@ -1 +1 @@
|
|
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,o=Site.desktop.width-e+"px",a=100/Site.desktop.width*e+"%";$(".width").html(o),gsap.set(Overlay.mobile.bar,{width:a})},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,o){if(1==e)BookClass="book-"+o;else if(2==e){ChapterClass="chapter-"+o}else if(3==e){PageClass="title-"+o}});var StartsWith=function(e,o){"book"==o?e.startsWith("book-")&&(BookClass=e):e.startsWith("chapter-")&&(ChapterClass=e)},CreateMatch=function(e,o){var a=1<arguments.length&&void 0!==o?o:"book";$(e.classList).each(function(e,o){StartsWith(o,a)})},CheckBookClass=function(e){Found=!1,$(e.classList).each(function(e,o){o.startsWith("book-")&&BookClass==o&&(BookNotFound=!(Found=!0))})},CheckChapterClass=function(e){Found=!1,$(e.classList).each(function(e,o){o.startsWith("chapter-")&&ChapterClass==o&&(ChapterNotFound=!(Found=!0))})},CheckPageClass=function(e){Found=!1,$(e.classList).each(function(e,o){o.startsWith("title-")&&PageClass==o&&(PageNotFound=!(Found=!0))})},IfFound=function(e){Found?gsap.set(e,ClearDisplay):gsap.set(e,DisplayNone)},Round=function(e){return Math.round(100*e)/100},Ratio=function(e,o){return Round(tinycolor.readability(e,o))},CheckContrast=function(e,o,a){var t={ratio:$(e).find(Site.access.ratio),color:tinycolor($(o,e).css("color")).toHexString(),backg:tinycolor($(a,e).css("background-color")).toHexString()},s={ratio:Ratio(t.color,t.backg)};$(t.ratio).text(s.ratio),4.5<=s.ratio?$(t.ratio).addClass(Site.access.best):3<=s.ratio?$(t.ratio).addClass(Site.access.good):$(t.ratio).addClass(Site.access.poor)},ResetContrast=function(e){var o={ratio:$(e).find(Site.access.ratio)};$(o.ratio).attr("class","block access-ratio")},ActiveBook=function(){if(!BodyIsHome){var t="";$(BodyClasses).map(function(e,o){if(o.startsWith("book-")){t=o.slice(5);var a=$("button",Site.topbar.lnk+"."+t);gsap.set(a,{borderBottom:"3px solid"})}})}};SiteIsTheme||$(ActiveBook),$(".item.scroller").each(function(e,o){var a=$(o)[0].classList[2],t="#".concat(a,"-").concat(a),s=".item.scroller.".concat(a);return new ScrollMagic.Scene({triggerElement:t}).setTween(s,.1,{opacity:1}).addTo(controller)});var ArtformHeader=function(){var o=".header.title-artform",a=gsap.timeline({repeat:-1});["theatre","talks","music","classical","cinema","tours","hire","art"].map(function(e){a.set(o,{opacity:1,onComplete:function(){$(o).addClass("tag-"+e),$(Page+".title-artform").map(function(e,o){CheckContrast(o,".block.header",".block.header")})}}).set(o,{clearProps:"all",delay:1.5,onComplete:function(){$(o).attr("class","block header title-artform"),$(Page+".title-artform").map(function(e,o){ResetContrast(e,o,".block.header",".block.header")})}})})},ChangeScreen=function(e,o,a){var t=Overlay.custom[e],s=".area.overlay-"+t.name,n=$(".input.text-search"),r=$(".wrap.results");"close"==a?(gsap.set(body,{clearProps:"overflow"}),gsap.set(s,{clearProps:"display"}),t.open=!1,"search"==o.name&&(n.val(""),r.empty())):(gsap.set(body,{overflow:"hidden"}),gsap.set(s,{display:Config.display}),t.open=!0,"search"==o.name&&n.focus())},BuildScreens=function(e,o){var a=Overlay.button+"."+o.name,t=Overlay.exit+"."+o.name;$(a).click(function(){ChangeScreen(e,o,"open")}),$(t).click(function(){ChangeScreen(e,o,"close")})},KeyUp=function(a){$(Overlay.custom).map(function(e,o){o.open&&27==a.keyCode&&ChangeScreen(e,o,"close"),o.open||SiteInFocus||(65==a.keyCode&&"about"==o.name&&ChangeScreen(e,o,"open"),66==a.keyCode&&"browse"==o.name&&ChangeScreen(e,o,"open"),83==a.keyCode&&"search"==o.name&&ChangeScreen(e,o,"open"))})};$(Overlay.custom).map(function(e,o){BuildScreens(e,o)}),$(document).keyup(function(e){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,o){CheckBookClass(o),IfFound(o),gsap.set(o.children,ClearBackground),gsap.set(o.children[0],BackgroundShade)}),PageBooks.each(function(e,o){CheckBookClass(o),IfFound(o),gsap.set(o.children,DisplayNone),gsap.set(o.children[0],ClearDisplay),gsap.set(o.children[0].children,ClearBackground),gsap.set(o.children[0].children[0],BackgroundShade)})}),ChapterLinks.hover(function(e){var o=this.parentElement;CreateMatch(o,"book"),CreateMatch(this,"chapter"),gsap.set(ChapterLinks,ClearBackground),gsap.set(this,BackgroundShade),PageChapters.each(function(e,o){CheckChapterClass(o),IfFound(o),gsap.set(o.children,ClearBackground),gsap.set(o.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 o=$(this.hash);(o=o.length?o:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:o.offset().top},500,function(){var e=$(o);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})};$(SmoothScroll);var StartBrowse=function(){BookLinks.each(function(e,o){CheckBookClass(o),Found&&gsap.set(o,BackgroundShade)}),ChapterBooks.each(function(e,o){CheckBookClass(o),Found?(gsap.set(o,ClearDisplay),$(o.children).each(function(e,o){CheckChapterClass(o),Found&&gsap.set(o,BackgroundShade)}),ChapterNotFound&&gsap.set(o.children[0],BackgroundShade)):gsap.set(o,DisplayNone)}),PageBooks.each(function(e,o){CheckBookClass(o),Found?(gsap.set(o,ClearDisplay),$(o.children).each(function(e,o){CheckChapterClass(o),Found?(gsap.set(o,ClearDisplay),$(o.children).each(function(e,o){CheckPageClass(o),Found&&gsap.set(o,BackgroundShade)}),PageNotFound&&gsap.set(o.children[0],BackgroundShade)):gsap.set(o,DisplayNone)}),ChapterNotFound&&(gsap.set(o.children[0],ClearDisplay),gsap.set(o.children[0].children[0],BackgroundShade))):gsap.set(o,DisplayNone)})};SiteIsTheme||BodyIsHome||Browseable&&StartBrowse();var Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,o){var a=$(e.target),t=a.siblings(".button-bg"),s=a.parent(),n={dis:{before:$(s).siblings(".before"),after:$(s).siblings(".after")},dat:{before:$(s).parent().siblings().children(".before"),after:$(s).parent().siblings().children(".after")}},r=[n.dis.before,n.dat.before],i=[n.dis.after,n.dat.after];if(s.hasClass("undo"))"down"===o?gsap.set([s,t],{clearProps:"all"}):"up"===o&&($(s).removeClass("undo"),gsap.set([r,i],{clearProps:"all"}),gsap.set(a,{text:"Next"}));else if("down"===o)gsap.set([s,t],{scale:.95});else if("up"===o){gsap.timeline().to(r,{duration:.2,opacity:0}).set([s,t],{backgroundColor:Color.green}).set(a,{text:"Undo"}).set(r,{display:"none"}).set(i,{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 FocusInputs=["input","textarea"],SetFocus=function(e){SiteInFocus=e};FocusInputs.map(function(e){$(e).focusin(function(){SetFocus(!0)}).focusout(function(){SetFocus(!1)})});var UtilCopy=function(e){var o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)},UtilShare=function(e){var o=$(e.target).parents(Site.page.share),a=$(o)[0].classList[2],t=$(o).children(Site.page.url).text().replace("index",""),s=$(o)[0].children[1],n=gsap.timeline(),r="";"page"==a&&(r="Copy page"),UtilCopy(t),n.set(s,{text:"Copied!"}).to(s,{duration:.3,opacity:0},"+=0.6").set(s,{text:r,clearProps:"all"},"+=0.3")};SiteIsTheme||SiteIsShareable&&$(Site.page.share).click(UtilShare);var YouSaved=function(e){var o=$(".block.form-alert",e),a=tinycolor($(o).css("border-color")).toHexString(),t=tinycolor($(o).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(o,{backgroundColor:tinycolor(t).darken(5),borderColor:tinycolor(a).darken(10)}).set(o,{clearProps:"all",delay:.2}).set(o,{backgroundColor:tinycolor(t).darken(5),borderColor:tinycolor(a).darken(10),delay:.2}).to(o,{backgroundColor:t,borderColor:a,duration:.8,delay:.2})};
|
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,o=Site.desktop.width-e+"px",a=100/Site.desktop.width*e+"%";$(".width").html(o),gsap.set(Overlay.mobile.bar,{width:a})},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,o){if(1==e)BookClass="book-"+o;else if(2==e){ChapterClass="chapter-"+o}else if(3==e){PageClass="title-"+o}});var StartsWith=function(e,o){"book"==o?e.startsWith("book-")&&(BookClass=e):e.startsWith("chapter-")&&(ChapterClass=e)},CreateMatch=function(e,o){var a=1<arguments.length&&void 0!==o?o:"book";$(e.classList).each(function(e,o){StartsWith(o,a)})},CheckBookClass=function(e){Found=!1,$(e.classList).each(function(e,o){o.startsWith("book-")&&BookClass==o&&(BookNotFound=!(Found=!0))})},CheckChapterClass=function(e){Found=!1,$(e.classList).each(function(e,o){o.startsWith("chapter-")&&ChapterClass==o&&(ChapterNotFound=!(Found=!0))})},CheckPageClass=function(e){Found=!1,$(e.classList).each(function(e,o){o.startsWith("title-")&&PageClass==o&&(PageNotFound=!(Found=!0))})},IfFound=function(e){Found?gsap.set(e,ClearDisplay):gsap.set(e,DisplayNone)},Round=function(e){return Math.round(100*e)/100},Ratio=function(e,o){return Round(tinycolor.readability(e,o))},CheckContrast=function(e,o,a){var t={ratio:$(e).find(Site.access.ratio),color:tinycolor($(o,e).css("color")).toHexString(),backg:tinycolor($(a,e).css("background-color")).toHexString()},s={ratio:Ratio(t.color,t.backg)};$(t.ratio).text(s.ratio),4.5<=s.ratio?$(t.ratio).addClass(Site.access.best):3<=s.ratio?$(t.ratio).addClass(Site.access.good):$(t.ratio).addClass(Site.access.poor)},ResetContrast=function(e){var o={ratio:$(e).find(Site.access.ratio)};$(o.ratio).attr("class","block access-ratio")},ActiveBook=function(){if(!BodyIsHome){var t="";$(BodyClasses).map(function(e,o){if(o.startsWith("book-")){t=o.slice(5);var a=$("button",Site.topbar.lnk+"."+t);gsap.set(a,{borderBottom:"3px solid"})}})}};SiteIsTheme||$(ActiveBook),$(".item.scroller").each(function(e,o){var a=$(o)[0].classList[2],t="#".concat(a,"-").concat(a),s=".item.scroller.".concat(a);return new ScrollMagic.Scene({triggerElement:t}).setTween(s,.1,{opacity:1}).addTo(controller)});var ArtformHeader=function(){var o=".header.title-artform",a=gsap.timeline({repeat:-1});["theatre","talks","music","classical","cinema","tours","hire","art"].map(function(e){a.set(o,{opacity:1,onComplete:function(){$(o).addClass("tag-"+e),$(Page+".title-artform").map(function(e,o){CheckContrast(o,".block.header",".block.header")})}}).set(o,{clearProps:"all",delay:1.5,onComplete:function(){$(o).attr("class","block header title-artform"),$(Page+".title-artform").map(function(e,o){ResetContrast(e,o,".block.header",".block.header")})}})})},ChangeScreen=function(e,o,a){var t=Overlay.custom[e],s=".area.overlay-"+t.name,n=$(".input.text-search"),r=$(".wrap.results");"close"==a?(gsap.set(body,{clearProps:"overflow"}),gsap.set(s,{clearProps:"display"}),t.open=!1,"search"==o.name&&(n.val(""),r.empty())):(gsap.set(body,{overflow:"hidden"}),gsap.set(s,{display:Config.display}),t.open=!0,"search"==o.name&&n.focus())},BuildScreens=function(e,o){var a=Overlay.button+"."+o.name,t=Overlay.exit+"."+o.name;$(a).click(function(){ChangeScreen(e,o,"open")}),$(t).click(function(){ChangeScreen(e,o,"close")})},KeyUp=function(a){$(Overlay.custom).map(function(e,o){o.open&&27==a.keyCode&&ChangeScreen(e,o,"close"),o.open||SiteInFocus||(65==a.keyCode&&"about"==o.name&&ChangeScreen(e,o,"open"),66==a.keyCode&&"browse"==o.name&&ChangeScreen(e,o,"open"),83==a.keyCode&&"search"==o.name&&ChangeScreen(e,o,"open"))})};$(Overlay.custom).map(function(e,o){BuildScreens(e,o)}),$(document).keyup(function(e){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,o){CheckBookClass(o),IfFound(o),gsap.set(o.children,ClearBackground),gsap.set(o.children[0],BackgroundShade)}),PageBooks.each(function(e,o){CheckBookClass(o),IfFound(o),gsap.set(o.children,DisplayNone),gsap.set(o.children[0],ClearDisplay),gsap.set(o.children[0].children,ClearBackground),gsap.set(o.children[0].children[0],BackgroundShade)})}),ChapterLinks.hover(function(e){var o=this.parentElement;CreateMatch(o,"book"),CreateMatch(this,"chapter"),gsap.set(ChapterLinks,ClearBackground),gsap.set(this,BackgroundShade),PageChapters.each(function(e,o){CheckChapterClass(o),IfFound(o),gsap.set(o.children,ClearBackground),gsap.set(o.children[0],BackgroundShade)})}),PageLinks.hover(function(e){gsap.set(PageLinks,ClearBackground),gsap.set(this,BackgroundShade)})};SiteIsTheme||BodyIsHome||Browseable&&RespondBrowse();var SetupHome=function(){gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".link.book",{y:-5},{duration:1,y:5}),$(".wrap.book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})})};SiteIsLibrary&&BodyIsHome&&$(SetupHome);var SiteFunc=function(){Config.respond?gsap.set(site,{display:Config.display}):Site.mobile.active||gsap.set(site,{display:Config.display}),setTimeout(function(){gsap.set(Overlay.load.screen,{clearProps:"display"}),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 o=$(this.hash);(o=o.length?o:$("[name="+this.hash.slice(1)+"]")).length&&(e.preventDefault(),$("html, body").animate({scrollTop:o.offset().top},500,function(){var e=$(o);if(e.focus(),e.is(":focus"))return!1;e.attr("tabindex","-1"),e.focus()}))}})};$(SmoothScroll);var StartBrowse=function(){BookLinks.each(function(e,o){CheckBookClass(o),Found&&gsap.set(o,BackgroundShade)}),ChapterBooks.each(function(e,o){CheckBookClass(o),Found?(gsap.set(o,ClearDisplay),$(o.children).each(function(e,o){CheckChapterClass(o),Found&&gsap.set(o,BackgroundShade)}),ChapterNotFound&&gsap.set(o.children[0],BackgroundShade)):gsap.set(o,DisplayNone)}),PageBooks.each(function(e,o){CheckBookClass(o),Found?(gsap.set(o,ClearDisplay),$(o.children).each(function(e,o){CheckChapterClass(o),Found?(gsap.set(o,ClearDisplay),$(o.children).each(function(e,o){CheckPageClass(o),Found&&gsap.set(o,BackgroundShade)}),PageNotFound&&gsap.set(o.children[0],BackgroundShade)):gsap.set(o,DisplayNone)}),ChapterNotFound&&(gsap.set(o.children[0],ClearDisplay),gsap.set(o.children[0].children[0],BackgroundShade))):gsap.set(o,DisplayNone)})};SiteIsTheme||BodyIsHome||Browseable&&StartBrowse();var Button={target:".button-wrap.switch-button"},ButtonSwitch=function(e,o){var a=$(e.target),t=a.siblings(".button-bg"),s=a.parent(),n={dis:{before:$(s).siblings(".before"),after:$(s).siblings(".after")},dat:{before:$(s).parent().siblings().children(".before"),after:$(s).parent().siblings().children(".after")}},r=[n.dis.before,n.dat.before],i=[n.dis.after,n.dat.after];if(s.hasClass("undo"))"down"===o?gsap.set([s,t],{clearProps:"all"}):"up"===o&&($(s).removeClass("undo"),gsap.set([r,i],{clearProps:"all"}),gsap.set(a,{text:"Next"}));else if("down"===o)gsap.set([s,t],{scale:.95});else if("up"===o){gsap.timeline().to(r,{duration:.2,opacity:0}).set([s,t],{backgroundColor:Color.green}).set(a,{text:"Undo"}).set(r,{display:"none"}).set(i,{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 FocusInputs=["input","textarea"],SetFocus=function(e){SiteInFocus=e};FocusInputs.map(function(e){$(e).focusin(function(){SetFocus(!0)}).focusout(function(){SetFocus(!1)})});var UtilCopy=function(e){var o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)};function UtilShare(){var e=$(this).parents(Site.page.share),o=$(e.context).find(Site.page.url).text();gsap.timeline();o=o.replace("waldo",""),$(e.context.classList).map(function(e,o){o.includes("type-")&&0}),UtilCopy(o)}SiteIsTheme||SiteIsShareable&&$(Site.page.share).click(UtilShare);var WhatsOn={speed:function(e){return.03*e},slide:function(e){var o=$(".block.alert-content",e),a=$(".alert-feed",e),t=$(a).width()+100,s=$(".alert-clone",e);$(o).addClass("modify-grid");var n=gsap.timeline({defaults:{ease:"none"}}),r=gsap.timeline({repeat:-1,paused:!0,defaults:{ease:"none"}});r.to([a,s],{duration:WhatsOn.speed(t),x:-t}),n.to(o,{duration:WhatsOn.speed(20),paddingLeft:0}).call(function(){r.play()})},scroll:function(e){var o=$(".feed",e),a=$(o).height(),t=$(".clone",e);gsap.timeline({repeat:-1,defaults:{ease:"none"}}).to([o,t],{duration:WhatsOn.speed(a),y:-a})}},YouSaved=function(e){var o=$(".block.form-alert",e),a=tinycolor($(o).css("border-color")).toHexString(),t=tinycolor($(o).css("background-color")).toHexString();gsap.timeline({repeat:-1,repeatDelay:1.6}).set(o,{backgroundColor:tinycolor(t).darken(5),borderColor:tinycolor(a).darken(10)}).set(o,{clearProps:"all",delay:.2}).set(o,{backgroundColor:tinycolor(t).darken(5),borderColor:tinycolor(a).darken(10),delay:.2}).to(o,{backgroundColor:t,borderColor:a,duration:.8,delay:.2})};
|
@@ -7,25 +7,6 @@ padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){va
|
|
7
7
|
|
8
8
|
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.ScrollMagic=t()}(this,function(){"use strict";var e=function(){};e.version="2.0.5",window.addEventListener("mousewheel",function(){});var t="data-scrollmagic-pin-spacer";e.Controller=function(r){var o,s,a="ScrollMagic.Controller",l="FORWARD",c="REVERSE",u="PAUSED",f=n.defaults,d=this,h=i.extend({},f,r),g=[],p=!1,v=0,m=u,w=!0,y=0,S=!0,b=function(){for(var e in h)f.hasOwnProperty(e)||delete h[e];if(h.container=i.get.elements(h.container)[0],!h.container)throw a+" init failed.";w=h.container===window||h.container===document.body||!document.body.contains(h.container),w&&(h.container=window),y=z(),h.container.addEventListener("resize",T),h.container.addEventListener("scroll",T),h.refreshInterval=parseInt(h.refreshInterval)||f.refreshInterval,E()},E=function(){h.refreshInterval>0&&(s=window.setTimeout(A,h.refreshInterval))},x=function(){return h.vertical?i.get.scrollTop(h.container):i.get.scrollLeft(h.container)},z=function(){return h.vertical?i.get.height(h.container):i.get.width(h.container)},C=this._setScrollPos=function(e){h.vertical?w?window.scrollTo(i.get.scrollLeft(),e):h.container.scrollTop=e:w?window.scrollTo(e,i.get.scrollTop()):h.container.scrollLeft=e},F=function(){if(S&&p){var e=i.type.Array(p)?p:g.slice(0);p=!1;var t=v;v=d.scrollPos();var n=v-t;0!==n&&(m=n>0?l:c),m===c&&e.reverse(),e.forEach(function(e){e.update(!0)})}},L=function(){o=i.rAF(F)},T=function(e){"resize"==e.type&&(y=z(),m=u),p!==!0&&(p=!0,L())},A=function(){if(!w&&y!=z()){var e;try{e=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){e=document.createEvent("Event"),e.initEvent("resize",!1,!1)}h.container.dispatchEvent(e)}g.forEach(function(e){e.refresh()}),E()};this._options=h;var O=function(e){if(e.length<=1)return e;var t=e.slice(0);return t.sort(function(e,t){return e.scrollOffset()>t.scrollOffset()?1:-1}),t};return this.addScene=function(t){if(i.type.Array(t))t.forEach(function(e){d.addScene(e)});else if(t instanceof e.Scene)if(t.controller()!==d)t.addTo(d);else if(g.indexOf(t)<0){g.push(t),g=O(g),t.on("shift.controller_sort",function(){g=O(g)});for(var n in h.globalSceneOptions)t[n]&&t[n].call(t,h.globalSceneOptions[n])}return d},this.removeScene=function(e){if(i.type.Array(e))e.forEach(function(e){d.removeScene(e)});else{var t=g.indexOf(e);t>-1&&(e.off("shift.controller_sort"),g.splice(t,1),e.remove())}return d},this.updateScene=function(t,n){return i.type.Array(t)?t.forEach(function(e){d.updateScene(e,n)}):n?t.update(!0):p!==!0&&t instanceof e.Scene&&(p=p||[],-1==p.indexOf(t)&&p.push(t),p=O(p),L()),d},this.update=function(e){return T({type:"resize"}),e&&F(),d},this.scrollTo=function(n,r){if(i.type.Number(n))C.call(h.container,n,r);else if(n instanceof e.Scene)n.controller()===d&&d.scrollTo(n.scrollOffset(),r);else if(i.type.Function(n))C=n;else{var o=i.get.elements(n)[0];if(o){for(;o.parentNode.hasAttribute(t);)o=o.parentNode;var s=h.vertical?"top":"left",a=i.get.offset(h.container),l=i.get.offset(o);w||(a[s]-=d.scrollPos()),d.scrollTo(l[s]-a[s],r)}}return d},this.scrollPos=function(e){return arguments.length?(i.type.Function(e)&&(x=e),d):x.call(d)},this.info=function(e){var t={size:y,vertical:h.vertical,scrollPos:v,scrollDirection:m,container:h.container,isDocument:w};return arguments.length?void 0!==t[e]?t[e]:void 0:t},this.loglevel=function(){return d},this.enabled=function(e){return arguments.length?(S!=e&&(S=!!e,d.updateScene(g,!0)),d):S},this.destroy=function(e){window.clearTimeout(s);for(var t=g.length;t--;)g[t].destroy(e);return h.container.removeEventListener("resize",T),h.container.removeEventListener("scroll",T),i.cAF(o),null},b(),d};var n={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};e.Controller.addOption=function(e,t){n.defaults[e]=t},e.Controller.extend=function(t){var n=this;e.Controller=function(){return n.apply(this,arguments),this.$super=i.extend({},this),t.apply(this,arguments)||this},i.extend(e.Controller,n),e.Controller.prototype=n.prototype,e.Controller.prototype.constructor=e.Controller},e.Scene=function(n){var o,s,a="BEFORE",l="DURING",c="AFTER",u=r.defaults,f=this,d=i.extend({},u,n),h=a,g=0,p={start:0,end:0},v=0,m=!0,w=function(){for(var e in d)u.hasOwnProperty(e)||delete d[e];for(var t in u)L(t);C()},y={};this.on=function(e,t){return i.type.Function(t)&&(e=e.trim().split(" "),e.forEach(function(e){var n=e.split("."),r=n[0],i=n[1];"*"!=r&&(y[r]||(y[r]=[]),y[r].push({namespace:i||"",callback:t}))})),f},this.off=function(e,t){return e?(e=e.trim().split(" "),e.forEach(function(e){var n=e.split("."),r=n[0],i=n[1]||"",o="*"===r?Object.keys(y):[r];o.forEach(function(e){for(var n=y[e]||[],r=n.length;r--;){var o=n[r];!o||i!==o.namespace&&"*"!==i||t&&t!=o.callback||n.splice(r,1)}n.length||delete y[e]})}),f):f},this.trigger=function(t,n){if(t){var r=t.trim().split("."),i=r[0],o=r[1],s=y[i];s&&s.forEach(function(t){o&&o!==t.namespace||t.callback.call(f,new e.Event(i,t.namespace,f,n))})}return f},f.on("change.internal",function(e){"loglevel"!==e.what&&"tweenChanges"!==e.what&&("triggerElement"===e.what?E():"reverse"===e.what&&f.update())}).on("shift.internal",function(){S(),f.update()}),this.addTo=function(t){return t instanceof e.Controller&&s!=t&&(s&&s.removeScene(f),s=t,C(),b(!0),E(!0),S(),s.info("container").addEventListener("resize",x),t.addScene(f),f.trigger("add",{controller:s}),f.update()),f},this.enabled=function(e){return arguments.length?(m!=e&&(m=!!e,f.update(!0)),f):m},this.remove=function(){if(s){s.info("container").removeEventListener("resize",x);var e=s;s=void 0,e.removeScene(f),f.trigger("remove")}return f},this.destroy=function(e){return f.trigger("destroy",{reset:e}),f.remove(),f.off("*.*"),null},this.update=function(e){if(s)if(e)if(s.enabled()&&m){var t,n=s.info("scrollPos");t=d.duration>0?(n-p.start)/(p.end-p.start):n>=p.start?1:0,f.trigger("update",{startPos:p.start,endPos:p.end,scrollPos:n}),f.progress(t)}else T&&h===l&&O(!0);else s.updateScene(f,!1);return f},this.refresh=function(){return b(),E(),f},this.progress=function(e){if(arguments.length){var t=!1,n=h,r=s?s.info("scrollDirection"):"PAUSED",i=d.reverse||e>=g;if(0===d.duration?(t=g!=e,g=1>e&&i?0:1,h=0===g?a:l):0>e&&h!==a&&i?(g=0,h=a,t=!0):e>=0&&1>e&&i?(g=e,h=l,t=!0):e>=1&&h!==c?(g=1,h=c,t=!0):h!==l||i||O(),t){var o={progress:g,state:h,scrollDirection:r},u=h!=n,p=function(e){f.trigger(e,o)};u&&n!==l&&(p("enter"),p(n===a?"start":"end")),p("progress"),u&&h!==l&&(p(h===a?"start":"end"),p("leave"))}return f}return g};var S=function(){p={start:v+d.offset},s&&d.triggerElement&&(p.start-=s.info("size")*d.triggerHook),p.end=p.start+d.duration},b=function(e){if(o){var t="duration";F(t,o.call(f))&&!e&&(f.trigger("change",{what:t,newval:d[t]}),f.trigger("shift",{reason:t}))}},E=function(e){var n=0,r=d.triggerElement;if(s&&r){for(var o=s.info(),a=i.get.offset(o.container),l=o.vertical?"top":"left";r.parentNode.hasAttribute(t);)r=r.parentNode;var c=i.get.offset(r);o.isDocument||(a[l]-=s.scrollPos()),n=c[l]-a[l]}var u=n!=v;v=n,u&&!e&&f.trigger("shift",{reason:"triggerElementPosition"})},x=function(){d.triggerHook>0&&f.trigger("shift",{reason:"containerResize"})},z=i.extend(r.validate,{duration:function(e){if(i.type.String(e)&&e.match(/^(\.|\d)*\d+%$/)){var t=parseFloat(e)/100;e=function(){return s?s.info("size")*t:0}}if(i.type.Function(e)){o=e;try{e=parseFloat(o())}catch(t){e=-1}}if(e=parseFloat(e),!i.type.Number(e)||0>e)throw o?(o=void 0,0):0;return e}}),C=function(e){e=arguments.length?[e]:Object.keys(z),e.forEach(function(e){var t;if(z[e])try{t=z[e](d[e])}catch(n){t=u[e]}finally{d[e]=t}})},F=function(e,t){var n=!1,r=d[e];return d[e]!=t&&(d[e]=t,C(e),n=r!=d[e]),n},L=function(e){f[e]||(f[e]=function(t){return arguments.length?("duration"===e&&(o=void 0),F(e,t)&&(f.trigger("change",{what:e,newval:d[e]}),r.shifts.indexOf(e)>-1&&f.trigger("shift",{reason:e})),f):d[e]})};this.controller=function(){return s},this.state=function(){return h},this.scrollOffset=function(){return p.start},this.triggerPosition=function(){var e=d.offset;return s&&(e+=d.triggerElement?v:s.info("size")*f.triggerHook()),e};var T,A;f.on("shift.internal",function(e){var t="duration"===e.reason;(h===c&&t||h===l&&0===d.duration)&&O(),t&&_()}).on("progress.internal",function(){O()}).on("add.internal",function(){_()}).on("destroy.internal",function(e){f.removePin(e.reset)});var O=function(e){if(T&&s){var t=s.info(),n=A.spacer.firstChild;if(e||h!==l){var r={position:A.inFlow?"relative":"absolute",top:0,left:0},o=i.css(n,"position")!=r.position;A.pushFollowers?d.duration>0&&(h===c&&0===parseFloat(i.css(A.spacer,"padding-top"))?o=!0:h===a&&0===parseFloat(i.css(A.spacer,"padding-bottom"))&&(o=!0)):r[t.vertical?"top":"left"]=d.duration*g,i.css(n,r),o&&_()}else{"fixed"!=i.css(n,"position")&&(i.css(n,{position:"fixed"}),_());var u=i.get.offset(A.spacer,!0),f=d.reverse||0===d.duration?t.scrollPos-p.start:Math.round(g*d.duration*10)/10;u[t.vertical?"top":"left"]+=f,i.css(A.spacer.firstChild,{top:u.top,left:u.left})}}},_=function(){if(T&&s&&A.inFlow){var e=h===l,t=s.info("vertical"),n=A.spacer.firstChild,r=i.isMarginCollapseType(i.css(A.spacer,"display")),o={};A.relSize.width||A.relSize.autoFullWidth?e?i.css(T,{width:i.get.width(A.spacer)}):i.css(T,{width:"100%"}):(o["min-width"]=i.get.width(t?T:n,!0,!0),o.width=e?o["min-width"]:"auto"),A.relSize.height?e?i.css(T,{height:i.get.height(A.spacer)-(A.pushFollowers?d.duration:0)}):i.css(T,{height:"100%"}):(o["min-height"]=i.get.height(t?n:T,!0,!r),o.height=e?o["min-height"]:"auto"),A.pushFollowers&&(o["padding"+(t?"Top":"Left")]=d.duration*g,o["padding"+(t?"Bottom":"Right")]=d.duration*(1-g)),i.css(A.spacer,o)}},N=function(){s&&T&&h===l&&!s.info("isDocument")&&O()},P=function(){s&&T&&h===l&&((A.relSize.width||A.relSize.autoFullWidth)&&i.get.width(window)!=i.get.width(A.spacer.parentNode)||A.relSize.height&&i.get.height(window)!=i.get.height(A.spacer.parentNode))&&_()},D=function(e){s&&T&&h===l&&!s.info("isDocument")&&(e.preventDefault(),s._setScrollPos(s.info("scrollPos")-((e.wheelDelta||e[s.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-e.detail)))};this.setPin=function(e,n){var r={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"};if(n=i.extend({},r,n),e=i.get.elements(e)[0],!e)return f;if("fixed"===i.css(e,"position"))return f;if(T){if(T===e)return f;f.removePin()}T=e;var o=T.parentNode.style.display,s=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];T.parentNode.style.display="none";var a="absolute"!=i.css(T,"position"),l=i.css(T,s.concat(["display"])),c=i.css(T,["width","height"]);T.parentNode.style.display=o,!a&&n.pushFollowers&&(n.pushFollowers=!1);var u=T.parentNode.insertBefore(document.createElement("div"),T),d=i.extend(l,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||i.extend(d,i.css(T,["width","height"])),i.css(u,d),u.setAttribute(t,""),i.addClass(u,n.spacerClass),A={spacer:u,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"auto"===c.width&&a&&i.isMarginCollapseType(l.display)},pushFollowers:n.pushFollowers,inFlow:a},!T.___origStyle){T.___origStyle={};var h=T.style,g=s.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]);g.forEach(function(e){T.___origStyle[e]=h[e]||""})}return A.relSize.width&&i.css(u,{width:c.width}),A.relSize.height&&i.css(u,{height:c.height}),u.appendChild(T),i.css(T,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(A.relSize.width||A.relSize.autoFullWidth)&&i.css(T,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",N),window.addEventListener("resize",N),window.addEventListener("resize",P),T.addEventListener("mousewheel",D),T.addEventListener("DOMMouseScroll",D),O(),f},this.removePin=function(e){if(T){if(h===l&&O(!0),e||!s){var n=A.spacer.firstChild;if(n.hasAttribute(t)){var r=A.spacer.style,o=["margin","marginLeft","marginRight","marginTop","marginBottom"];margins={},o.forEach(function(e){margins[e]=r[e]||""}),i.css(n,margins)}A.spacer.parentNode.insertBefore(n,A.spacer),A.spacer.parentNode.removeChild(A.spacer),T.parentNode.hasAttribute(t)||(i.css(T,T.___origStyle),delete T.___origStyle)}window.removeEventListener("scroll",N),window.removeEventListener("resize",N),window.removeEventListener("resize",P),T.removeEventListener("mousewheel",D),T.removeEventListener("DOMMouseScroll",D),T=void 0}return f};var R,k=[];return f.on("destroy.internal",function(e){f.removeClassToggle(e.reset)}),this.setClassToggle=function(e,t){var n=i.get.elements(e);return 0!==n.length&&i.type.String(t)?(k.length>0&&f.removeClassToggle(),R=t,k=n,f.on("enter.internal_class leave.internal_class",function(e){var t="enter"===e.type?i.addClass:i.removeClass;k.forEach(function(e){t(e,R)})}),f):f},this.removeClassToggle=function(e){return e&&k.forEach(function(e){i.removeClass(e,R)}),f.off("start.internal_class end.internal_class"),R=void 0,k=[],f},w(),f};var r={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),!i.type.Number(e))throw 0;return e},triggerElement:function(e){if(e=e||void 0){var t=i.get.elements(e)[0];if(!t)throw 0;e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(i.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw 0;e=t[e]}return e},reverse:function(e){return!!e}},shifts:["duration","offset","triggerHook"]};e.Scene.addOption=function(e,t,n,i){e in r.defaults||(r.defaults[e]=t,r.validate[e]=n,i&&r.shifts.push(e))},e.Scene.extend=function(t){var n=this;e.Scene=function(){return n.apply(this,arguments),this.$super=i.extend({},this),t.apply(this,arguments)||this},i.extend(e.Scene,n),e.Scene.prototype=n.prototype,e.Scene.prototype.constructor=e.Scene},e.Event=function(e,t,n,r){r=r||{};for(var i in r)this[i]=r[i];return this.type=e,this.target=this.currentTarget=n,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this};var i=e._util=function(e){var t,n={},r=function(e){return parseFloat(e)||0},i=function(t){return t.currentStyle?t.currentStyle:e.getComputedStyle(t)},o=function(t,n,o,s){if(n=n===document?e:n,n===e)s=!1;else if(!f.DomElement(n))return 0;t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase();var a=(o?n["offset"+t]||n["outer"+t]:n["client"+t]||n["inner"+t])||0;if(o&&s){var l=i(n);a+="Height"===t?r(l.marginTop)+r(l.marginBottom):r(l.marginLeft)+r(l.marginRight)}return a},s=function(e){return e.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})};n.extend=function(e){for(e=e||{},t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e},n.isMarginCollapseType=function(e){return["block","flex","list-item","table","-webkit-box"].indexOf(e)>-1};var a=0,l=["ms","moz","webkit","o"],c=e.requestAnimationFrame,u=e.cancelAnimationFrame;for(t=0;!c&&t<l.length;++t)c=e[l[t]+"RequestAnimationFrame"],u=e[l[t]+"CancelAnimationFrame"]||e[l[t]+"CancelRequestAnimationFrame"];c||(c=function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-a)),i=e.setTimeout(function(){t(n+r)},r);return a=n+r,i}),u||(u=function(t){e.clearTimeout(t)}),n.rAF=c.bind(e),n.cAF=u.bind(e);var f=n.type=function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};f.String=function(e){return"string"===f(e)},f.Function=function(e){return"function"===f(e)},f.Array=function(e){return Array.isArray(e)},f.Number=function(e){return!f.Array(e)&&e-parseFloat(e)+1>=0},f.DomElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName};var d=n.get={};return d.elements=function(t){var n=[];if(f.String(t))try{t=document.querySelectorAll(t)}catch(e){return n}if("nodelist"===f(t)||f.Array(t))for(var r=0,i=n.length=t.length;i>r;r++){var o=t[r];n[r]=f.DomElement(o)?o:d.elements(o)}else(f.DomElement(t)||t===document||t===e)&&(n=[t]);return n},d.scrollTop=function(t){return t&&"number"==typeof t.scrollTop?t.scrollTop:e.pageYOffset||0},d.scrollLeft=function(t){return t&&"number"==typeof t.scrollLeft?t.scrollLeft:e.pageXOffset||0},d.width=function(e,t,n){return o("width",e,t,n)},d.height=function(e,t,n){return o("height",e,t,n)},d.offset=function(e,t){var n={top:0,left:0};if(e&&e.getBoundingClientRect){var r=e.getBoundingClientRect();n.top=r.top,n.left=r.left,t||(n.top+=d.scrollTop(),n.left+=d.scrollLeft())}return n},n.addClass=function(e,t){t&&(e.classList?e.classList.add(t):e.className+=" "+t)},n.removeClass=function(e,t){t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},n.css=function(e,t){if(f.String(t))return i(e)[s(t)];if(f.Array(t)){var n={},r=i(e);return t.forEach(function(e){n[e]=r[s(e)]}),n}for(var o in t){var a=t[o];a==parseFloat(a)&&(a+="px"),e.style[s(o)]=a}},n}(window||{});return e});
|
9
9
|
|
10
|
-
/*
|
11
|
-
_ _ _ _
|
12
|
-
___| (_) ___| | __ (_)___
|
13
|
-
/ __| | |/ __| |/ / | / __|
|
14
|
-
\__ \ | | (__| < _ | \__ \
|
15
|
-
|___/_|_|\___|_|\_(_)/ |___/
|
16
|
-
|__/
|
17
|
-
|
18
|
-
Version: 1.9.0
|
19
|
-
Author: Ken Wheeler
|
20
|
-
Website: http://kenwheeler.github.io
|
21
|
-
Docs: http://kenwheeler.github.io/slick
|
22
|
-
Repo: http://github.com/kenwheeler/slick
|
23
|
-
Issues: http://github.com/kenwheeler/slick/issues
|
24
|
-
|
25
|
-
*/
|
26
|
-
(function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)})(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(e).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,"undefined"!=typeof document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&"object"==typeof o&&o.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(":focus")&&(e.focussed=!0,e.autoPlay())},0)}).on("blur.slick","*",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),s!==-1){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||r.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(".slick-slide").slice(s,n),"anticipated"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(".slick-slide"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),r=document.createElement("img"),r.onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return"boolean"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":"undefined"!=typeof arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?"top":"left",
|
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
|
-
|
29
10
|
/*!
|
30
11
|
* DrawSVGPlugin 3.0.5
|
31
12
|
* https://greensock.com
|
@@ -1 +1 @@
|
|
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},SiteTl=gsap.timeline({repeat:-1}),SiteInFocus=!1;function Target(e){return document.querySelector(Overlay.load.wrap).children[e-1]}function SwitchOn(e){return{display:"block",fill:e}}function SwitchOff(){return{clearProps:"display",delay:Overlay.load.speed}}"theme"==Config.install&&(SiteIsTheme=!0),"library"==Config.install&&(SiteIsLibrary=!0),Config.
|
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},SiteTl=gsap.timeline({repeat:-1}),SiteInFocus=!1;function Target(e){return document.querySelector(Overlay.load.wrap).children[e-1]}function SwitchOn(e){return{display:"block",fill:e}}function SwitchOff(){return{clearProps:"display",delay:Overlay.load.speed}}"theme"==Config.install&&(SiteIsTheme=!0),"library"==Config.install&&(SiteIsLibrary=!0),Config.share&&(SiteIsShareable=!0);var Overlay={mobile:{screen:".area.overlay-mobile",bar:".bar.mobile"},load:{screen:".area.overlay-load",wrap:".wrap.overlay-load",speed:.3},custom:[{name:"about",open:!1},{name:"browse",open:!1},{name:"search",open:!1}],button:"button.navigation",exit:".exit"},Site={access:{ratio:".access-ratio",best:"best",good:"good",poor:"poor"},scramble:{chars:"1234567890%",speed:.6},mobile:{active:!0},tablet:{active:!1,width:768},desktop:{active:!1,width:1200},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}});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: futuro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Heading
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -90,8 +90,6 @@ files:
|
|
90
90
|
- LICENSE
|
91
91
|
- README.md
|
92
92
|
- _includes/artwork/animal/icon.svg
|
93
|
-
- _includes/artwork/orwell/animal/flob.scss
|
94
|
-
- _includes/artwork/orwell/animal/waldo.scss
|
95
93
|
- _includes/html/assign/page.liquid
|
96
94
|
- _includes/html/assign/site.liquid
|
97
95
|
- _includes/html/footer/scripts.liquid
|
@@ -189,8 +187,6 @@ files:
|
|
189
187
|
- _includes/svg/site/btn/browse.svg
|
190
188
|
- _includes/svg/site/btn/cart.svg
|
191
189
|
- _includes/svg/site/btn/expand.svg
|
192
|
-
- _includes/svg/site/btn/share/chapter.svg
|
193
|
-
- _includes/svg/site/btn/share/page.svg
|
194
190
|
- _includes/svg/site/btn/update.svg
|
195
191
|
- _includes/svg/site/icon.liquid
|
196
192
|
- _includes/svg/site/load/load_1.svg
|
@@ -214,7 +210,6 @@ files:
|
|
214
210
|
- _sass/_list.scss
|
215
211
|
- _sass/_normalize.scss
|
216
212
|
- _sass/_site.scss
|
217
|
-
- _sass/_slick.scss
|
218
213
|
- _sass/_split.scss
|
219
214
|
- _sass/_task.scss
|
220
215
|
- _sass/_title.scss
|
@@ -322,6 +317,7 @@ files:
|
|
322
317
|
- assets/js/footer/custom/SwitchButton.js
|
323
318
|
- assets/js/footer/custom/SwitchFocus.js
|
324
319
|
- assets/js/footer/custom/UtilShare.js
|
320
|
+
- assets/js/footer/custom/WhatsOn.js
|
325
321
|
- assets/js/footer/custom/YouSaved.js
|
326
322
|
- assets/js/footer/vendor/gsap-draw.js
|
327
323
|
- assets/js/footer/vendor/gsap-morph.js
|
@@ -330,7 +326,6 @@ files:
|
|
330
326
|
- assets/js/footer/vendor/jquery.min.js
|
331
327
|
- assets/js/footer/vendor/scrollmagic-gsap.js
|
332
328
|
- assets/js/footer/vendor/scrollmagic.js
|
333
|
-
- assets/js/footer/vendor/slick.js
|
334
329
|
- assets/js/futuro.footer.custom.js
|
335
330
|
- assets/js/futuro.footer.vendor.js
|
336
331
|
- assets/js/futuro.header.custom.js
|
@@ -1,45 +0,0 @@
|
|
1
|
-
.tag {
|
2
|
-
&-buttons {
|
3
|
-
display: flex;
|
4
|
-
flex-wrap: wrap;
|
5
|
-
align-items: center;
|
6
|
-
font-size: 11px;
|
7
|
-
|
8
|
-
span:not(.hidden) {
|
9
|
-
display: inline-block;
|
10
|
-
color: #767676;
|
11
|
-
}
|
12
|
-
|
13
|
-
.tag-buttons__title {
|
14
|
-
padding-right: 0.5em;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
&-button {
|
19
|
-
@extend %bold;
|
20
|
-
letter-spacing: normal;
|
21
|
-
display: inline-block;
|
22
|
-
max-width: 30ch;
|
23
|
-
overflow: hidden;
|
24
|
-
text-overflow: ellipsis;
|
25
|
-
white-space: nowrap;
|
26
|
-
transition: all 0.1s;
|
27
|
-
border: 1px solid #767676;
|
28
|
-
border-radius: 11.5px;
|
29
|
-
text-decoration: none;
|
30
|
-
text-transform: uppercase;
|
31
|
-
padding: 5px 10px;
|
32
|
-
margin: 0.25em 0.5em 0.25em 0;
|
33
|
-
|
34
|
-
&:hover {
|
35
|
-
border-color: black;
|
36
|
-
color: black;
|
37
|
-
}
|
38
|
-
|
39
|
-
@media (min-width: 768px) {
|
40
|
-
font-size: 11px;
|
41
|
-
line-height: 13px;
|
42
|
-
border-radius: 12.5px;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
<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="34" height="34" viewBox="0 0 34 34" xml:space="preserve" enable-background="new 0 0 34 34"><g><path fill="#fff" d="M19,19h-8v-8h8V19z M33,17c0,8.8-7.2,16-16,16S1,25.8,1,17S8.2,1,17,1S33,8.2,33,17z M25,13h-4V9H9v12h4v4h12V13z M21,21 h-6v2h8v-8h-2V21z"/></g></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<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="12" fill="#EDEDED"/><g><polygon points="19,11 11,11 11,19 19,19" fill="#EDEDED" stroke="#000000" stroke-width="2" stroke-miterlimit="10"/><polygon points="15,7 7,7 7,15 15,15" fill="#EDEDED" stroke="#000000" stroke-width="2" stroke-miterlimit="10"/></g></svg>
|
data/_sass/_slick.scss
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
|
2
|
-
.slick-slide {
|
3
|
-
height: 100%;
|
4
|
-
float: left;
|
5
|
-
|
6
|
-
> div {
|
7
|
-
@include center;
|
8
|
-
height: 100%;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
|
12
|
-
@mixin SlickMax($width,$space) {
|
13
|
-
max-width: (map-get($book,$width) + ($space * 2)) * 4;
|
14
|
-
}
|
15
|
-
|
16
|
-
.slick-list {
|
17
|
-
@include SlickMax(large,10px);
|
18
|
-
position: relative;
|
19
|
-
overflow: hidden;
|
20
|
-
display: block;
|
21
|
-
margin: 0 auto;
|
22
|
-
height: 100%;
|
23
|
-
z-index: 2;
|
24
|
-
padding: 0;
|
25
|
-
|
26
|
-
@media#{map-get($query,max767)} {
|
27
|
-
@include SlickMax(medium,5px);
|
28
|
-
}
|
29
|
-
|
30
|
-
@media#{map-get($query,max599)} {
|
31
|
-
@include SlickMax(small,5px);
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
.slick-arrow {
|
36
|
-
transition: opacity 200ms ease;
|
37
|
-
background-color: transparent;
|
38
|
-
text-indent: -9999px;
|
39
|
-
position: absolute;
|
40
|
-
border-radius: 0;
|
41
|
-
height: 100%;
|
42
|
-
width: 50%;
|
43
|
-
z-index: 1;
|
44
|
-
padding: 0;
|
45
|
-
top: 0;
|
46
|
-
}
|
47
|
-
|
48
|
-
.slick-prev {
|
49
|
-
background: url('/assets/svg/arrow-left.svg') no-repeat center right 310px;
|
50
|
-
left: 0;
|
51
|
-
}
|
52
|
-
|
53
|
-
.slick-next {
|
54
|
-
background: url('/assets/svg/arrow-right.svg') no-repeat center left 310px;
|
55
|
-
right: 0;
|
56
|
-
}
|
57
|
-
|
58
|
-
.slick-slider {
|
59
|
-
-webkit-tap-highlight-color: transparent;
|
60
|
-
touch-action: pan-y;
|
61
|
-
position: relative;
|
62
|
-
user-select: none;
|
63
|
-
display: block;
|
64
|
-
|
65
|
-
.slick-track, .slick-list {
|
66
|
-
transform: translate3d(0, 0, 0);
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
.slick-slide {
|
71
|
-
min-height: 1px;
|
72
|
-
display: none;
|
73
|
-
|
74
|
-
&.slick-loading img {
|
75
|
-
display: none;
|
76
|
-
}
|
77
|
-
|
78
|
-
&.dragging img {
|
79
|
-
pointer-events: none;
|
80
|
-
}
|
81
|
-
|
82
|
-
img {
|
83
|
-
display: block;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
.slick-list {
|
88
|
-
|
89
|
-
&:focus {
|
90
|
-
outline: none;
|
91
|
-
}
|
92
|
-
|
93
|
-
&.dragging {
|
94
|
-
cursor: pointer;
|
95
|
-
cursor: hand;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
.slick-track {
|
100
|
-
position: relative;
|
101
|
-
margin-right: auto;
|
102
|
-
margin-left: auto;
|
103
|
-
display: block;
|
104
|
-
height: 100%;
|
105
|
-
@include cf;
|
106
|
-
left: 0;
|
107
|
-
top: 0;
|
108
|
-
}
|
109
|
-
|
110
|
-
.slick-arrow {
|
111
|
-
|
112
|
-
&.slick-hidden {
|
113
|
-
display: none;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
|
117
|
-
.slick-initialized .slick-slide {
|
118
|
-
display: block;
|
119
|
-
}
|
120
|
-
|
121
|
-
.slick-loading .slick-slide {
|
122
|
-
visibility: hidden;
|
123
|
-
}
|
124
|
-
|
125
|
-
[dir='rtl'] .slick-slide {
|
126
|
-
float: right;
|
127
|
-
}
|
128
|
-
|
129
|
-
.slick-vertical .slick-slide {
|
130
|
-
border: 1px solid transparent;
|
131
|
-
display: block;
|
132
|
-
height: auto;
|
133
|
-
}
|