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 +4 -4
- data/_includes/html/assign.liquid +7 -0
- data/_includes/html/head.liquid +4 -4
- data/_includes/html/loop/artwork/book.liquid +9 -0
- data/_includes/html/page/artwork.liquid +4 -4
- data/_includes/html/page/info.liquid +8 -2
- data/_includes/html/scripts.liquid +2 -2
- data/_layouts/feed.html +8 -8
- data/_layouts/single.html +7 -8
- data/_sass/_area.scss +1 -2
- data/_sass/_lnk.scss +1 -1
- data/_sass/_wrap.scss +2 -0
- data/_sass/helpers/extends.scss +0 -1
- data/_sass/helpers/mixins.scss +1 -1
- data/_sass/helpers/variables.scss +7 -0
- data/assets/css/styles.scss +2 -2
- data/assets/js/footer/custom/ActiveBook.js +14 -16
- data/assets/js/footer/custom/ScrollFunc.js +41 -41
- data/assets/js/futuro.footer.custom.js +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbe6c8236eeeb139d831231c96269f1445c6c4254fd8c1f64b828cf5ee7aab73
|
4
|
+
data.tar.gz: 240e7840bab8388c86272fdb358a27a917b519ab6bb7be6a25b481bae52c2f6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 %}
|
data/_includes/html/head.liquid
CHANGED
@@ -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=
|
7
|
-
<link rel="stylesheet" href="{{ "/assets/css/styles.css?v=
|
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=
|
15
|
-
<script src="{{ "/assets/js/futuro.header.custom.js?v=
|
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
|
-
{%-
|
15
|
+
{%- if site.setup.style == "docs" -%}
|
16
16
|
|
17
|
-
{%- include html/loop/artwork/
|
17
|
+
{%- include html/loop/artwork/docs.liquid -%}
|
18
18
|
|
19
19
|
{%- else -%}
|
20
20
|
|
21
|
-
{
|
21
|
+
{%- include html/loop/artwork/book.liquid -%}
|
22
22
|
|
23
|
-
{%-
|
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: '/
|
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
|
-
|
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=
|
3
|
-
<script src="{{ "/assets/js/futuro.footer.custom.js?v=
|
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
|
6
|
-
{% assign
|
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 %}
|
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
|
6
|
-
{% assign
|
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 %}
|
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
data/_sass/_wrap.scss
CHANGED
data/_sass/helpers/extends.scss
CHANGED
data/_sass/helpers/mixins.scss
CHANGED
@@ -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
|
|
data/assets/css/styles.scss
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
|
2
2
|
const ActiveBook = () => {
|
3
3
|
|
4
|
-
|
4
|
+
let list = $(body)[0].classList,
|
5
|
+
lnk = $(Site.topbar.lnk)[0].classList[2],
|
6
|
+
active = "";
|
5
7
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
21
|
-
$(
|
22
|
-
|
16
|
+
$(function() {
|
17
|
+
if ($(Site.topbar.lnk)) {
|
18
|
+
$(ActiveBook);
|
19
|
+
}
|
20
|
+
});
|
@@ -1,41 +1,41 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
38
|
-
|
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(){
|
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
|
+
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-
|
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
|