futuro 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75d98d3e4f0bfe748091a875728741230bd58ecc2a32f3968e418a6c750c32ee
4
- data.tar.gz: 342ea5493bef9a7d23a63a49016cf6346bdc9a26594848e6656d29d2533e1291
3
+ metadata.gz: d548bcbef81d1b75bff71508e0421aed213ec6b5068f1d07a927b80036be8af1
4
+ data.tar.gz: 1c30f406039159325964c11775a49e25cc62785559d14d142c5461d9ce5af746
5
5
  SHA512:
6
- metadata.gz: d9793f626ae162049c44edee6028c961c66fe96631d2f10abd26da7e6caac4fe39b6a44d53afcb59e58847cffc974e17a94a340006058e831adc2b4ec6cc420c
7
- data.tar.gz: cacd3258f739872f131ecafb58a288f11245947071f3abfff7b82726fd9c5607754abf7d817e026e03b82f03eb20e69f1e00ef067a45b2812ae1eea48081fcd6
6
+ metadata.gz: e8c13e25d4738eb40a1b937164314b4ae55901707a9b82b431590823f8851f4d9545023c2e02ba3fff8df0ccaca5be608599de466d67f7fb21ce6b227dae4b99
7
+ data.tar.gz: a17878b6ed9516b434f2aa5a843abef98f2424c9e8cef50c74299b8cf64abb54411fd06dd30a4497aba2ad3e85f2195be0077f1489a4f00a07c5bafa9039b383
@@ -3,12 +3,12 @@
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
5
  <meta name="format-detection" content="telephone=no">
6
- <link rel="icon" href="{{ "/assets/img/favicon.png?v=1580345257211" | relative_url }}">
6
+ <link rel="icon" href="{{ "/assets/img/favicon.png?v=1580385517046" | relative_url }}">
7
7
  {% seo %}
8
8
  {% feed_meta %}
9
- <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1580345257211" | relative_url }}">
9
+ <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1580385517046" | relative_url }}">
10
10
  {% include html/analytics.liquid %}
11
- <script src="{{ "/assets/js/header/data.js?v=1580345257211" | relative_url }}"></script>
12
- <script src="{{ "/assets/js/header.vendor.js?v=1580345257211" | relative_url }}"></script>
13
- <script src="{{ "/assets/js/header.custom.min.js?v=1580345257211" | relative_url }}"></script>
11
+ <script src="{{ "/assets/js/header/data.js?v=1580385517046" | relative_url }}"></script>
12
+ <script src="{{ "/assets/js/header.vendor.js?v=1580385517046" | relative_url }}"></script>
13
+ <script src="{{ "/assets/js/header.custom.min.js?v=1580385517046" | relative_url }}"></script>
14
14
  </head>
@@ -1,3 +1,3 @@
1
1
 
2
- <script src="{{ "/assets/js/futuro.vendor.js?v=1580345257211" | relative_url }}"></script>
3
- <script src="{{ "/assets/js/futuro.custom.min.js?v=1580345257211" | relative_url }}"></script>
2
+ <script src="{{ "/assets/js/futuro.vendor.js?v=1580385517046" | relative_url }}"></script>
3
+ <script src="{{ "/assets/js/futuro.custom.min.js?v=1580385517046" | relative_url }}"></script>
@@ -1,29 +1,24 @@
1
1
 
2
2
  const PrintWidth = () => {
3
3
  var size = $(document)[0].documentElement.clientWidth,
4
- more = Data.Width - size + 'px',
5
- percent = (100/Data.Width) * size + '%';
4
+ more = Site.width - size + 'px',
5
+ percent = (100/Site.width) * size + '%';
6
6
 
7
7
  $('.width').html(more);
8
8
  gsap.set('.bar._mobile',{width:percent});
9
9
  }
10
10
 
