futuro 0.5.4 → 0.5.5

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: 8f650f8f19a3aefa0acbd53954b0d6457e61bd17758789ccce236006690df175
4
- data.tar.gz: d8e27abef5179d9174b2a24b1dbb8eaa50a26fee1e2ab7700dafa0cf674e92fc
3
+ metadata.gz: bbe6c8236eeeb139d831231c96269f1445c6c4254fd8c1f64b828cf5ee7aab73
4
+ data.tar.gz: 240e7840bab8388c86272fdb358a27a917b519ab6bb7be6a25b481bae52c2f6a
5
5
  SHA512:
6
- metadata.gz: b907386371a7ad373abe9e2883ff754f04afd56f56f5770d07aa1d481a47e4afb9606fab14547d38b7ff43a131da31c165be344fac6c200db1ff7a4ca4434a6e
7
- data.tar.gz: 9580a56442d064ee286cb8d390a4d4c758bb708dcbe38d79f59d2e73e8ade0b0d397171f0b2c61d2b6981d5e913d3f3be535ae6f2177285490fca6c2d3c3ded3
6
+ metadata.gz: bc235566d7017a82718297eaf8eda8961285e9b73a392c4b90aafd1272b895c63723f0e8f27d33d4d21a7da67f398f49fd7011ca31310eabf38d7e2225c5def3
7
+ data.tar.gz: ca9664fc69aefd5f709fccab4925fe02c6ae0a6606b76815e2139dc3b2516b2896e14ac274f20f89a1775aec11094115b23986acca95be9d5067f17cae3b3db5
@@ -0,0 +1,7 @@
1
+
2
+ {% assign install = site.setup.install | replace: ' ','-' | prepend: ' install-' | downcase %}
3
+ {% assign style = site.setup.style | replace: ' ','-' | prepend: ' style-' | downcase %}
4
+ {% assign layout = page.layout | replace: ' ','-' | prepend: ' layout-' | downcase %}
5
+ {% assign type = page.type | replace: ' ','-' | prepend: ' type-' | downcase %}
6
+ {% assign book = page.collection | replace: ' ','-' | prepend: ' book-' | downcase %}
7
+ {% assign chapter = page.chapter | replace: ' ','-' | prepend: ' chapter-' | downcase %}
@@ -3,14 +3,14 @@
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/css/favicon.png?v=1582201396876" | relative_url }}">
7
- <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1582201396876" | relative_url }}">
6
+ <link rel="icon" href="{{ "/assets/css/favicon.png?v=1582331849661" | relative_url }}">
7
+ <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=1582331849661" | relative_url }}">
8
8
  {% seo %}
9
9
  {% feed_meta %}
10
10
  {% include html/analytics.liquid %}
11
11
  <script type="text/javascript">
12
12
  let Config = {{ site.setup | jsonify }};
13
13
  </script>
14
- <script src="{{ "/assets/js/futuro.header.vendor.js?v=1582201396876" | relative_url }}"></script>
15
- <script src="{{ "/assets/js/futuro.header.custom.js?v=1582201396876" | relative_url }}"></script>
14
+ <script src="{{ "/assets/js/futuro.header.vendor.js?v=1582331849661" | relative_url }}"></script>
15
+ <script src="{{ "/assets/js/futuro.header.custom.js?v=1582331849661" | relative_url }}"></script>
16
16
  </head>
@@ -23,6 +23,15 @@
23
23
  <source id="mp4" src="{{ vid | replace: '.html','.mp4' }}" type="video/mp4">
24
24
  </video>
25
25
 
26
+ {% elsif thing.number %}
27
+
28
+ {% for item in thing.number %}
29
+ <div class="block animate">
30
+ <div class="title animate lrg">{{ item.val }}</div>
31
+ <div class="title animate sml info">{{ item.txt }}</div>
32
+ </div>
33
+ {% endfor %}
34
+
26
35
  {% endif %}
27
36
 
28
37
  {% endfor %}
@@ -12,14 +12,14 @@
12
12
 
13
13
  <div class="area page-artwork {{ setup }} {{ chapchap }} {{ titltitl }}">
14
14
 
15
- {%- unless site.setup.style == "docs" -%}
15
+ {%- if site.setup.style == "docs" -%}
16
16
 
