futuro 0.3.8 → 0.3.9

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: 56e914dc8b31e6e68f8a3bb23c26644307ddbe9fbf001ec6f626449ac9bbde86
4
- data.tar.gz: 53a2cd0896e48f4ed5d3381878dc4c3808b9ede2cb85e1619ee3c70b6c427f08
3
+ metadata.gz: 88e08d24ca989bca8c6bf8f7c55430d3286051270f535f00a50f986493376129
4
+ data.tar.gz: d247aa2396c986a888c4a3adae08c4854040445a03d7d13ea77ed31c05a3406c
5
5
  SHA512:
6
- metadata.gz: 128279741361e8599620d2de2fafac1e9f35f6e5a9b28afeb042b10f94be01219d2bf07c3b3ee34ea876c59e8135caa0e2ce73870fda3b7e5e1d2e85fe50e2e8
7
- data.tar.gz: 6a6a429e2aa606412821ea915ccbd645583917767d56a7e4ec721e0312bfaa323381e99a19d3efc59c447fdedc5c974f4ef0b2aa2deee08b33447cd1e5394e6f
6
+ metadata.gz: 981be0603e9ebf8b6b1bbd746b986a8795de895186a7362525ef9c41df4f909e51971c0f0971bf2340ce482da110cdac3c2f5628bf87973f854ec8c267b090c7
7
+ data.tar.gz: 9e32aec35e31bcf40a64807f981beaf0905c77bb24ab109fca24dcfdf0206cdff70773facde1a69663e799932afe25b714352ba211b617f387202afd8c4f492a
@@ -3,10 +3,10 @@
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=1579785584441" | relative_url }}">
6
+ <link rel="icon" href="{{ "/assets/img/favicon.png?v=1580199747515" | relative_url }}">
7
7
  {% seo %}
8
8
  {% feed_meta %}
9
- <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1579785584441" | relative_url }}">
9
+ <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1580199747515" | relative_url }}">
10
10
  {% include html/analytics.liquid %}
11
- <script src="{{ "/assets/js/header.min.js?v=1579785584441" | relative_url }}"></script>
11
+ <script src="{{ "/assets/js/header.min.js?v=1580199747515" | relative_url }}"></script>
12
12
  </head>
@@ -1,2 +1,2 @@
1
1
 
2
- <script src="{{ "/assets/js/footer.min.js?v=1579785584441" | relative_url }}"></script>
2
+ <script src="{{ "/assets/js/footer.min.js?v=1580199747515" | relative_url }}"></script>
@@ -1,33 +1,16 @@
1
1
 
2
2
  const SplitCode = () => {
3
+ let parent = $('.wrap.type-page.setup-docs');
3
4
 
4
- $('.code-scss').each(function(i,val) {
5
- let string = $(this).text().split(' ');
5
+ parent.each(function(i,val) {
6
+ let scss = $('.code-scss',this),
7
+ html = $('.code-html',this),
8
+ htmlstring = html.html();
6
9
 
7
- $(string).each(function(i,val) {
8
- let letters = val.length,
9
- last = letters - 1;
10
-
11
- if (val.indexOf('.') >= 0 || val.indexOf('&') >= 0) {
12
- string.splice( i , 1 , val);
13
- }
14
-
15
- if ($(this)[last] == '}') {
16
- string.splice( i , 1 , val);
17
- }
18
-
19
- });
20
-
21
- let newString = string.join(' ');
22
-
23
- $(this).text(newString);
10
+ html.text(htmlstring);
24
11
 
25
12
  });
26
13
 
27
- let htmlstring = $('.code-html').html();
28
-
29
- $('.code-html').text(htmlstring);
30
-
31
14
  }
32
15
 
33
16
  $(SplitCode);
@@ -375,4 +375,4 @@ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof glo
375
375
  });
376
376
  }));
377
377
 
