futuro 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/artwork/orwell/animal/flob.scss +5 -0
  3. data/_includes/artwork/orwell/animal/waldo.scss +45 -0
  4. data/_includes/html/head.liquid +7 -5
  5. data/_includes/html/overlay/about.liquid +1 -1
  6. data/_includes/html/overlay/browse.liquid +19 -19
  7. data/_includes/html/overlay/load.liquid +42 -47
  8. data/_includes/html/overlay/mobile.liquid +4 -4
  9. data/_includes/html/overlay/search.liquid +16 -12
  10. data/_includes/html/overlay.liquid +7 -4
  11. data/_includes/html/page/artwork.liquid +1 -1
  12. data/_includes/html/page/info.liquid +4 -4
  13. data/_includes/html/page/layout/chapter.liquid +2 -2
  14. data/_includes/html/page/layout/home.liquid +11 -9
  15. data/_includes/html/page/layout/page.liquid +4 -4
  16. data/_includes/html/page/title.liquid +3 -3
  17. data/_includes/html/page/topbar.liquid +10 -10
  18. data/_includes/html/page/util.liquid +2 -2
  19. data/_includes/html/page/utils/author.liquid +1 -1
  20. data/_includes/html/page/utils/share.liquid +3 -3
  21. data/_includes/html/page/utils/update.liquid +1 -1
  22. data/_includes/html/scripts.liquid +2 -2
  23. data/_layouts/feed.html +1 -1
  24. data/_layouts/single.html +1 -1
  25. data/_sass/_area.scss +23 -76
  26. data/_sass/_bar.scss +2 -2
  27. data/_sass/_base.lite.scss +4 -0
  28. data/_sass/_base.scss +16 -15
  29. data/_sass/_block.scss +21 -153
  30. data/_sass/_box.scss +2 -2
  31. data/_sass/_btn.scss +1 -1
  32. data/_sass/_col.scss +14 -17
  33. data/_sass/_form.scss +1 -1
  34. data/_sass/_input.scss +6 -7
  35. data/_sass/_lnk.scss +9 -10
  36. data/_sass/_nav.scss +3 -3
  37. data/_sass/_site.scss +3 -15
  38. data/_sass/_slick.scss +93 -97
  39. data/_sass/_split.scss +7 -10
  40. data/_sass/_task.scss +10 -13
  41. data/_sass/_title.scss +30 -58
  42. data/_sass/_wrap.scss +19 -50
  43. data/_sass/{_overlay.scss → area/_overlay.scss} +9 -17
  44. data/_sass/area/_topbar.scss +14 -0
  45. data/_sass/block/_browse.scss +35 -0
  46. data/_sass/block/_results.scss +39 -0
  47. data/_sass/block/_util.scss +37 -0
  48. data/_sass/fonts/_lite.scss +18 -0
  49. data/_sass/fonts/_max.scss +41 -0
  50. data/_sass/futuro.lite.scss +37 -0
  51. data/_sass/futuro.scss +32 -34
  52. data/_sass/helpers/_extends.scss +66 -49
  53. data/_sass/helpers/_mixins.scss +13 -5
  54. data/_sass/{_helpers.scss → helpers/_variables.scss} +0 -0
  55. data/_sass/title/_overlay.scss +22 -0
  56. data/_sass/wrap/_overlay.scss +28 -0
  57. data/assets/{img → css}/fallback.jpg +0 -0
  58. data/assets/{img → css}/favicon.png +0 -0
  59. data/assets/css/styles.lite.scss +4 -0
  60. data/assets/css/styles.scss +0 -1
  61. data/assets/js/footer/custom/CheckWidth.js +13 -11
  62. data/assets/js/footer/custom/ExpandBlock.js +9 -5
  63. data/assets/js/footer/custom/OpenOverlay.js +90 -65
  64. data/assets/js/footer/custom/ScrollFunc.js +15 -14
  65. data/assets/js/footer/custom/Settings.js +6 -7
  66. data/assets/js/footer/custom/SetupHome.js +6 -9
  67. data/assets/js/footer/custom/SiteFunc.js +15 -11
  68. data/assets/js/footer/custom/SplitCode.js +8 -10
  69. data/assets/js/footer/custom/StartBrowse.js +45 -45
  70. data/assets/js/footer/custom/UtilShare.js +13 -10
  71. data/assets/js/footer/vendor/gsap-draw.js +6 -9
  72. data/assets/js/futuro.footer.custom.js +1 -0
  73. data/assets/js/{futuro.vendor.js → futuro.footer.vendor.js} +7 -9
  74. data/assets/js/futuro.header.custom.js +1 -0
  75. data/assets/js/futuro.header.legacy.js +26 -0
  76. data/assets/js/{header.vendor.js → futuro.header.vendor.js} +1 -0
  77. data/assets/js/header/custom/Overlay.js +58 -0
  78. data/assets/js/header/custom/Site.js +72 -0
  79. data/assets/js/header/vendor/{enquire.min.js → enquire.js} +0 -0
  80. data/assets/js/header/vendor/{gsap.min.js → gsap.js} +0 -0
  81. data/assets/js/header/vendor/{modernizr.min.js → modernizr.js} +1 -1
  82. data/assets/js/header/vendor/modernizr.legacy.js +1 -0
  83. metadata +30 -19
  84. data/_sass/_copy.scss +0 -10
  85. data/_sass/_fonts.scss +0 -21
  86. data/assets/css/normalize.css +0 -423
  87. data/assets/img/search.svg +0 -1
  88. data/assets/js/futuro.custom.min.js +0 -1
  89. data/assets/js/header/custom/Settings.js +0 -21
  90. data/assets/js/header/data.js +0 -5
  91. data/assets/js/header.custom.min.js +0 -1