17
- {%- include html/loop/artwork/book.liquid -%}
17
+ {%- include html/loop/artwork/docs.liquid -%}
18
18
 
19
19
  {%- else -%}
20
20
 
21
- {% include html/loop/artwork/docs.liquid -%}
21
+ {%- include html/loop/artwork/book.liquid -%}
22
22
 
23
- {%- endunless -%}
23
+ {%- endif -%}
24
24
 
25
25
  </div>
@@ -3,7 +3,7 @@
3
3
  {% assign chap = page.type | append: '-chapter' %}
4
4
  {% assign weight = page.type | append: '-weight' %}
5
5
  {% assign chapter = page.chapter | replace: ' ','-' | downcase %}
6
- {% assign bPath = page.collection | prepend: '/svg/' %}
6
+ {% assign bPath = page.collection | prepend: '/artwork/' %}
7
7
  {% assign cPath = chapter | append: '/icon.svg' %}
8
8
  {% assign cWrap = page.chapter | prepend: '<div>' | append: '</div>' %}
9
9
  {% assign cDivs = cWrap | split: ' ' | join: '</div><div>' %}
@@ -17,7 +17,13 @@
17
17
  {%- if page.icon -%}
18
18
 
19
19
  <div class="block page-icon {{ chapter }}">
20
- {% include {{ bPath }}/{{ cPath }} %}
20
+
21
+ {%- if site.setup.install == 'book' -%}
22
+ {% include {{ cPath | prepend: '/artwork/' }} %}
23
+ {%- else -%}
24
+ {% include {{ bPath }}/{{ cPath }} %}
25
+ {%- endif -%}
26
+
21
27
  </div>
22
28
 
23
29
  {%- endif -%}
@@ -1,3 +1,3 @@
1
1
 
2
- <script src="{{ "/assets/js/futuro.footer.vendor.js?v=1582201396876" | relative_url }}"></script>
3
- <script src="{{ "/assets/js/futuro.footer.custom.js?v=1582201396876" | relative_url }}"></script>
2
+ <script src="{{ "/assets/js/futuro.footer.vendor.js?v=1582331849661" | relative_url }}"></script>
3
+ <script src="{{ "/assets/js/futuro.footer.custom.js?v=1582331849661" | relative_url }}"></script>
data/_layouts/feed.html CHANGED
@@ -2,20 +2,20 @@
2
2
  layout: mini
3
3
  ---
4
4
 
5
- {% assign install = site.setup.install | prepend: 'install-' %}
6
- {% assign style = site.setup.style | prepend: ' style-' %}
7
- {% assign layout = page.layout | prepend: ' layout-' %}
8
- {% assign type = page.type | prepend: ' type-' %}
9
- {% assign book = page.collection | prepend: ' book-' %}
10
- {% assign chapter = page.chapter | replace: ' ','-' | prepend: ' chapter-' | downcase %}
11
- {% assign topic = page.title | prepend: ' topic-' | downcase %}
5
+ {% include html/assign.liquid %}
6
+ {% assign topic = page.title | replace: ' ','-' | prepend: ' topic-' | downcase %}
12
7
 
13
8
  <!DOCTYPE html>
14
9
  <html lang="{{ page.lang | default: site.lang | default: 'en' }}" class="no-js">
15
10
 
16
11
  {% include html/head.liquid %}
17
12
 
18
- <body class="{% if site.setup.install %}{{ install }}{% endif %}{% if site.setup.style %}{{ style }}{% endif %}{{ layout }}{{ type }}{% if page.collection %}{{ book }}{% endif %}{% if page.chapter %}{{ chapter }}{% endif %}{% if page.topic %}{{ topic }}{% endif %}">
13
+ <body class="{% if site.setup.install %}{{ install }}{% endif %}
14
+ {% if site.setup.style %}{{ style }}{% endif %}
15
+ {% if page.collection %}{{ book }}{% endif %}
16
+ {% if page.chapter %}{{ chapter }}{% endif %}
17
+ {% if page.topic %}{{ topic }}{% endif %}
18
+ {{ layout }}{{ type }}">
19
19
 
20
20
  {% include html/overlay.liquid title='load' exit='false' state='open' %}
21
21
  {% include html/overlay.liquid title='mobile' exit='false' %}
data/_layouts/single.html CHANGED
@@ -2,20 +2,19 @@
2
2
  layout: mini
3
3
  ---
