futuro 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/html/overlay/load.liquid +7 -33
- data/assets/js/footer/custom/SiteFunc.js +3 -1
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.header.custom.js +1 -1
- data/assets/js/header/custom/Config.js +21 -1
- data/assets/js/header/custom/Overlay.js +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb4f6b3bf461616cbf9ae806344479fde03140f34ee7dbcea20a5ad237356cf
|
4
|
+
data.tar.gz: 348ff754c6f4197404a187fa613818ed2b0f3f8d401a4dc6b84850f39e711bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52b4ca2ddde7818e249abeb8faa4d3b411a2cebd237e4570e16882b4f144a7aa83c33a6292450dac15403c413fb324e42011ad7549aa62b4991dd5a6a2e64d07
|
7
|
+
data.tar.gz: 83a1eb3d866f4718baedf40d5ed3579cf33e241a19e0a5e71398b9d9d7b22157a35e8f597ef986d13b9fec6b6f66a9889e4f736416b67f3d9c14ce47c66a1529
|
@@ -5,38 +5,12 @@
|
|
5
5
|
|
6
6
|
<script type="text/javascript">
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}
|
16
|
-
|
17
|
-
function SwitchOn(color) {
|
18
|
-
return {
|
19
|
-
display : "block",
|
20
|
-
fill : color
|
21
|
-
};
|
22
|
-
}
|
23
|
-
|
24
|
-
function SwitchOff() {
|
25
|
-
return {
|
26
|
-
clearProps : "display",
|
27
|
-
delay : Overlay.load.speed
|
28
|
-
};
|
29
|
-
}
|
30
|
-
|
31
|
-
SiteTl
|
32
|
-
.set(Target(1),SwitchOn("red"))
|
33
|
-
.set(Target(1),SwitchOff())
|
34
|
-
.set(Target(2),SwitchOn("blue"))
|
35
|
-
.set(Target(2),SwitchOff())
|
36
|
-
.set(Target(3),SwitchOn("black"))
|
37
|
-
.set(Target(3),SwitchOff());
|
38
|
-
}
|
39
|
-
|
40
|
-
LoadAnim();
|
8
|
+
SiteTl
|
9
|
+
.set(Target(1),SwitchOn("red"))
|
10
|
+
.set(Target(1),SwitchOff())
|
11
|
+
.set(Target(2),SwitchOn("blue"))
|
12
|
+
.set(Target(2),SwitchOff())
|
13
|
+
.set(Target(3),SwitchOn("black"))
|
14
|
+
.set(Target(3),SwitchOff());
|
41
15
|
|
42
16
|
</script>
|
@@ -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,
|
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)},ActiveBook=function(){if(!BodyIsHome){var t="";$(BodyClasses).each(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 ChangeScreen=function(e,o,a){"close"==a?(gsap.set(body,{clearProps:"overflow"}),gsap.set(".area.overlay-"+Overlay.custom[e].name,{clearProps:"display"}),Overlay.custom[e].open=!1):(gsap.set(body,{overflow:"hidden"}),gsap.set(".area.overlay-"+Overlay.custom[e].name,{display:Config.display}),Overlay.custom[e].open=!0)},BuildScreens=function(e,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){27==a.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[e].open&&ChangeScreen(e,o,"close")}),65==a.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[0].open||(ChangeScreen(0,o,"open"),console.log(a.keyCode))}),66==a.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[1].open||ChangeScreen(1,o,"open")}),83==a.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[2].open||ChangeScreen(2,o,"open")})};$(function(){$(Overlay.custom).each(function(e,o){BuildScreens(e,o)})}),$(document).keyup(function(e){Site.focus||KeyUp(e)});var RespondBrowse=function(){BookLinks.hover(function(e){CreateMatch(this),gsap.set(BookLinks,ClearBackground),gsap.set(this,BackgroundShade),CheckBookClass(this),ChapterBooks.each(function(e,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"}),setTimeout(function(){SiteTl.pause()},5e3)},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")}},i=[n.dis.before,n.dat.before],r=[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([i,r],{clearProps:"all"}),gsap.set(a,{text:"Next"}));else if("down"===o)gsap.set([s,t],{scale:.95});else if("up"===o){gsap.timeline().to(i,{duration:.2,opacity:0}).set([s,t],{backgroundColor:Color.green}).set(a,{text:"Undo"}).set(i,{display:"none"}).set(r,{display:"block"}).to(t,{duration:.5,scaleX:1.2,scaleY:1.3,opacity:0}).call(function(){$(s).addClass("undo")})}};$(Button.target).mousedown(function(e){ButtonSwitch(e,"down")}).mouseup(function(e){ButtonSwitch(e,"up")});var SwitchFocus=function(){function e(e){Site.focus=e}$("input,textarea").focusin(e(!0)).focusout(e(!1))};$(SwitchFocus);var UtilCopy=function(e){var 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(),i="";"page"==a&&(i="Copy page"),UtilCopy(t),n.set(s,{text:"Copied!"}).to(s,{duration:.3,opacity:0},"+=0.6").set(s,{text:i,clearProps:"all"},"+=0.3")};SiteIsTheme||SiteIsShareable&&$(Site.page.share).click(UtilShare);
|
@@ -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};"theme"==Config.install&&(SiteIsTheme=!0),"library"==Config.install&&(SiteIsLibrary=!0),Config.shareable&&(SiteIsShareable=!0);var Overlay={mobile:{screen:".area.overlay-mobile",bar:".bar.mobile"},load:{screen:".area.overlay-load",speed:.3},custom:[{name:"about",open:!1},{name:"browse",open:!1},{name:"search",open:!1}],button:"button.navigation",exit:".exit"},Site={scramble:{chars:"1234567890%",speed:.6},mobile:{active:!0},tablet:{active:!1,width:768},desktop:{active:!1,width:1200},focus:!1,topbar:{lnk:".link.navigation"},scroll:{lnk:".lnk.scroller"},chapter:{target:".wrap.type-chapter"},page:{artwork:".area.page-artwork",share:".util-share",url:".util-url",height:560},code:{page:".wrap.type-page.style-docs",expand:".block.expand-block",wrap:".code-wrap",scss:".code-scss",html:".code-html"}};Site.mobile.query="screen and (max-width:"+(Site.tablet.width-1)+"px)",Site.tablet.query="screen and (min-width:"+Site.tablet.width+"px) and (max-width:"+(Site.desktop.width-1)+"px)",Site.desktop.query="screen and (min-width:"+Site.desktop.width+"px)",enquire.register(Site.mobile.query,{match:function(){Site.mobile.active=!0,Site.tablet.active=!1,Site.desktop.active=!1}}),enquire.register(Site.tablet.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!0,Site.desktop.active=!1}}),enquire.register(Site.desktop.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!1,Site.desktop.active=!0}});
|
1
|
+
"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});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.shareable&&(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={scramble:{chars:"1234567890%",speed:.6},mobile:{active:!0},tablet:{active:!1,width:768},desktop:{active:!1,width:1200},focus:!1,topbar:{lnk:".link.navigation"},scroll:{lnk:".lnk.scroller"},chapter:{target:".wrap.type-chapter"},page:{artwork:".area.page-artwork",share:".util-share",url:".util-url",height:560},code:{page:".wrap.type-page.style-docs",expand:".block.expand-block",wrap:".code-wrap",scss:".code-scss",html:".code-html"}};Site.mobile.query="screen and (max-width:"+(Site.tablet.width-1)+"px)",Site.tablet.query="screen and (min-width:"+Site.tablet.width+"px) and (max-width:"+(Site.desktop.width-1)+"px)",Site.desktop.query="screen and (min-width:"+Site.desktop.width+"px)",enquire.register(Site.mobile.query,{match:function(){Site.mobile.active=!0,Site.tablet.active=!1,Site.desktop.active=!1}}),enquire.register(Site.tablet.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!0,Site.desktop.active=!1}}),enquire.register(Site.desktop.query,{match:function(){Site.mobile.active=!1,Site.tablet.active=!1,Site.desktop.active=!0}});
|
@@ -1,5 +1,6 @@
|
|
1
1
|
|
2
|
-
let
|
2
|
+
let SiteTl = gsap.timeline({ repeat : -1 }),
|
3
|
+
SiteIsTheme,
|
3
4
|
SiteIsLibrary,
|
4
5
|
SiteIsShareable;
|
5
6
|
|
@@ -14,3 +15,22 @@ if (Config.install == "library") {
|
|
14
15
|
if (Config.shareable) {
|
15
16
|
SiteIsShareable = true;
|
16
17
|
}
|
18
|
+
|
19
|
+
function Target(number) {
|
20
|
+
var output = document.querySelector(Overlay.load.wrap).children[number - 1];
|
21
|
+
return output;
|
22
|
+
}
|
23
|
+
|
24
|
+
function SwitchOn(color) {
|
25
|
+
return {
|
26
|
+
display : "block",
|
27
|
+
fill : color
|
28
|
+
};
|
29
|
+
}
|
30
|
+
|
31
|
+
function SwitchOff() {
|
32
|
+
return {
|
33
|
+
clearProps : "display",
|
34
|
+
delay : Overlay.load.speed
|
35
|
+
};
|
36
|
+
}
|
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.8.
|
4
|
+
version: 0.8.2
|
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-04-
|
11
|
+
date: 2020-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|