@@ -1,423 +0,0 @@
1
-
2
- /*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
3
-
4
- /**
5
- * 1. Change the default font family in all browsers (opinionated).
6
- * 2. Correct the line height in all browsers.
7
- * 3. Prevent adjustments of font size after orientation changes in IE and iOS.
8
- */
9
-
10
- html {
11
- font-family: sans-serif; /* 1 */
12
- line-height: 1.15; /* 2 */
13
- -ms-text-size-adjust: 100%; /* 3 */
14
- -webkit-text-size-adjust: 100%; /* 3 */
15
- }
16
-
17
- /**
18
- * Remove the margin in all browsers (opinionated).
19
- */
20
-
21
- body {
22
- margin: 0;
23
- }
24
-
25
- /* HTML5 display definitions
26
- ========================================================================== */
27
-
28
- /**
29
- * Add the correct display in IE 9-.
30
- * 1. Add the correct display in Edge, IE, and Firefox.
31
- * 2. Add the correct display in IE.
32
- */
33
-
34
- article,
35
- aside,
36
- details, /* 1 */
37
- figcaption,
38
- figure,
39
- footer,
40
- header,
41
- main, /* 2 */
42
- menu,
43
- nav,
44
- section,
45
- summary { /* 1 */
46
- display: block;
47
- }
48
-
49
- /**
50
- * Add the correct display in IE 9-.
51
- */
52
-
53
- audio,
54
- canvas,
55
- progress,
56
- video {
57
- display: inline-block;
58
- }
59
-
60
- /**
61
- * Add the correct display in iOS 4-7.
62
- */
63
-
64
- audio:not([controls]) {
65
- display: none;
66
- height: 0;
67
- }
68
-
69
- /**
70
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
71
- */
72
-
73
- progress {
74
- vertical-align: baseline;
75
- }
76
-
77
- /**
78
- * Add the correct display in IE 10-.
79
- * 1. Add the correct display in IE.
80
- */
81
-
82
- template, /* 1 */
83
- [hidden] {
84
- display: none;
85
- }
86
-
87
- /* Links
88
- ========================================================================== */
89
-
90
- /**
91
- * 1. Remove the gray background on active links in IE 10.
92
- * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
93
- */
94
-
95
- a {
96
- background-color: transparent; /* 1 */
97
- -webkit-text-decoration-skip: objects; /* 2 */
98
- }
99
-
100
- /**
101
- * Remove the outline on focused links when they are also active or hovered
102
- * in all browsers (opinionated).
103
- */
104
-
105
- a:active,
106
- a:hover {
107
- outline-width: 0;
108
- }
109
-
110
- /* Text-level semantics
111
- ========================================================================== */
112
-
113
- /**
114
- * 1. Remove the bottom border in Firefox 39-.
115
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
116
- */
117
-
118
- abbr[title] {
119
- border-bottom: none; /* 1 */
120
- text-decoration: underline; /* 2 */
121
- text-decoration: underline dotted; /* 2 */
122
- }
123
-
124
- /**
125
- * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
126
- */
127
-
128
- b,
129
- strong {
130
- font-weight: inherit;
131
- }
132
-
133
- /**
134
- * Add the correct font weight in Chrome, Edge, and Safari.
135
- */
136
-
137
- b,
138
- strong {
139
- font-weight: bolder;
140
- }
141
-
142
- /**
143
- * Add the correct font style in Android 4.3-.
144
- */
145
-
146
- dfn {
147
- font-style: italic;
148
- }
149
-
150
- /**
151
- * Correct the font size and margin on `h1` elements within `section` and
152
- * `article` contexts in Chrome, Firefox, and Safari.
153
- */
154
-
155
- h1 {
156
- font-size: 2em;
157
- margin: 0.67em 0;
158
- }
159
-
160
- /**
161
- * Add the correct background and color in IE 9-.
162
- */
163
-
164
- mark {
165
- background-color: #ff0;
166
- color: #000;
167
- }
168
-
169
- /**
170
- * Add the correct font size in all browsers.
171
- */
172
-
173
- small {
174
- font-size: 80%;
175
- }
176
-
177
- /**
178
- * Prevent `sub` and `sup` elements from affecting the line height in
179
- * all browsers.
180
- */
181
-
182
- sub,
183
- sup {
184
- font-size: 75%;
185
- line-height: 0;
186
- position: relative;
187
- vertical-align: baseline;
188
- }
189
-
190
- sub {
191
- bottom: -0.25em;
192
- }
193
-
194
- sup {
195
- top: -0.5em;
196
- }
197
-
198
- /* Embedded content
199
- ========================================================================== */
200
-
201
- /**
202
- * Remove the border on images inside links in IE 10-.
203
- */
204
-
205
- img {
206
- border-style: none;
207
- }
208
-
209
- /**
210
- * Hide the overflow in IE.
211
- */
212
-
213
- svg:not(:root) {
214
- overflow: hidden;
215
- }
216
-
217
- /* Grouping content
218
- ========================================================================== */
219
-
220
- /**
221
- * 1. Correct the inheritance and scaling of font size in all browsers.
222
- * 2. Correct the odd `em` font sizing in all browsers.
223
- */
224
-
225
- code,
226
- kbd,
227
- pre,
228
- samp {
229
- font-family: monospace, monospace; /* 1 */
230
- font-size: 1em; /* 2 */
231
- }
232
-
233
- /**
234
- * Add the correct margin in IE 8.
235
- */
236
-
237
- figure {
238
- margin: 1em 40px;
239
- }
240
-
241
- /**
242
- * 1. Add the correct box sizing in Firefox.
243
- * 2. Show the overflow in Edge and IE.
244
- */
245
-
246
- hr {
247
- box-sizing: content-box; /* 1 */
248
- height: 0; /* 1 */
249
- overflow: visible; /* 2 */
250
- }
251
-
252
- /* Forms
253
- ========================================================================== */
254
-
255
- /**
256
- * 1. Change font properties to `inherit` in all browsers (opinionated).
257
- * 2. Remove the margin in Firefox and Safari.
258
- */
259
-
260
- button,
261
- input,
262
- optgroup,
263
- select,
264
- textarea {
265
- font: inherit; /* 1 */
266
- margin: 0; /* 2 */
267
- }
268
-
269
- /**
270
- * Restore the font weight unset by the previous rule.
271
- */
272
-
273
- optgroup {
274
- font-weight: bold;
275
- }
276
-
277
- /**
278
- * Show the overflow in IE.
279
- * 1. Show the overflow in Edge.
280
- */
281
-
282
- button,
283
- input { /* 1 */
284
- overflow: visible;
285
- }
286
-
287
- /**
288
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
289
- * 1. Remove the inheritance of text transform in Firefox.
290
- */
291
-
292
- button,
293
- select { /* 1 */
294
- text-transform: none;
295
- }
296
-
297
- /**
298
- * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
299
- * controls in Android 4.
300
- * 2. Correct the inability to style clickable types in iOS and Safari.
301
- */
302
-
303
- button,
304
- html [type="button"], /* 1 */
305
- [type="reset"],
306
- [type="submit"] {
307
- -webkit-appearance: button; /* 2 */
308
- }
309
-
310
- /**
311
- * Remove the inner border and padding in Firefox.
312
- */
313
-
314
- button::-moz-focus-inner,
315
- [type="button"]::-moz-focus-inner,
316
- [type="reset"]::-moz-focus-inner,
317
- [type="submit"]::-moz-focus-inner {
318
- border-style: none;
319
- padding: 0;
320
- }
321
-
322
- /**
323
- * Restore the focus styles unset by the previous rule.
324
- */
325
-
326
- button:-moz-focusring,
327
- [type="button"]:-moz-focusring,
328
- [type="reset"]:-moz-focusring,
329
- [type="submit"]:-moz-focusring {
330
- outline: 1px dotted ButtonText;
331
- }
332
-
333
- /**
334
- * Change the border, margin, and padding in all browsers (opinionated).
335
- */
336
-
337
- fieldset {
338
- border: 1px solid #c0c0c0;
339
- margin: 0 2px;
340
- padding: 0.35em 0.625em 0.75em;
341
- }
342
-
343
- /**
344
- * 1. Correct the text wrapping in Edge and IE.
345
- * 2. Correct the color inheritance from `fieldset` elements in IE.
346
- * 3. Remove the padding so developers are not caught out when they zero out
347
- * `fieldset` elements in all browsers.
348
- */
349
-
350
- legend {
351
- box-sizing: border-box; /* 1 */
352
- color: inherit; /* 2 */
353
- display: table; /* 1 */
354
- max-width: 100%; /* 1 */
355
- padding: 0; /* 3 */
356
- white-space: normal; /* 1 */
357
- }
358
-
359
- /**
360
- * Remove the default vertical scrollbar in IE.
361
- */
362
-
363
- textarea {
364
- overflow: auto;
365
- }
366
-
367
- /**
368
- * 1. Add the correct box sizing in IE 10-.
369
- * 2. Remove the padding in IE 10-.
370
- */
371
-
372
- [type="checkbox"],
373
- [type="radio"] {
374
- box-sizing: border-box; /* 1 */
375
- padding: 0; /* 2 */
376
- }
377
-
378
- /**
379
- * Correct the cursor style of increment and decrement buttons in Chrome.
380
- */
381
-
382
- [type="number"]::-webkit-inner-spin-button,
383
- [type="number"]::-webkit-outer-spin-button {
384
- height: auto;
385
- }
386
-
387
- /**
388
- * 1. Correct the odd appearance in Chrome and Safari.
389
- * 2. Correct the outline style in Safari.
390
- */
391
-
392
- [type="search"] {
393
- -webkit-appearance: textfield; /* 1 */
394
- outline-offset: -2px; /* 2 */
395
- }
396
-
397
- /**
398
- * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
399
- */
400
-
401
- [type="search"]::-webkit-search-cancel-button,
402
- [type="search"]::-webkit-search-decoration {
403
- -webkit-appearance: none;
404
- }
405
-
406
- /**
407
- * Correct the text style of placeholders in Chrome, Edge, and Safari.
408
- */
409
-
410
- ::-webkit-input-placeholder {
411
- color: inherit;
412
- opacity: 0.54;
413
- }
414
-
415
- /**
416
- * 1. Correct the inability to style clickable types in iOS and Safari.
417
- * 2. Change font properties to `inherit` in Safari.
418
- */
419
-
420
- ::-webkit-file-upload-button {
421
- -webkit-appearance: button; /* 1 */
422
- font: inherit; /* 2 */
423
- }
@@ -1 +0,0 @@
1
- <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="M6,6.1c-1.3,1.3-2.1,3.2-2.1,5.1s0.8,3.7,2.1,5.1 c1.3,1.3,3.2,2.1,5.1,2.1s3.7-0.8,5.1-2.1c1.3-1.3,2.1-3.2,2.1-5.1s-0.8-3.8-2.1-5.1C14.8,4.6,13,4,11.1,4S7.3,4.7,6,6.1z M22.6,25.5L17,19.9c-1.7,1.2-3.7,1.8-5.9,1.8c-2.9,0-5.5-1.1-7.5-3.1S0.5,14,0.5,11.2s1.1-5.5,3.1-7.5s4.7-3.2,7.5-3.2 s5.5,1.1,7.5,3.1s3.2,4.6,3.2,7.5c0,2.1-0.6,4.2-1.8,6l5.6,5.6L22.6,25.5z" fill-rule="evenodd" clip-rule="evenodd" fill="#737373"/></svg>
@@ -1 +0,0 @@
1
- "use strict";var body="body",site=".site",overMobi=".overlay._mobile",overLoad=".overlay._load",controller=new ScrollMagic.Controller,half=.5*Site.page,AboutOpen=!1,BrowseOpen=!1,SearchOpen=!1,PrintWidth=function(){var e=$(document)[0].documentElement.clientWidth,o=Site.width-e+"px",t=100/Site.width*e+"%";$(".width").html(o),gsap.set(".bar._mobile",{width:t})},CheckWidth=function(){Site.mobile||(IsMobile?(gsap.set(overMobi,{display:open}),PrintWidth()):gsap.set(overMobi,{clearProps:"display"}))};$(CheckWidth),$(window).resize(CheckWidth);var ExpandBlock=function(e){var o=$(e.target),t=o.parent().siblings(".area._page-artwork").children(".code-wrap");"none"==t.css("display")?(gsap.set(t,{display:open}),gsap.set(o,{text:"Hide"})):(gsap.set(t,{clearProps:"display"}),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}),console.log(open)},CloseOverlay=function(e){gsap.set([body,".overlay._"+e],{clearProps:"all"})};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){Site.overlays&&(Site.mobile?KeyFunc(e):IsMobile||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(a){var e=$(".site._feed"),n='<div class="area _scroller"><div class="wrap _scroller">';a.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==a.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>",e.append(n),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,defaults:{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(){Site.mobile?gsap.set(site,{display:open}):IsMobile||($(body).hasClass("setup-library")&&$(body).hasClass("type-home")?gsap.set(site,{display:"block"}):gsap.set(site,{display:open})),setTimeout(function(){gsap.set(overLoad,{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 t=$(".code-html",this),a=t.html();t.text(a)})};$(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)",StartBrowse=function(){var e=$(".block._browse-lnk",".col._browse.--book")[0],o=$(".block._browse-chunk",".col._browse.--chapter")[0],t=$(".block._browse-chunk",".col._browse.--page")[0],a=$(t)[0].children[0],n=$(e)[0].children[0],r=$(o)[0].children[0].children[0],s=$(a)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([o,t,a],{display:"block"}).set([n,r,s],{backgroundColor:shade})},HoverBook=function(e){var o=$(e.target),t=$(o)[0].classList[2].slice(5),a=$(chunk+".--"+t,".col._browse.--chapter"),n=$(chunk+".--"+t,".col._browse.--page"),r=$(n)[0].children[0],s=$(a)[0].children[0].children[0],l=$(r)[0].children[0].children[0];gsap.timeline().set(chunk,{display:"none"}).set([a,n,r],{display:"block"}).set([books,chapters,pages],{clearProps:"backgroundColor"}).set([o,s,l],{backgroundColor:shade})},HoverChap=function(e){var o=$(e.target),t=$(o)[0].classList[2].slice(5),a=$(o)[0].classList[3].slice(8),n=$(chunk+".--"+t,".col._browse.--chapter"),r=$(chunk+".--"+t,".col._browse.--page"),s=$(chunk+".--"+a,r),l=$(s)[0].children[0].children[0];tl=gsap.timeline(),tl.set(chunk,{display:"none"}).set([n,r,s],{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"),t=$(o)[0].classList[2].slice(2),a=$(o).children("._util-url").text().replace("index",""),n=$(o)[0].children[1],r="",s=gsap.timeline();"page"==t&&(r="Copy page"),UtilCopy(a),s.set(n,{text:"Copied!"}).to(n,{duration:.3,opacity:0},"+=0.6").set(n,{text:r,clearProps:"all"},"+=0.3")};$(function(){$("._util-share").click(UtilShare)});
@@ -1,21 +0,0 @@
1
-
2
- let IsMobile = true,
3
- open;
4
-
5
- if (Site.legacy) {
6
- open = "block";
7
- } else {
8
- open = "grid";
9
- }
10
-
11
- enquire.register('screen and (min-width:' + Site.width + 'px)',{
12
-
13
- match : function() {
14
- IsMobile = false;
15
- },
16
-
17
- unmatch : function() {
18
- IsMobile = true;
19
- }
20
-
21
- });
@@ -1,5 +0,0 @@
1
- ---
2
- layout : none
3
- ---
4
-
5
- let Site = {{ site.setup | jsonify }};
@@ -1 +0,0 @@
1
- "use strict";var open,IsMobile=!0;open=Site.legacy?"block":"grid",enquire.register("screen and (min-width:"+Site.width+"px)",{match:function(){IsMobile=!1},unmatch:function(){IsMobile=!0}});