11
11
  const CheckWidth = () => {
12
- if (Data.NoMobile) {
12
+ if (!Site.mobile) {
13
13
  if (IsMobile) {
14
- gsap.set(overMobi,{display:Data.Open});
14
+ gsap.set(overMobi,{display:Site.open});
15
15
  PrintWidth();
16
16
  } else {
17
- gsap.set(overMobi,{display:"none"});
17
+ gsap.set(overMobi,{clearProps:"display"});
18
18
  }
19
19
  }
20
20
  }
21
21
 
22
22
  $(CheckWidth);
23
23
 
24
- $(window).resize(function() {
25
- if (Data.NoMobile) {
26
- IsMobile ? gsap.set(overMobi,{display:Data.Open}) : gsap.set(overMobi,{display:'none'}) ;
27
- CheckWidth();
28
- }
29
- });
24
+ $(window).resize(CheckWidth);
@@ -4,12 +4,11 @@ const SearchInput = $(".input.--search"),
4
4
 
5
5
  const OpenOverlay = type => {
6
6
  gsap.set(body,{overflow:"hidden"});
7
- gsap.set(".overlay._" + type,{display:Data.Open});
7
+ gsap.set(".overlay._" + type,{display:Site.open});
8
8
  }
9
9
 
10
10
  const CloseOverlay = type => {
11
- gsap.set(body,{clearProps:"overflow"});
12
- gsap.set(".overlay._" + type,{display:"none"});
11
+ gsap.set([body,".overlay._" + type],{clearProps:"all"});
13
12
  }
14
13
 
15
14
  function KeyFunc(e) {
@@ -83,8 +82,8 @@ $('.exit._search').click(function() {
83
82
  });
84
83
 
85
84
  $(document).keyup(function(e){
86
- if (Data.Overlays) {
87
- if (Data.NoMobile) {
85
+ if (Site.overlays) {
86
+ if (!Site.mobile) {
88
87
  if (!IsMobile) {
89
88
  KeyFunc(e);
90
89
  }
@@ -4,7 +4,7 @@ let body = "body",
4
4
  overMobi = ".overlay._mobile",
5
5
  overLoad = ".overlay._load",
6
6
  controller = new ScrollMagic.Controller(),
7
- half = Data.Page * 0.5,
7
+ half = Site.page * 0.5,
8
8
  AboutOpen = false,
9
9
  BrowseOpen = false,
10
10
  SearchOpen = false;
@@ -1,19 +1,19 @@
1
1
 
2
2
  const SiteFunc = () => {
3
3
 
4
- if (Data.NoMobile) {
4
+ if (!Site.mobile) {
5
5
  if (!IsMobile) {
6
6
  if ($(body).hasClass('setup-library') &&
7
7
  $(body).hasClass('layout-single')) {
8
8
  gsap.set(site,{display:'block'});
9
9
  } else {
10
- gsap.set(site,{display:Data.Open});
10
+ gsap.set(site,{display:Site.open});
11
11
  }
12
12
  }
13
13
  }
14
14
 
15
15
  else {
16
- gsap.set(site,{display:Data.Open});
16
+ gsap.set(site,{display:Site.open});
17
17
  }
18
18
 
19
19
  setTimeout(function() {
@@ -1 +1 @@
1
- "use strict";var body="body",site=".site",overMobi=".overlay._mobile",overLoad=".overlay._load",controller=new ScrollMagic.Controller,half=.5*Data.Page,AboutOpen=!1,BrowseOpen=!1,SearchOpen=!1,PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=Data.Width-e+"px",a=100/Data.Width*e+"%";$(".width").html(o),gsap.set(".bar._mobile",{width:a})},CheckWidth=function(){Data.NoMobile&&(IsMobile?(gsap.set(overMobi,{display:Data.Open}),PrintWidth()):gsap.set(overMobi,{display:"none"}))};$(CheckWidth),$(window).resize(function(){Data.NoMobile&&(IsMobile?gsap.set(overMobi,{display:Data.Open}):gsap.set(overMobi,{display:"none"}),CheckWidth())});var ExpandBlock=function(e){var o=$(e.target),a=o.parent().siblings(".area._page-artwork").children(".code-wrap");"none"==a.css("display")?(gsap.set(a,{display:open}),gsap.set(o,{text:"Hide"})):(gsap.set(a,{display:"none"}),gsap.set(o,{text:"Show"}))};$(".block._expand-block").click(function(e){ExpandBlock(e)});var SearchInput=$(".input.--search"),SearchResults=$(".block._results"),OpenOverlay=function(e){gsap.set(body,{overflow:"hidden"}),gsap.set(".overlay._"+e,{display:Data.Open})},CloseOverlay=function(e){gsap.set(body,{clearProps:"overflow"}),gsap.set(".overlay._"+e,{display:"none"})};function KeyFunc(e){var o=e.keyCode;27==o&&(AboutOpen&&(CloseOverlay("about"),AboutOpen=!1),BrowseOpen&&(CloseOverlay("browse"),BrowseOpen=!1),SearchOpen&&(CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1)),0==AboutOpen&&0==BrowseOpen&&0==SearchOpen&&(65==o&&(OpenOverlay("about"),AboutOpen=!0),66==o&&(OpenOverlay("browse"),BrowseOpen=!0),83==o&&(OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0))}$(".btn._nav.--about").click(function(){OpenOverlay("about"),AboutOpen=!0}),$(".btn._nav.--browse").click(function(){OpenOverlay("browse"),BrowseOpen=!0}),$(".btn._nav.--search").click(function(){OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0}),$(".exit._about").click(function(){CloseOverlay("about"),AboutOpen=!1}),$(".exit._browse").click(function(){CloseOverlay("browse"),BrowseOpen=!1}),$(".exit._search").click(function(){CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1}),$(document).keyup(function(e){Data.Overlays&&(Data.NoMobile&&IsMobile||KeyFunc(e))});var ScrollerUpdate=function(){var e=$(".lnk._scroller");1<e.length&&e.each(function(){var e=$(this)[0].classList[2],o=TweenMax.to(".lnk._scroller."+e,.1,{className:"+=active"});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(o).addTo(controller)})},ScrollFunc=function(t){var e=$(".site._feed"),n='<div class="area _scroller"><div class="wrap _scroller">';t.each(function(e,o){var a=$(o)[0].children[0].id;0==e?n+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>'):e==t.length-1?n+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>'):n+='<a class="lnk _scroller '.concat(a,'" href="#').concat(a,'"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>')}),n+="</div></div>",e.append(n),ScrollerUpdate(),SmoothScroll()};$(function(){var e=$(".wrap.type-chapter");1<e.length&&ScrollFunc(e)});var SetupHome=function(){$(body).hasClass("setup-library")&&$(body).hasClass("layout-single")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".area._book",{y:-5},{duration:1,y:5}),$(".wrap._home").slick({slidesToScroll:1,slidesToShow:5,infinite:!0,arrows:!1}),$(".wrap._book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};$(SetupHome);var SiteFunc=function(){Data.NoMobile?IsMobile||($(body).hasClass("setup-library")&&$(body).hasClass("layout-single")?gsap.set(site,{display:"block"}):gsap.set(site,{display:Data.Open})):gsap.set(site,{display:Data.Open}),setTimeout(function(){gsap.set(overLoad,{display:"none"}),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 SplitCode=function(){$(".wrap.type-page.setup-docs").each(function(e,o){$(".code-scss",this);var a=$(".code-html",this),t=a.html();a.text(t)})};$(SplitCode);var browsabl=$(".col._browse.--chapter").children("._browse-chunk").children().length,books=$(".lnk._browse-book"),chapters=$(".lnk._browse-chapter"),pages=$(".lnk._browse-page"),chunk="._browse-chunk",shade="rgba(0,0,0,0.07)",StartBrowse=function(){var e=$(".block._browse-lnk",".col._browse.--book")[0],o=$(".block._browse-chunk",".col._browse.--chapter")[0],a=$(".block._browse-chunk",".col._browse.--page")[0],t=$(a)[0].children[0],n=$(e)[0].children[0],s=$(o)[0].children[0].children[0],r=$(t)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([o,a,t],{display:"block"}).set([n,s,r],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target),a=$(o)[0].classList[2].slice(5),t=$(chunk+".--"+a,".col._browse.--chapter"),n=$(chunk+".--"+a,".col._browse.--page"),s=$(n)[0].children[0],r=$(t)[0].children[0].children[0],l=$(s)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([t,n,s],{display:"block"}).set([books,chapters,pages],{clearProps:"backgroundColor"}).set([o,r,l],{backgroundColor:shade})},HoverChap=function(e){var o=$(e.target),a=$(o)[0].classList[2].slice(5),t=$(o)[0].classList[3].slice(8),n=$(chunk+".--"+a,".col._browse.--chapter"),s=$(chunk+".--"+a,".col._browse.--page"),r=$(chunk+".--"+t,s),l=$(r)[0].children[0].children[0];tl=gsap.timeline(),tl.set(chunk,{display:"none"}).set([n,s,r],{display:"block"}).set([chapters,pages],{clearProps:"backgroundColor"}).set([o,l],{backgroundColor:shade})},HoverPage=function(e){var o=$(e.target);gsap.timeline().set(pages,{clearProps:"backgroundColor"}).set(o,{backgroundColor:shade})};$(function(){$(body).hasClass("type-home")||0<browsabl&&(StartBrowse(),$(".lnk._browse-book").hover(function(e){HoverBook(e)}),$(".lnk._browse-chapter").hover(function(e){HoverChap(e)}),$(".lnk._browse-page").hover(function(e){HoverPage(e)}))});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("._util-share"),a=$(o)[0].classList[2].slice(2),t=$(o).children("._util-url").text().replace("index",""),n=$(o)[0].children[1],s="",r=gsap.timeline();"page"==a&&(s="Copy page"),UtilCopy(t),r.set(n,{text:"Copied!"}).to(n,{duration:.3,opacity:0},"+=0.6").set(n,{text:s,clearProps:"all"},"+=0.3")};$(function(){$("._util-share").click(UtilShare)});
1
+ "use strict";var body="body",site=".site",overMobi=".overlay._mobile",overLoad=".overlay._load",controller=new ScrollMagic.Controller,half=.5*Site.page,AboutOpen=!1,BrowseOpen=!1,SearchOpen=!1,PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=Site.width-e+"px",t=100/Site.width*e+"%";$(".width").html(o),gsap.set(".bar._mobile",{width:t})},CheckWidth=function(){Site.mobile||(IsMobile?(gsap.set(overMobi,{display:Site.open}),PrintWidth()):gsap.set(overMobi,{clearProps:"display"}))};$(CheckWidth),$(window).resize(CheckWidth);var ExpandBlock=function(e){var o=$(e.target),t=o.parent().siblings(".area._page-artwork").children(".code-wrap");"none"==t.css("display")?(gsap.set(t,{display:open}),gsap.set(o,{text:"Hide"})):(gsap.set(t,{display:"none"}),gsap.set(o,{text:"Show"}))};$(".block._expand-block").click(function(e){ExpandBlock(e)});var SearchInput=$(".input.--search"),SearchResults=$(".block._results"),OpenOverlay=function(e){gsap.set(body,{overflow:"hidden"}),gsap.set(".overlay._"+e,{display:Site.open})},CloseOverlay=function(e){gsap.set([body,".overlay._"+e],{clearProps:"all"})};function KeyFunc(e){var o=e.keyCode;27==o&&(AboutOpen&&(CloseOverlay("about"),AboutOpen=!1),BrowseOpen&&(CloseOverlay("browse"),BrowseOpen=!1),SearchOpen&&(CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1)),0==AboutOpen&&0==BrowseOpen&&0==SearchOpen&&(65==o&&(OpenOverlay("about"),AboutOpen=!0),66==o&&(OpenOverlay("browse"),BrowseOpen=!0),83==o&&(OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0))}$(".btn._nav.--about").click(function(){OpenOverlay("about"),AboutOpen=!0}),$(".btn._nav.--browse").click(function(){OpenOverlay("browse"),BrowseOpen=!0}),$(".btn._nav.--search").click(function(){OpenOverlay("search"),SearchInput.focus(),SearchOpen=!0}),$(".exit._about").click(function(){CloseOverlay("about"),AboutOpen=!1}),$(".exit._browse").click(function(){CloseOverlay("browse"),BrowseOpen=!1}),$(".exit._search").click(function(){CloseOverlay("search"),SearchInput.val(""),SearchResults.html(""),SearchOpen=!1}),$(document).keyup(function(e){Site.overlays&&(Site.mobile?KeyFunc(e):IsMobile||KeyFunc(e))});var ScrollerUpdate=function(){var e=$(".lnk._scroller");1<e.length&&e.each(function(){var e=$(this)[0].classList[2],o=TweenMax.to(".lnk._scroller."+e,.1,{className:"+=active"});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(o).addTo(controller)})},ScrollFunc=function(a){var e=$(".site._feed"),n='<div class="area _scroller"><div class="wrap _scroller">';a.each(function(e,o){var t=$(o)[0].children[0].id;0==e?n+='<a class="lnk _scroller '.concat(t,'" href="#').concat(t,'" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>'):e==a.length-1?n+='<a class="lnk _scroller '.concat(t,'" href="#').concat(t,'"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>'):n+='<a class="lnk _scroller '.concat(t,'" href="#').concat(t,'"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>')}),n+="</div></div>",e.append(n),ScrollerUpdate(),SmoothScroll()};$(function(){var e=$(".wrap.type-chapter");1<e.length&&ScrollFunc(e)});var SetupHome=function(){$(body).hasClass("setup-library")&&$(body).hasClass("layout-single")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(".area._book",{y:-5},{duration:1,y:5}),$(".wrap._home").slick({slidesToScroll:1,slidesToShow:5,infinite:!0,arrows:!1}),$(".wrap._book").hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};$(SetupHome);var SiteFunc=function(){Site.mobile?gsap.set(site,{display:Site.open}):IsMobile||($(body).hasClass("setup-library")&&$(body).hasClass("layout-single")?gsap.set(site,{display:"block"}):gsap.set(site,{display:Site.open})),setTimeout(function(){gsap.set(overLoad,{display:"none"}),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 SplitCode=function(){$(".wrap.type-page.setup-docs").each(function(e,o){$(".code-scss",this);var t=$(".code-html",this),a=t.html();t.text(a)})};$(SplitCode);var browsabl=$(".col._browse.--chapter").children("._browse-chunk").children().length,books=$(".lnk._browse-book"),chapters=$(".lnk._browse-chapter"),pages=$(".lnk._browse-page"),chunk="._browse-chunk",shade="rgba(0,0,0,0.07)",StartBrowse=function(){var e=$(".block._browse-lnk",".col._browse.--book")[0],o=$(".block._browse-chunk",".col._browse.--chapter")[0],t=$(".block._browse-chunk",".col._browse.--page")[0],a=$(t)[0].children[0],n=$(e)[0].children[0],r=$(o)[0].children[0].children[0],s=$(a)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([o,t,a],{display:"block"}).set([n,r,s],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target),t=$(o)[0].classList[2].slice(5),a=$(chunk+".--"+t,".col._browse.--chapter"),n=$(chunk+".--"+t,".col._browse.--page"),r=$(n)[0].children[0],s=$(a)[0].children[0].children[0],l=$(r)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([a,n,r],{display:"block"}).set([books,chapters,pages],{clearProps:"backgroundColor"}).set([o,s,l],{backgroundColor:shade})},HoverChap=function(e){var o=$(e.target),t=$(o)[0].classList[2].slice(5),a=$(o)[0].classList[3].slice(8),n=$(chunk+".--"+t,".col._browse.--chapter"),r=$(chunk+".--"+t,".col._browse.--page"),s=$(chunk+".--"+a,r),l=$(s)[0].children[0].children[0];tl=gsap.timeline(),tl.set(chunk,{display:"none"}).set([n,r,s],{display:"block"}).set([chapters,pages],{clearProps:"backgroundColor"}).set([o,l],{backgroundColor:shade})},HoverPage=function(e){var o=$(e.target);gsap.timeline().set(pages,{clearProps:"backgroundColor"}).set(o,{backgroundColor:shade})};$(function(){$(body).hasClass("type-home")||0<browsabl&&(StartBrowse(),$(".lnk._browse-book").hover(function(e){HoverBook(e)}),$(".lnk._browse-chapter").hover(function(e){HoverChap(e)}),$(".lnk._browse-page").hover(function(e){HoverPage(e)}))});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("._util-share"),t=$(o)[0].classList[2].slice(2),a=$(o).children("._util-url").text().replace("index",""),n=$(o)[0].children[1],r="",s=gsap.timeline();"page"==t&&(r="Copy page"),UtilCopy(a),s.set(n,{text:"Copied!"}).to(n,{duration:.3,opacity:0},"+=0.6").set(n,{text:r,clearProps:"all"},"+=0.3")};$(function(){$("._util-share").click(UtilShare)});
@@ -1 +1 @@
1
- "use strict";var IsMobile=!0;enquire.register("screen and (min-width:"+Data.Width+"px)",{match:function(){IsMobile=!1},unmatch:function(){IsMobile=!0}});
1
+ "use strict";var IsMobile=!0;enquire.register("screen and (min-width:"+Site.width+"px)",{match:function(){IsMobile=!1},unmatch:function(){IsMobile=!0}});
@@ -1,7 +1,7 @@
1
1
 
2
2
  let IsMobile = true;
3
3
 
4
- enquire.register('screen and (min-width:' + Data.Width + 'px)',{
4
+ enquire.register('screen and (min-width:' + Site.width + 'px)',{
5
5
 
6
6
  match : function() {
7
7
  IsMobile = false;
@@ -2,4 +2,4 @@
2
2
  layout : none
3
3
  ---
4
4
 
5
- let Data = {{ site.data.settings | jsonify }};
5
+ let Site = {{ site.settings | jsonify }};
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: futuro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Heading
@@ -89,8 +89,6 @@ extra_rdoc_files: []
89
89
  files:
90
90
  - LICENSE
91
91
  - README.md
92
- - _includes/html/_includes/html/head.liquid
93
- - _includes/html/_includes/html/scripts.liquid
94
92
  - _includes/html/analytics.liquid
95
93
  - _includes/html/filter/loop.liquid
96
94
  - _includes/html/filter/type.liquid
@@ -1,14 +0,0 @@
1
- <head>
2
- <meta charset="utf-8">
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <meta name="format-detection" content="telephone=no">
6
- <link rel="icon" href="{{ "/assets/img/favicon.png?v=1580345591987" | relative_url }}">
7
- {% seo %}
8
- {% feed_meta %}
9
- <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1580345591987" | relative_url }}">
10
- {% include html/analytics.liquid %}
11
- <script src="{{ "/assets/js/header/data.js?v=1580345591987" | relative_url }}"></script>
12
- <script src="{{ "/assets/js/header.vendor.js?v=1580345591987" | relative_url }}"></script>
13
- <script src="{{ "/assets/js/header.custom.min.js?v=1580345591987" | relative_url }}"></script>
14
- </head>
@@ -1,3 +0,0 @@
1
-
2
- <script src="{{ "/assets/js/futuro.vendor.js?v=1580345591987" | relative_url }}"></script>
3
- <script src="{{ "/assets/js/futuro.custom.min.js?v=1580345591987" | relative_url }}"></script>