4
4
 
5
- {% assign install = site.setup.install | prepend: 'install-' %}
6
- {% assign style = site.setup.style | prepend: ' style-' %}
7
- {% assign layout = page.layout | prepend: ' layout-' %}
8
- {% assign type = page.type | prepend: ' type-' %}
9
- {% assign book = page.collection | prepend: ' book-' %}
10
- {% assign chapter = page.chapter | replace: ' ','-' | prepend: ' chapter-' | downcase %}
11
- {% assign title = page.title | prepend: ' title-' | downcase %}
5
+ {% include html/assign.liquid %}
6
+ {% assign title = page.title | replace: ' ','-' | prepend: ' title-' | downcase %}
12
7
 
13
8
  <!DOCTYPE html>
14
9
  <html lang="{{ page.lang | default: site.lang | default: 'en' }}" class="no-js">
15
10
 
16
11
  {% include html/head.liquid %}
17
12
 
18
- <body class="{% if site.setup.install %}{{ install }}{% endif %}{% if site.setup.style %}{{ style }}{% endif %}{{ layout }}{{ type }}{% if page.collection %}{{ book }}{% endif %}{% if page.chapter %}{{ chapter }}{% endif %}{{ title }}">
13
+ <body class="{% if site.setup.install %}{{ install }}{% endif %}
14
+ {% if site.setup.style %}{{ style }}{% endif %}
15
+ {% if page.collection %}{{ book }}{% endif %}
16
+ {% if page.chapter %}{{ chapter }}{% endif %}
17
+ {{ layout }}{{ type }}{{ title }}">
19
18
 
20
19
  {% include html/overlay.liquid title='load' exit='false' state='open' %}
21
20
  {% include html/overlay.liquid title='mobile' exit='false' %}
data/_sass/_area.scss CHANGED
@@ -26,6 +26,7 @@
26
26
 