378
- "use strict";var body=$("body"),controller=new ScrollMagic.Controller,page=560,half=.5*page,site=".site",open="grid",NoMobile=!0,AboutOpen=!1,BrowseOpen=!1,SearchOpen=!1,PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=width-e+"px",n=100/width*e+"%";$(".width").html(o),gsap.set(".bar._mobile",{width:n})},CheckWidth=function(){NoMobile&&(IsMobile?(gsap.set(".overlay._mobile",{display:open}),PrintWidth()):gsap.set(".overlay._mobile",{display:"none"}))};$(CheckWidth),$(window).resize(function(){NoMobile&&(IsMobile?gsap.set(".overlay._mobile",{display:open}):gsap.set(".overlay._mobile",{display:"none"}),CheckWidth())});var ExpandBlock=function(e){var o=$(e.target),n=o.parent().siblings(".area._page-artwork").children(".code-wrap");"none"==n.css("display")?(gsap.set(n,{display:open}),gsap.set(o,{text:"Hide"})):(gsap.set(n,{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: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){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"),a='<div class="area _scroller"><div class="wrap _scroller">';t.each(function(e,o){var n=$(o)[0].children[0].id;0==e?a+='<a class="lnk _scroller '.concat(n,'" href="#').concat(n,'" 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?a+='<a class="lnk _scroller '.concat(n,'" href="#').concat(n,'"><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>'):a+='<a class="lnk _scroller '.concat(n,'" href="#').concat(n,'"><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>')}),a+="</div></div>",e.append(a),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,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(){NoMobile?IsMobile||(body.hasClass("setup-library")&&body.hasClass("layout-single")?gsap.set(site,{display:"block"}):gsap.set(site,{display:open})):gsap.set(site,{display:open}),setTimeout(function(){gsap.set(".overlay._load",{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(){$(".code-scss").each(function(e,o){var t=$(this).text().split(" ");$(t).each(function(e,o){var n=o.length-1;(0<=o.indexOf(".")||0<=o.indexOf("&"))&&t.splice(e,1,o),"}"==$(this)[n]&&t.splice(e,1,o)});var n=t.join(" ");$(this).text(n)});var e=$(".code-html").html();$(".code-html").text(e)};$(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)";var StartBrowse=function(){var e=$(".block._browse-lnk",".col._browse.--book")[0],o=$(".block._browse-chunk",".col._browse.--chapter")[0],n=$(".block._browse-chunk",".col._browse.--page")[0],t=$(n)[0].children[0],a=$(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,n,t],{display:"block"}).set([a,s,r],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target),n=$(o)[0].classList[2].slice(5),t=$(chunk+".--"+n,".col._browse.--chapter"),a=$(chunk+".--"+n,".col._browse.--page"),s=$(a)[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,a,s],{display:"block"}).set([books,chapters,pages],{clearProps:"backgroundColor"}).set([o,r,l],{backgroundColor:shade})},HoverChap=function(e){var o=$(e.target),n=$(o)[0].classList[2].slice(5),t=$(o)[0].classList[3].slice(8),a=$(chunk+".--"+n,".col._browse.--chapter"),s=$(chunk+".--"+n,".col._browse.--page"),r=$(chunk+".--"+t,s),l=$(r)[0].children[0].children[0];tl=gsap.timeline(),tl.set(chunk,{display:"none"}).set([a,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"),n=$(o)[0].classList[2].slice(2),t=$(o).children("._util-url").text().replace("index",""),a=$(o)[0].children[1],s="",r=gsap.timeline();"page"==n&&(s="Copy page"),UtilCopy(t),r.set(a,{text:"Copied!"}).to(a,{duration:.3,opacity:0},"+=0.6").set(a,{text:s,clearProps:"all"},"+=0.3")};$(function(){$("._util-share").click(UtilShare)});
378
+ "use strict";var body=$("body"),controller=new ScrollMagic.Controller,page=560,half=.5*page,site=".site",open="grid",NoMobile=!0,AboutOpen=!1,BrowseOpen=!1,SearchOpen=!1,PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=width-e+"px",a=100/width*e+"%";$(".width").html(o),gsap.set(".bar._mobile",{width:a})},CheckWidth=function(){NoMobile&&(IsMobile?(gsap.set(".overlay._mobile",{display:open}),PrintWidth()):gsap.set(".overlay._mobile",{display:"none"}))};$(CheckWidth),$(window).resize(function(){NoMobile&&(IsMobile?gsap.set(".overlay._mobile",{display:open}):gsap.set(".overlay._mobile",{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: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){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(n){var e=$(".site._feed"),t='<div class="area _scroller"><div class="wrap _scroller">';n.each(function(e,o){var a=$(o)[0].children[0].id;0==e?t+='<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==n.length-1?t+='<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>'):t+='<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>')}),t+="</div></div>",e.append(t),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,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(){NoMobile?IsMobile||(body.hasClass("setup-library")&&body.hasClass("layout-single")?gsap.set(site,{display:"block"}):gsap.set(site,{display:open})):gsap.set(site,{display:open}),setTimeout(function(){gsap.set(".overlay._load",{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),n=a.html();a.text(n)})};$(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)";var 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],n=$(a)[0].children[0],t=$(e)[0].children[0],s=$(o)[0].children[0].children[0],r=$(n)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([o,a,n],{display:"block"}).set([t,s,r],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target),a=$(o)[0].classList[2].slice(5),n=$(chunk+".--"+a,".col._browse.--chapter"),t=$(chunk+".--"+a,".col._browse.--page"),s=$(t)[0].children[0],r=$(n)[0].children[0].children[0],l=$(s)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([n,t,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),n=$(o)[0].classList[3].slice(8),t=$(chunk+".--"+a,".col._browse.--chapter"),s=$(chunk+".--"+a,".col._browse.--page"),r=$(chunk+".--"+n,s),l=$(r)[0].children[0].children[0];tl=gsap.timeline(),tl.set(chunk,{display:"none"}).set([t,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),n=$(o).children("._util-url").text().replace("index",""),t=$(o)[0].children[1],s="",r=gsap.timeline();"page"==a&&(s="Copy page"),UtilCopy(n),r.set(t,{text:"Copied!"}).to(t,{duration:.3,opacity:0},"+=0.6").set(t,{text:s,clearProps:"all"},"+=0.3")};$(function(){$("._util-share").click(UtilShare)});
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.3.8
4
+ version: 0.3.9
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-01-23 00:00:00.000000000 Z
11
+ date: 2020-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.0.3
227
+ rubygems_version: 3.0.1
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Private theme for Paul Heading