futuro 1.0.8 → 1.1.3
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/page.liquid +2 -1
- data/_includes/html/assign/site.liquid +30 -21
- data/_includes/html/layout/footer.liquid +5 -1
- data/_includes/html/overlay/browse/page.liquid +1 -1
- data/_includes/html/page/content/loop/screen/header.liquid +45 -2
- data/_includes/html/page/header.liquid +1 -2
- data/_includes/html/page/layout/home.liquid +17 -7
- data/_includes/html/page/topbar.liquid +28 -17
- data/_includes/html/page/topbar/navigation/link.liquid +22 -0
- data/_includes/svg/site/icon.liquid +39 -19
- data/_sass/area/topbar.scss +1 -1
- data/_sass/block/chart.scss +2 -1
- data/_sass/block/form/screen.scss +62 -29
- data/_sass/block/util.scss +3 -0
- data/_sass/futuro.core.scss +2 -0
- data/_sass/helpers/extends.scss +0 -17
- data/_sass/helpers/mixins/layout.scss +0 -1
- data/_sass/helpers/mixins/theme.scss +3 -5
- data/_sass/helpers/themes.scss +14 -13
- data/_sass/helpers/variables.scss +24 -244
- data/_sass/helpers/variables/colors.scss +290 -0
- data/_sass/link/book.scss +8 -6
- data/_sass/link/navigation.scss +11 -7
- data/_sass/title/book.scss +9 -0
- data/_sass/title/page.scss +2 -0
- data/_sass/title/type.scss +1 -0
- data/assets/js/footer/custom/1_Settings.js +1 -2
- data/assets/js/footer/custom/2_Check.width.js +6 -23
- data/assets/js/footer/custom/4_Setup.home.js +3 -1
- data/assets/js/footer/custom/4_Setup.overlays.js +56 -56
- data/assets/js/footer/custom/4_Start.browse.js +3 -67
- data/assets/js/footer/custom/5_Util.share.js +0 -75
- data/assets/js/footer/custom/5_WhatsOn.js +7 -7
- data/assets/js/footer/custom/5_respond.scroller.js +11 -0
- data/assets/js/footer/vendor/futuro/browsr.js +269 -0
- data/assets/js/footer/vendor/futuro/checkr.js +41 -0
- data/assets/js/footer/vendor/futuro/ovrly.js +102 -0
- data/assets/js/footer/vendor/{gsap-draw.js → gsap/draw.js} +0 -0
- data/assets/js/footer/vendor/{gsap-morph.js → gsap/morph.js} +0 -0
- data/assets/js/footer/vendor/{gsap-scramble.js → gsap/scramble.js} +0 -0
- data/assets/js/footer/vendor/gsap/scroll.js +11 -0
- data/assets/js/footer/vendor/{gsap-text.js → gsap/text.js} +0 -0
- data/assets/js/footer/vendor/{jquery.min.js → jquery.js} +0 -0
- data/assets/js/footer/vendor/{parsley.min.js → parsley.js} +0 -0
- data/assets/js/futuro.footer.custom.js +1 -1
- data/assets/js/futuro.footer.vendor.js +426 -314
- data/assets/js/futuro.header.legacy.js +4 -3
- data/assets/js/futuro.header.legacy.shopify.js +4 -3
- data/assets/js/futuro.header.vendor.js +4 -3
- data/assets/js/header/vendor/gsap.js +4 -3
- metadata +16 -15
- data/_includes/svg/site/book/orwell.svg +0 -1
- data/_includes/svg/site/book/woolf.svg +0 -1
- data/assets/js/footer/custom/3_Setup.browse.js +0 -298
- data/assets/js/footer/custom/5_Animate.scroller.js +0 -16
- data/assets/js/footer/custom/5_Respond.browse.js +0 -42
- data/assets/js/footer/vendor/scrollmagic-gsap.js +0 -310
- data/assets/js/footer/vendor/scrollmagic.js +0 -3
@@ -1,68 +1,4 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
Browse.book.links.map((index,value)=>{
|
7
|
-
|
8
|
-
Check.book.class(value);
|
9
|
-
|
10
|
-
if (Browse.found.success) {
|
11
|
-
|
12
|
-
gsap.set(value,BackgroundShade);
|
13
|
-
|
14
|
-
}
|
15
|
-
|
16
|
-
});
|
17
|
-
|
18
|
-
Browse.chapter.books.map((index,value)=>{
|
19
|
-
|
20
|
-
Check.book.class(value);
|
21
|
-
|
22
|
-
if (Browse.found.success) {
|
23
|
-
|
24
|
-
Browse.chapter.books.filter(index,value);
|
25
|
-
|
26
|
-
} else {
|
27
|
-
|
28
|
-
gsap.set(value,DisplayNone);
|
29
|
-
|
30
|
-
}
|
31
|
-
|
32
|
-
});
|
33
|
-
|
34
|
-
Browse.page.books.map((index,value)=>{
|
35
|
-
|
36
|
-
Check.book.class(value);
|
37
|
-
|
38
|
-
if (Browse.found.success) {
|
39
|
-
|
40
|
-
Browse.page.books.filter(index,value);
|
41
|
-
|
42
|
-
} else {
|
43
|
-
|
44
|
-
gsap.set(value,DisplayNone);
|
45
|
-
|
46
|
-
}
|
47
|
-
|
48
|
-
});
|
49
|
-
|
50
|
-
} else {
|
51
|
-
|
52
|
-
Browse.chapter.books.map((index,value)=>{
|
53
|
-
|
54
|
-
Browse.chapter.books.filter(index,value);
|
55
|
-
|
56
|
-
});
|
57
|
-
|
58
|
-
Browse.page.books.map((index,value)=>{
|
59
|
-
|
60
|
-
Browse.page.books.filter(index,value);
|
61
|
-
|
62
|
-
});
|
63
|
-
|
64
|
-
}
|
65
|
-
|
66
|
-
}
|
67
|
-
|
68
|
-
if (!Site.isTheme) { if (!Body.isHome) { if (Browse.able) { Start.browse(); } } }
|
2
|
+
if (!Site.isTheme && !Body.isHome && Browse.able) {
|
3
|
+
Browsr();
|
4
|
+
}
|
@@ -23,78 +23,3 @@ Util.share = function(ting) {
|
|
23
23
|
|
24
24
|
Util.copy(getUrl);
|
25
25
|
}
|
26
|
-
|
27
|
-
// const UtilCopy = str => {
|
28
|
-
// const el = document.createElement('textarea');
|
29
|
-
// el.value = str;
|
30
|
-
// document.body.appendChild(el);
|
31
|
-
// el.select();
|
32
|
-
// document.execCommand('copy');
|
33
|
-
// document.body.removeChild(el);
|
34
|
-
// }
|
35
|
-
|
36
|
-
// // const UtilShare = e => {
|
37
|
-
// // let ting = $(e.target).parents(Site.page.share),
|
38
|
-
// // type = $(ting)[0].classList[2],
|
39
|
-
// // url = $(ting).children(Site.page.url).text().replace('index',''),
|
40
|
-
// // title = $(ting)[0].children[1],
|
41
|
-
// // tl = gsap.timeline(),
|
42
|
-
// // reset = '';
|
43
|
-
|
44
|
-
// // console.log(e);
|
45
|
-
|
46
|
-
|
47
|
-
// // if (type == 'page') {
|
48
|
-
// // reset = 'Copy page';
|
49
|
-
// // }
|
50
|
-
|
51
|
-
// // UtilCopy(url);
|
52
|
-
|
53
|
-
// // tl
|
54
|
-
// // .set(title,{
|
55
|
-
// // text : 'Copied!'
|
56
|
-
// // })
|
57
|
-
// // .to(title,{
|
58
|
-
// // duration : 0.3,
|
59
|
-
// // opacity : 0
|
60
|
-
// // },'+=0.6')
|
61
|
-
// // .set(title,{
|
62
|
-
// // text : reset,
|
63
|
-
// // clearProps : 'all'
|
64
|
-
// // },'+=0.3');
|
65
|
-
// // }
|
66
|
-
|
67
|
-
// function UtilShare() {
|
68
|
-
// let target = $(this).parents(Site.page.share),
|
69
|
-
// getUrl = $(target.context).find(Site.page.url).text(),
|
70
|
-
// tl = gsap.timeline(),
|
71
|
-
// type = "";
|
72
|
-
// getUrl = getUrl.replace("index","");
|
73
|
-
|
74
|
-
// console.log("Util runs!");
|
75
|
-
|
76
|
-
|
77
|
-
// $(target.context.classList).map((index,value)=>{
|
78
|
-
// if (value.includes("type-")) {
|
79
|
-
// type = value;
|
80
|
-
// }
|
81
|
-
// });
|
82
|
-
|
83
|
-
// UtilCopy(getUrl);
|
84
|
-
|
85
|
-
// // tl
|
86
|
-
// // .set(title,{
|
87
|
-
// // text : 'Copied!'
|
88
|
-
// // })
|
89
|
-
// // .to(title,{
|
90
|
-
// // duration : 0.3,
|
91
|
-
// // opacity : 0
|
92
|
-
// // },'+=0.6')
|
93
|
-
// // .set(title,{
|
94
|
-
// // text : reset,
|
95
|
-
// // clearProps : 'all'
|
96
|
-
// // },'+=0.3');
|
97
|
-
|
98
|
-
// }
|
99
|
-
|
100
|
-
// // if (!Site.isTheme) { if (Site.isShareable) { $(Site.page.share).click(UtilShare); }}
|
@@ -2,17 +2,17 @@
|
|
2
2
|
const WhatsOn = {
|
3
3
|
|
4
4
|
speed : input => {
|
5
|
-
return input * 0.
|
5
|
+
return input * 0.05;
|
6
6
|
},
|
7
7
|
|
8
8
|
slide : value => {
|
9
9
|
|
10
|
-
let alert = $(".
|
11
|
-
feed = $(".
|
10
|
+
let alert = $(".screen-alert__wrap",value),
|
11
|
+
feed = $(".screen-alert__feed",value),
|
12
12
|
width = $(feed).width() + 100,
|
13
|
-
clone = $(".
|
13
|
+
clone = $(".screen-alert__clone",value);
|
14
14
|
|
15
|
-
$(alert).addClass("modify-grid");
|
15
|
+
$(alert).addClass("modify-grid");
|
16
16
|
|
17
17
|
const prep = gsap.timeline({ defaults : { ease : "none" }});
|
18
18
|
|
@@ -33,9 +33,9 @@ const WhatsOn = {
|
|
33
33
|
|
34
34
|
scroll : value => {
|
35
35
|
|
36
|
-
let feed = $(".
|
36
|
+
let feed = $(".screen-event__feed",value),
|
37
37
|
height = $(feed).height(),
|
38
|
-
clone = $(".
|
38
|
+
clone = $(".screen-event__clone",value);
|
39
39
|
|
40
40
|
let tl = gsap.timeline({ repeat : -1, defaults : { ease : "none" }});
|
41
41
|
|
@@ -0,0 +1,269 @@
|
|
1
|
+
(function (global, $) {
|
2
|
+
var Browsr = function (target) {
|
3
|
+
return new Browsr.init(target);
|
4
|
+
};
|
5
|
+
|
6
|
+
let library = true,
|
7
|
+
found = false,
|
8
|
+
book = {
|
9
|
+
found: false,
|
10
|
+
},
|
11
|
+
chapter = {
|
12
|
+
found: false,
|
13
|
+
},
|
14
|
+
page = {
|
15
|
+
found: false,
|
16
|
+
};
|
17
|
+
|
18
|
+
Browsr.prototype = {
|
19
|
+
match(value, type = "book") {
|
20
|
+
$(value.classList).map((_, value) => {
|
21
|
+
if (type == "book") {
|
22
|
+
if (value.startsWith(type + "-")) {
|
23
|
+
book.class = value;
|
24
|
+
}
|
25
|
+
} else if (type == "chapter") {
|
26
|
+
if (value.startsWith(type + "-")) {
|
27
|
+
chapter.class = value;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
});
|
31
|
+
},
|
32
|
+
checkPage(value) {
|
33
|
+
found = false;
|
34
|
+
$(value.classList).map((_, value) => {
|
35
|
+
if (value.startsWith("page-")) {
|
36
|
+
if (page.class == value) {
|
37
|
+
found = true;
|
38
|
+
page.found = true;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
});
|
42
|
+
},
|
43
|
+
checkChapter(value) {
|
44
|
+
found = false;
|
45
|
+
$(value.classList).map((_, value) => {
|
46
|
+
if (value.startsWith("chapter-")) {
|
47
|
+
if (chapter.class == value) {
|
48
|
+
found = true;
|
49
|
+
chapter.found = true;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
});
|
53
|
+
},
|
54
|
+
checkBook(value) {
|
55
|
+
found = false;
|
56
|
+
$(value.classList).map((_, value) => {
|
57
|
+
if (value.startsWith("book-")) {
|
58
|
+
if (book.class == value) {
|
59
|
+
found = true;
|
60
|
+
book.found = true;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
});
|
64
|
+
},
|
65
|
+
setPageUrl(index) {
|
66
|
+
if (!this.pathify()[index]) {
|
67
|
+
$(page.links[0].classList).map((_, value) => {
|
68
|
+
if (value.startsWith("page-")) {
|
69
|
+
page.url = value.slice(5);
|
70
|
+
}
|
71
|
+
});
|
72
|
+
} else {
|
73
|
+
page.url = this.pathify()[index];
|
74
|
+
}
|
75
|
+
},
|
76
|
+
setChapterUrl(index) {
|
77
|
+
if (!this.pathify()[index]) {
|
78
|
+
$(chapter.links[0].classList).map((_, value) => {
|
79
|
+
if (value.startsWith("chapter-")) {
|
80
|
+
chapter.url = value.slice(8);
|
81
|
+
}
|
82
|
+
});
|
83
|
+
} else {
|
84
|
+
chapter.url = this.pathify()[index];
|
85
|
+
}
|
86
|
+
},
|
87
|
+
nunify(value) {
|
88
|
+
gsap.set(value, { display: "none" });
|
89
|
+
},
|
90
|
+
shadify(value) {
|
91
|
+
gsap.set(value, { background: "rgba(0,0,0,0.05)" });
|
92
|
+
},
|
93
|
+
clearify(value, attr = "background") {
|
94
|
+
gsap.set(value, { clearProps: attr });
|
95
|
+
},
|
96
|
+
bookify(value) {
|
97
|
+
return $(".block.browse-book", ".wrap.browse-" + value);
|
98
|
+
},
|
99
|
+
linkify(value) {
|
100
|
+
return $(".link.browse-" + value, ".wrap.browse-" + value);
|
101
|
+
},
|
102
|
+
classify(value, type) {
|
103
|
+
return type + "-" + value;
|
104
|
+
},
|
105
|
+
pathify() {
|
106
|
+
return window.location.pathname.split("/").map((value) => {
|
107
|
+
if (value != "") {
|
108
|
+
return value;
|
109
|
+
}
|
110
|
+
});
|
111
|
+
},
|
112
|
+
setup() {
|
113
|
+
chapter.links = this.linkify("chapter");
|
114
|
+
page.links = this.linkify("page");
|
115
|
+
if (library) {
|
116
|
+
book.url = this.pathify()[1];
|
117
|
+
this.setChapterUrl(2);
|
118
|
+
this.setPageUrl(3);
|
119
|
+
book.links = this.linkify("book");
|
120
|
+
book.class = this.classify(book.url, "book");
|
121
|
+
} else {
|
122
|
+
this.setChapterUrl(1);
|
123
|
+
this.setPageUrl(2);
|
124
|
+
}
|
125
|
+
chapter.books = this.bookify("chapter");
|
126
|
+
chapter.class = this.classify(chapter.url, "chapter");
|
127
|
+
page.books = this.bookify("page");
|
128
|
+
page.class = this.classify(page.url, "page");
|
129
|
+
},
|
130
|
+
start() {
|
131
|
+
this.setup();
|
132
|
+
// console.log(book,chapter,page);
|
133
|
+
|
134
|
+
if (book.url) {
|
135
|
+
book.links.map((_, value) => {
|
136
|
+
this.checkBook(value);
|
137
|
+
if (found) {
|
138
|
+
this.shadify(value);
|
139
|
+
}
|
140
|
+
});
|
141
|
+
}
|
142
|
+
|
143
|
+
chapter.books.map((_, value) => {
|
144
|
+
this.checkBook(value);
|
145
|
+
|
146
|
+
if (found) {
|
147
|
+
chapter.books.map((_, value) => {
|
148
|
+
$(value.children).map((_, value) => {
|
149
|
+
this.checkChapter(value);
|
150
|
+
|
151
|
+
if (found) {
|
152
|
+
this.shadify(value);
|
153
|
+
}
|
154
|
+
});
|
155
|
+
});
|
156
|
+
} else {
|
157
|
+
this.nunify(value);
|
158
|
+
}
|
159
|
+
});
|
160
|
+
|
161
|
+
page.books.map((_, value) => {
|
162
|
+
this.checkBook(value);
|
163
|
+
|
164
|
+
if (found) {
|
165
|
+
page.books.map((_, value) => {
|
166
|
+
$(value.children).map((_, value) => {
|
167
|
+
this.checkChapter(value);
|
168
|
+
|
169
|
+
if (found) {
|
170
|
+
$(value.children).map((_, value) => {
|
171
|
+
this.checkPage(value);
|
172
|
+
|
173
|
+
if (found) {
|
174
|
+
this.shadify(value);
|
175
|
+
}
|
176
|
+
});
|
177
|
+
} else {
|
178
|
+
this.nunify(value);
|
179
|
+
}
|
180
|
+
});
|
181
|
+
});
|
182
|
+
} else {
|
183
|
+
this.nunify(value);
|
184
|
+
}
|
185
|
+
});
|
186
|
+
|
187
|
+
return this;
|
188
|
+
},
|
189
|
+
respond() {
|
190
|
+
book.links.hover((e) => {
|
191
|
+
this.match(e.target);
|
192
|
+
this.clearify(book.links);
|
193
|
+
this.shadify(e.target);
|
194
|
+
|
195
|
+
chapter.books.map((_, value) => {
|
196
|
+
this.nunify(value);
|
197
|
+
this.clearify(value.children);
|
198
|
+
this.checkBook(value);
|
199
|
+
|
200
|
+
if (found) {
|
201
|
+
this.clearify(value, "display");
|
202
|
+
this.shadify(value.children[0]);
|
203
|
+
}
|
204
|
+
});
|
205
|
+
|
206
|
+
page.books.map((_, value) => {
|
207
|
+
this.nunify(value);
|
208
|
+
this.checkBook(value);
|
209
|
+
|
210
|
+
if (found) {
|
211
|
+
this.clearify(value, "display");
|
212
|
+
|
213
|
+
$(value.children).map((_, value) => {
|
214
|
+
this.nunify(value);
|
215
|
+
this.clearify(value.children);
|
216
|
+
|
217
|
+
if (_ == 0) {
|
218
|
+
this.clearify(value, "display");
|
219
|
+
this.shadify(value.children[0]);
|
220
|
+
}
|
221
|
+
});
|
222
|
+
}
|
223
|
+
});
|
224
|
+
});
|
225
|
+
|
226
|
+
chapter.links.hover((e) => {
|
227
|
+
this.match(e.target, "chapter");
|
228
|
+
this.clearify(chapter.links);
|
229
|
+
this.shadify(e.target);
|
230
|
+
|
231
|
+
page.books.map((_, value) => {
|
232
|
+
this.nunify(value);
|
233
|
+
this.checkBook(value);
|
234
|
+
|
235
|
+
if (found) {
|
236
|
+
this.clearify(value, "display");
|
237
|
+
|
238
|
+
$(value.children).map((_, value) => {
|
239
|
+
this.nunify(value);
|
240
|
+
this.clearify(value.children);
|
241
|
+
this.checkChapter(value);
|
242
|
+
|
243
|
+
if (found) {
|
244
|
+
this.clearify(value, "display");
|
245
|
+
this.shadify(value.children[0]);
|
246
|
+
}
|
247
|
+
});
|
248
|
+
}
|
249
|
+
});
|
250
|
+
});
|
251
|
+
page.links.hover((e) => {
|
252
|
+
this.clearify(page.links);
|
253
|
+
this.shadify(e.target);
|
254
|
+
});
|
255
|
+
|
256
|
+
return this;
|
257
|
+
},
|
258
|
+
};
|
259
|
+
|
260
|
+
Browsr.init = function (target) {
|
261
|
+
var self = this;
|
262
|
+
self.target = target || document;
|
263
|
+
this.start().respond();
|
264
|
+
};
|
265
|
+
|
266
|
+
Browsr.init.prototype = Browsr.prototype;
|
267
|
+
|
268
|
+
global.Browsr = Browsr;
|
269
|
+
})(window, $);
|