futuro 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/html/head.liquid +4 -4
- data/_includes/html/loop/artwork/docs.liquid +6 -6
- data/_includes/html/overlay/browse/book.liquid +37 -0
- data/_includes/html/overlay/browse/chapter.liquid +36 -0
- data/_includes/html/overlay/browse/page.liquid +63 -0
- data/_includes/html/overlay/browse.liquid +4 -132
- data/_includes/html/overlay/load.liquid +35 -39
- data/_includes/html/overlay/search.liquid +19 -21
- data/_includes/html/page/artwork.liquid +1 -4
- data/_includes/html/page/header.liquid +4 -4
- data/_includes/html/page/info.liquid +2 -2
- data/_includes/html/page/layout/chapter.liquid +1 -1
- data/_includes/html/page/layout/custom.liquid +2 -2
- data/_includes/html/page/layout/home.liquid +2 -2
- data/_includes/html/page/layout/page.liquid +2 -6
- data/_includes/html/page/layout/panel.liquid +2 -2
- data/_includes/html/page/layout/tree.liquid +2 -2
- data/_includes/html/page/subtitle.liquid +3 -1
- data/_includes/html/page/title.liquid +6 -10
- data/_includes/html/page/topbar.liquid +11 -1
- data/_includes/html/page/utils/share.liquid +1 -1
- data/_includes/html/scripts.liquid +2 -2
- data/_layouts/feed.html +3 -2
- data/_layouts/single.html +3 -2
- data/_sass/_area.scss +5 -13
- data/_sass/_base.scss +14 -2
- data/_sass/_block.scss +19 -29
- data/_sass/_col.scss +14 -21
- data/_sass/_site.scss +0 -1
- data/_sass/_title.scss +6 -4
- data/_sass/_wrap.scss +8 -2
- data/_sass/block/_browse.scss +2 -2
- data/_sass/block/_results.scss +2 -2
- data/_sass/block/_util.scss +4 -0
- data/_sass/helpers/_extends.scss +5 -23
- data/_sass/helpers/_mixins.scss +4 -0
- data/_sass/helpers/_variables.scss +3 -0
- data/assets/js/footer/custom/CheckWidth.js +10 -11
- data/assets/js/footer/custom/ExpandBlock.js +5 -5
- data/assets/js/footer/custom/Overlays.js +74 -0
- data/assets/js/footer/custom/ScrollFunc.js +41 -43
- data/assets/js/footer/custom/Settings.js +7 -5
- data/assets/js/footer/custom/SetupHome.js +2 -3
- data/assets/js/footer/custom/SiteFunc.js +19 -12
- data/assets/js/footer/custom/SplitCode.js +1 -1
- data/assets/js/footer/custom/StartBrowse.js +21 -30
- data/assets/js/footer/custom/SwitchFocus.js +15 -0
- data/assets/js/footer/custom/UtilShare.js +6 -6
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.header.custom.js +1 -1
- data/assets/js/header/custom/Overlay.js +27 -38
- data/assets/js/header/custom/Site.js +47 -25
- metadata +21 -5
- data/_includes/artwork/orwell/animal/flob.scss +0 -5
- data/_includes/artwork/orwell/animal/waldo.scss +0 -45
- data/assets/js/footer/custom/OpenOverlay.js +0 -120
@@ -1,120 +0,0 @@
|
|
1
|
-
|
2
|
-
const OpenOverlay = type => {
|
3
|
-
gsap.set(body,{overflow:"hidden"});
|
4
|
-
gsap.set(".overlay." + type,{display:Site.open});
|
5
|
-
}
|
6
|
-
|
7
|
-
const CloseOverlay = type => {
|
8
|
-
gsap.set([body,".overlay." + type],{clearProps:"all"});
|
9
|
-
}
|
10
|
-
|
11
|
-
function KeyFunc(e) {
|
12
|
-
let code = e.keyCode;
|
13
|
-
|
14
|
-
if (code == 27) {
|
15
|
-
|
16
|
-
if (Overlay.about.active) {
|
17
|
-
|
18
|
-
if (Overlay.about.open) {
|
19
|
-
CloseOverlay("about");
|
20
|
-
Overlay.about.open = false;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
if (Overlay.browse.active) {
|
25
|
-
|
26
|
-
if (Overlay.browse.open) {
|
27
|
-
CloseOverlay("browse");
|
28
|
-
Overlay.browse.open = false;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
if (Overlay.search.active) {
|
33
|
-
|
34
|
-
if (Overlay.search.open) {
|
35
|
-
CloseOverlay("search");
|
36
|
-
$(Overlay.search.input).val("");
|
37
|
-
$(Overlay.search.results).html("");
|
38
|
-
Overlay.search.open = false;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
if (Overlay.about.active) {
|
44
|
-
|
45
|
-
if (code == 65) {
|
46
|
-
OpenOverlay("about");
|
47
|
-
Overlay.about.open = true;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
if (Overlay.browse.active) {
|
52
|
-
|
53
|
-
if (code == 66) {
|
54
|
-
OpenOverlay("browse");
|
55
|
-
Overlay.browse.open = true;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
if (Overlay.search.active) {
|
60
|
-
|
61
|
-
if (code == 83) {
|
62
|
-
OpenOverlay("search");
|
63
|
-
$(Overlay.search.input).focus();
|
64
|
-
Overlay.search.open = true;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
}
|
69
|
-
|
70
|
-
if (Overlay.about.active) {
|
71
|
-
|
72
|
-
$(Overlay.about.btn).click(function() {
|
73
|
-
OpenOverlay("about");
|
74
|
-
Overlay.about.open = true;
|
75
|
-
});
|
76
|
-
|
77
|
-
$(Overlay.about.exit).click(function() {
|
78
|
-
CloseOverlay("about");
|
79
|
-
Overlay.about.open = false;
|
80
|
-
});
|
81
|
-
}
|
82
|
-
|
83
|
-
if (Overlay.browse.active) {
|
84
|
-
|
85
|
-
$(Overlay.browse.btn).click(function() {
|
86
|
-
OpenOverlay("browse");
|
87
|
-
Overlay.browse.open = true;
|
88
|
-
});
|
89
|
-
|
90
|
-
$(Overlay.browse.exit).click(function() {
|
91
|
-
CloseOverlay("browse");
|
92
|
-
Overlay.browse.open = false;
|
93
|
-
});
|
94
|
-
}
|
95
|
-
|
96
|
-
if (Overlay.search.active) {
|
97
|
-
|
98
|
-
$(Overlay.search.btn).click(function() {
|
99
|
-
OpenOverlay("search");
|
100
|
-
$(Overlay.search.input).focus();
|
101
|
-
Overlay.search.open = true;
|
102
|
-
});
|
103
|
-
|
104
|
-
$(Overlay.search.exit).click(function() {
|
105
|
-
CloseOverlay("search");
|
106
|
-
$(Overlay.search.input).val("");
|
107
|
-
$(Overlay.search.results).html("");
|
108
|
-
Overlay.search.open = false;
|
109
|
-
});
|
110
|
-
}
|
111
|
-
|
112
|
-
$(document).keyup(function(e){
|
113
|
-
|
114
|
-
if (!Site.respond) {
|
115
|
-
|
116
|
-
if (!Site.mobile) { KeyFunc(e); }
|
117
|
-
|
118
|
-
} else { KeyFunc(e); }
|
119
|
-
|
120
|
-
});
|