27
27
  &.type-page {
28
28
  @extend %area-page;
29
+ background-color: white;
29
30
 
30
31
  &.style-docs {
31
32
  grid-row-gap: 20px;
@@ -34,8 +35,6 @@
34
35
 
35
36
  &.type-chapter {
36
37
  @extend %area-page;
37
- background-color: black;
38
- color: white;
39
38
 
40
39
  ul {
41
40
  list-style: none;
data/_sass/_lnk.scss CHANGED
@@ -8,8 +8,8 @@
8
8
  }
9
9
 
10
10
  &.scroller {
11
- fill: #666666;
12
11
  opacity: 0.5;
12
+ fill: $gun;
13
13
 
14
14
  &.active {
15
15
  opacity: 1;
data/_sass/_wrap.scss CHANGED
@@ -37,6 +37,8 @@
37
37
 
38
38
  &.type-chapter {
39
39
  @extend %wrap_grid;
40
+ background-color: black;
41
+ color: white;
40
42
 
41
43
  + .wrap.type-page {
42
44
  margin-top: 20px;
@@ -49,7 +49,6 @@
49
49
  }
50
50
 
51
51
  %area-page {
52
- background-color: white;
53
52
  position: relative;
54
53
  overflow: hidden;
55
54
  display: grid;
@@ -44,7 +44,7 @@
44
44
  position: absolute;
45
45
  }
46
46
 
47
- @mixin Theme($name,$col) {
47
+ @mixin ThemeBook($name,$col) {
48
48
 
49
49
  // Home Books
50
50
 
@@ -24,6 +24,13 @@ $coal : lighten(black,5%);
24
24
  $orwell : blue;
25
25
  $woolf : green;
26
26
 
27
+ $addicts : #e6433a;
28
+ $family : #029ddf;
29
+ $receptive : #b25400;
30
+ $value : #5fb641;
31
+ $next : #ffa905;
32
+ $maybe : #974597;
33
+
27
34
  $animate : black;
28
35
  $form : lighten(black,20%);
29
36
 
@@ -3,5 +3,5 @@
3
3
 
4
4
  @import "futuro";
5
5
 
6
- @include Theme(orwell,$orwell);
7
- @include Theme(woolf,$woolf);
6
+ @include ThemeBook(orwell,$orwell);
7
+ @include ThemeBook(woolf,$woolf);
@@ -1,22 +1,20 @@
1
1
 
2
2
  const ActiveBook = () => {
3
3
 
4
- if (!$(body).hasClass("type-home")) {
4
+ let list = $(body)[0].classList,
5
+ lnk = $(Site.topbar.lnk)[0].classList[2],
6
+ active = "";
5
7
 
6
- let list = $(body)[0].classList,
7
- lnk = $(Site.topbar.lnk)[0].classList[2],
8
- active = "";
9
-
10
- $(list).each(function(i,val) {
11
- if (val.startsWith("book-")) {
12
- active = val.slice(5);
13
- }
14
- });
15
-
16
- gsap.set(`${Site.topbar.lnk}.${active}`,{ borderBottom : "3px solid" });
17
- }
8
+ $(list).each(function(i,val) {
9
+ if (val.startsWith("book-")) {
10
+ active = val.slice(5);
11
+ gsap.set(Site.topbar.lnk + "." + active,{ borderBottom : "3px solid" });
12
+ }
13
+ });
18
14
  }
19
15
 
20
- if (Config.install == "library") {
21
- $(ActiveBook);
22
- }
16
+ $(function() {
17
+ if ($(Site.topbar.lnk)) {
18
+ $(ActiveBook);
19
+ }
20
+ });
@@ -1,41 +1,41 @@
1
- //
2
- // const ScrollerUpdate = () => {
3
- // let set = $(Site.scroll.lnk);
4
- //
5
- // if (set.length > 1) {
6
- // set.each(function() {
7
- // let ting = $(this)[0].classList[2],
8
- // tween = gsap.to(Site.scroll.lnk + "." + ting, { duration : 0.1, opacity : 1 }),
9
- // scene = new ScrollMagic.Scene({ triggerElement : "#" + ting }).setTween(tween).addTo(controller);
10
- // });
11
- // }
12
- // }
13
- //
14
- // const ScrollFunc = () => {
15
- // let Scroller = "<div class='block scroller'><div class='wrap scroller'>";
16
- //
17
- // $(Site.chapter.target).each(function(i,val){
18
- // let id = $(val)[0].children[0].id;
19
- //
20
- // if(i == 0) {
21
- // Scroller += `<a class="lnk scroller ${id}" href="#${id}" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>`;
22
- // } else if(i == $(Site.chapter.target).length - 1) {
23
- // Scroller += `<a class="lnk scroller ${id}" href="#${id}"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>`;
24
- // } else {
25
- // Scroller += `<a class="lnk scroller ${id}" href="#${id}"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>`;
26
- // }
27
- // });
28
- //
29
- // Scroller += "</div></div>";
30
- // $(site).append(Scroller);
31
- // ScrollerUpdate();
32
- // SmoothScroll();
33
- // }
34
- //
35
- // $(function() {
36
- // if (Config.install != "theme") {
37
- // if ($(Site.chapter.target).length > 1) {
38
- // ScrollFunc();
39
- // }
40
- // }
41
- // });
1
+
2
+ const ScrollerUpdate = () => {
3
+ let set = $(Site.scroll.lnk);
4
+
5
+ if (set.length > 1) {
6
+ set.each(function() {
7
+ let ting = $(this)[0].classList[2],
8
+ tween = gsap.to(Site.scroll.lnk + "." + ting, { duration : 0.1, opacity : 1 }),
9
+ scene = new ScrollMagic.Scene({ triggerElement : "#" + ting }).setTween(tween).addTo(controller);
10
+ });
11
+ }
12
+ }
13
+
14
+ const ScrollFunc = () => {
15
+ let Scroller = "<div class='block scroller'><div class='wrap scroller'>";
16
+
17
+ $(Site.chapter.target).each(function(i,val){
18
+ let id = $(val)[0].children[0].id;
19
+
20
+ if(i == 0) {
21
+ Scroller += `<a class="lnk scroller ${id}" href="#${id}" style=""><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,5l9,14H4L13,5z"/></svg></a>`;
22
+ } else if(i == $(Site.chapter.target).length - 1) {
23
+ Scroller += `<a class="lnk scroller ${id}" href="#${id}"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><path d="M13,21L4,7h18L13,21z"/></svg></a>`;
24
+ } else {
25
+ Scroller += `<a class="lnk scroller ${id}" href="#${id}"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="26" height="26" viewBox="0 0 26 26" xml:space="preserve" enable-background="new 0 0 26 26"><circle cx="13" cy="13" r="9"/></svg></a>`;
26
+ }
27
+ });
28
+
29
+ Scroller += "</div></div>";
30
+ $(site).append(Scroller);
31
+ ScrollerUpdate();
32
+ SmoothScroll();
33
+ }
34
+
35
+ $(function() {
36
+ if (Config.install != "theme") {
37
+ if ($(Site.chapter.target).length > 1) {
38
+ ScrollFunc();
39
+ }
40
+ }
41
+ });
@@ -1 +1 @@
1
- "use strict";var BrowseScreen,body="body",site=".site",shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller;"theme"!=Config.install&&((BrowseScreen=Overlay.custom[1]).data=$(BrowseScreen.chapter.col).children(BrowseScreen.chunk).children().length);var PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=Site.desktop.width-e+"px",t=100/Site.desktop.width*e+"%";$(".width").html(o),gsap.set(Overlay.mobile.bar,{width:t})},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 ActiveBook=function(){if(!$(body).hasClass("type-home")){var e=$(body)[0].classList,t=($(Site.topbar.lnk)[0].classList[2],"");$(e).each(function(e,o){o.startsWith("book-")&&(t=o.slice(5))}),gsap.set("".concat(Site.topbar.lnk,".").concat(t),{borderBottom:"3px solid"})}};"library"==Config.install&&$(ActiveBook);var ExpandBlock=function(e){var o=$(e.target),t=o.parent().siblings(Site.page.artwork).children(Site.code.wrap);"none"==t.css("display")?(gsap.set(t,{display:Config.display}),gsap.set(o,{text:"Hide"})):(gsap.set(t,{clearProps:"display"}),gsap.set(o,{text:"Show"}))};"docs"==Config.style&&$(Site.code.expand).click(function(e){ExpandBlock(e)});var ChangeScreen=function(e,o,t){"close"==t?(gsap.set(body,{clearProps:"overflow"}),gsap.set(".overlay."+Overlay.custom[e].name,{clearProps:"display"}),Overlay.custom[e].open=!1):(gsap.set(body,{overflow:"hidden"}),gsap.set(".overlay."+Overlay.custom[e].name,{display:Config.display}),Overlay.custom[e].open=!0)},BuildScreens=function(e,o){var t=".btn.nav.".concat(o.name),n=".exit.".concat(o.name);$(t).click(function(){ChangeScreen(e,o,"open")}),$(n).click(function(){ChangeScreen(e,o,"close")})},KeyUp=function(t){27==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[e].open&&ChangeScreen(e,o,"close")}),65==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[0].open||(ChangeScreen(0,o,"open"),console.log(t.keyCode))}),66==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[1].open||ChangeScreen(1,o,"open")}),83==t.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 SetupHome=function(){$(body).hasClass("type-home")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(Site.home.book.area,{y:-5},{duration:1,y:5}),$(Site.home.wrap).slick(Site.home.slick),$(Site.home.book.wrap).hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};"library"==Config.install&&$(SetupHome);var SiteFunc=function(){Config.respond?gsap.set(site,{display:Config.display}):Site.mobile.active||("library"==Config.install&&$(body).hasClass("type-home")?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 SplitCode=function(){$(Site.code.page).each(function(e,o){$(Site.code.scss,this);var t=$(Site.code.html,this),n=t.html();t.text(n)})};"docs"==Config.style&&$(SplitCode);var StartBrowse=function(){var e=$(".block.browse-lnk",BrowseScreen.book.col)[0],o=$(".block.browse-chunk",BrowseScreen.chapter.col)[0],t=$(".block.browse-chunk",BrowseScreen.page.col)[0],n=$(t)[0].children[0],s=$(e)[0].children[0],c=$(o)[0].children[0].children[0],a=$(n)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([o,t,n],{display:"block"}).set([s,c,a],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target)[0].classList[2].slice(5),t=$(BrowseScreen.chunk+"."+o,BrowseScreen.chapter.col),n=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),s=$(n)[0].children[0],c=$(t)[0].children[0].children[0],a=$(s)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([t,n,s],{display:"block"}).set([BrowseScreen.book.lnk,BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),c,a],{backgroundColor:shade})},HoverChap=function(e){var o=$(e.target)[0].classList[2].slice(5),t=$(e.target)[0].classList[3].slice(8),n=$(BrowseScreen.chunk+"."+o,BrowseScreen.chapter.col),s=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),c=$(BrowseScreen.chunk+"."+t,s),a=$(c)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([n,s,c],{display:"block"}).set([BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),a],{backgroundColor:shade})},HoverPage=function(e){gsap.timeline().set(BrowseScreen.page.lnk,{clearProps:"backgroundColor"}).set($(e.target),{backgroundColor:shade})};"theme"!=Config.install&&$(function(){$(body).hasClass("type-home")||0<BrowseScreen.data&&(StartBrowse(),$(BrowseScreen.book.lnk).hover(function(e){HoverBook(e)}),$(BrowseScreen.chapter.lnk).hover(function(e){HoverChap(e)}),$(BrowseScreen.page.lnk).hover(function(e){HoverPage(e)}))});var SwitchFocus=function(){$("input,textarea").focusin(function(){Site.focus=!0,console.log("site.focus",Site.focus)}),$("input,textarea").focusout(function(){Site.focus=!1,console.log("site.focus",Site.focus)})};$(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),t=$(o)[0].classList[2],n=$(o).children(Site.page.url).text().replace("index",""),s=$(o)[0].children[1],c=gsap.timeline(),a="";"page"==t&&(a="Copy page"),UtilCopy(n),c.set(s,{text:"Copied!"}).to(s,{duration:.3,opacity:0},"+=0.6").set(s,{text:a,clearProps:"all"},"+=0.3")};"theme"!=Config.install&&Config.share&&$(function(){$(Site.page.share).click(UtilShare)});
1
+ "use strict";var BrowseScreen,body="body",site=".site",shade="rgba(0,0,0,0.05)",controller=new ScrollMagic.Controller;"theme"!=Config.install&&((BrowseScreen=Overlay.custom[1]).data=$(BrowseScreen.chapter.col).children(BrowseScreen.chunk).children().length);var PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=Site.desktop.width-e+"px",t=100/Site.desktop.width*e+"%";$(".width").html(o),gsap.set(Overlay.mobile.bar,{width:t})},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 ActiveBook=function(){var e=$(body)[0].classList,t=($(Site.topbar.lnk)[0].classList[2],"");$(e).each(function(e,o){o.startsWith("book-")&&(t=o.slice(5),gsap.set(Site.topbar.lnk+"."+t,{borderBottom:"3px solid"}))})};$(function(){$(Site.topbar.lnk)&&$(ActiveBook)});var ExpandBlock=function(e){var o=$(e.target),t=o.parent().siblings(Site.page.artwork).children(Site.code.wrap);"none"==t.css("display")?(gsap.set(t,{display:Config.display}),gsap.set(o,{text:"Hide"})):(gsap.set(t,{clearProps:"display"}),gsap.set(o,{text:"Show"}))};"docs"==Config.style&&$(Site.code.expand).click(function(e){ExpandBlock(e)});var ChangeScreen=function(e,o,t){"close"==t?(gsap.set(body,{clearProps:"overflow"}),gsap.set(".overlay."+Overlay.custom[e].name,{clearProps:"display"}),Overlay.custom[e].open=!1):(gsap.set(body,{overflow:"hidden"}),gsap.set(".overlay."+Overlay.custom[e].name,{display:Config.display}),Overlay.custom[e].open=!0)},BuildScreens=function(e,o){var t=".btn.nav.".concat(o.name),n=".exit.".concat(o.name);$(t).click(function(){ChangeScreen(e,o,"open")}),$(n).click(function(){ChangeScreen(e,o,"close")})},KeyUp=function(t){27==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[e].open&&ChangeScreen(e,o,"close")}),65==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[0].open||(ChangeScreen(0,o,"open"),console.log(t.keyCode))}),66==t.keyCode&&$(Overlay.custom).each(function(e,o){Overlay.custom[1].open||ChangeScreen(1,o,"open")}),83==t.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 ScrollerUpdate=function(){var e=$(Site.scroll.lnk);1<e.length&&e.each(function(){var e=$(this)[0].classList[2],o=gsap.to(Site.scroll.lnk+"."+e,{duration:.1,opacity:1});new ScrollMagic.Scene({triggerElement:"#"+e}).setTween(o).addTo(controller)})},ScrollFunc=function(){var n="<div class='block scroller'><div class='wrap scroller'>";$(Site.chapter.target).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==$(Site.chapter.target).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>",$(site).append(n),ScrollerUpdate(),SmoothScroll()};$(function(){"theme"!=Config.install&&1<$(Site.chapter.target).length&&ScrollFunc()});var SetupHome=function(){$(body).hasClass("type-home")&&(gsap.timeline({repeat:-1,yoyo:!0,defaults:{ease:"sine.inOut"}}).fromTo(Site.home.book.area,{y:-5},{duration:1,y:5}),$(Site.home.wrap).slick(Site.home.slick),$(Site.home.book.wrap).hover(function(){gsap.to(this,{duration:.1,y:-20})},function(){gsap.to(this,{duration:.1,y:0})}))};"library"==Config.install&&$(SetupHome);var SiteFunc=function(){Config.respond?gsap.set(site,{display:Config.display}):Site.mobile.active||("library"==Config.install&&$(body).hasClass("type-home")?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 SplitCode=function(){$(Site.code.page).each(function(e,o){$(Site.code.scss,this);var t=$(Site.code.html,this),n=t.html();t.text(n)})};"docs"==Config.style&&$(SplitCode);var StartBrowse=function(){var e=$(".block.browse-lnk",BrowseScreen.book.col)[0],o=$(".block.browse-chunk",BrowseScreen.chapter.col)[0],t=$(".block.browse-chunk",BrowseScreen.page.col)[0],n=$(t)[0].children[0],r=$(e)[0].children[0],c=$(o)[0].children[0].children[0],a=$(n)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([o,t,n],{display:"block"}).set([r,c,a],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target)[0].classList[2].slice(5),t=$(BrowseScreen.chunk+"."+o,BrowseScreen.chapter.col),n=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),r=$(n)[0].children[0],c=$(t)[0].children[0].children[0],a=$(r)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([t,n,r],{display:"block"}).set([BrowseScreen.book.lnk,BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),c,a],{backgroundColor:shade})},HoverChap=function(e){var o=$(e.target)[0].classList[2].slice(5),t=$(e.target)[0].classList[3].slice(8),n=$(BrowseScreen.chunk+"."+o,BrowseScreen.chapter.col),r=$(BrowseScreen.chunk+"."+o,BrowseScreen.page.col),c=$(BrowseScreen.chunk+"."+t,r),a=$(c)[0].children[0].children[0];gsap.timeline().set(BrowseScreen.chunk,{display:"none"}).set([n,r,c],{display:"block"}).set([BrowseScreen.chapter.lnk,BrowseScreen.page.lnk],{clearProps:"backgroundColor"}).set([$(e.target),a],{backgroundColor:shade})},HoverPage=function(e){gsap.timeline().set(BrowseScreen.page.lnk,{clearProps:"backgroundColor"}).set($(e.target),{backgroundColor:shade})};"theme"!=Config.install&&$(function(){$(body).hasClass("type-home")||0<BrowseScreen.data&&(StartBrowse(),$(BrowseScreen.book.lnk).hover(function(e){HoverBook(e)}),$(BrowseScreen.chapter.lnk).hover(function(e){HoverChap(e)}),$(BrowseScreen.page.lnk).hover(function(e){HoverPage(e)}))});var SwitchFocus=function(){$("input,textarea").focusin(function(){Site.focus=!0}),$("input,textarea").focusout(function(){Site.focus=!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),t=$(o)[0].classList[2],n=$(o).children(Site.page.url).text().replace("index",""),r=$(o)[0].children[1],c=gsap.timeline(),a="";"page"==t&&(a="Copy page"),UtilCopy(n),c.set(r,{text:"Copied!"}).to(r,{duration:.3,opacity:0},"+=0.6").set(r,{text:a,clearProps:"all"},"+=0.3")};"theme"!=Config.install&&Config.share&&$(function(){$(Site.page.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.5.4
4
+ version: 0.5.5
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-02-20 00:00:00.000000000 Z
11
+ date: 2020-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -90,6 +90,7 @@ files:
90
90
  - LICENSE
91
91
  - README.md
92
92
  - _includes/html/analytics.liquid
93
+ - _includes/html/assign.liquid
93
94
  - _includes/html/filter/loop.liquid
94
95
  - _includes/html/filter/type.liquid
95
96
  - _includes/html/head.liquid