-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.pug
70 lines (60 loc) · 5.79 KB
/
index.pug
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
doctype html
html
head
meta(charset='utf-8')
meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no")
meta(name="apple-mobile-web-app-capable" content="yes")
meta(name="pinterest" content="nopin")
meta(name="robots" content="noindex")
title #{pageTitle}
<script src="/fabric.min.js"></script>
link(href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC2ElEQVRYR81XP0wTYRT/vfuTijGRDl0aCWWQARJhd+gV42Bqk3ZwlslVjE4ulMHRpI460dmhxEJchPsYjGtrggMMNMGwNBFcENK7+8x3R+0fevfdlRK55Ybv/fl9v/fe994jhPwMszJOXE1zjjyIUgBPAeIvPt4AqAHOG0RY42Rvs0zhOIxpkgkZ5ucUnNYyiBZlsj3nnK9C0VdY5lEjSM8XgLgxHFU4XorkuF+YUASsd36MDATgOueaCWD+Us47yjWQlRkE4gIAw9yYB7dNgMZH5PzcDD8GqRmWyda67fYA8G6u7o/eedulAGFPdTPxD8AV0O5HYE84OgA2qyUQno+Wdh9rHCvsQa4oTl0Abqlxaz+M8zvOEe7Zh7hrNzHBvVI/oHHsqQl8V5P4qcTDmAFImxIl6gHYqq4CeCrTzLR28aRV9xU7IR3r2gyYPi0zJc7LbCG3SOexP5JpPDv7inn7UCbmntfVJN7H7stlyYqTYVbz4KgESctuPkj3oz4HU8YEoUAy+kXMX59+kd+mT0KEoxRLy3KiTMbWJwZQ2s9DtrWDbOtHZABCYUOfwYY+G6DLt8nYrDZAmPSTWjpjmLabQwHYVRMoxYwg3ZoIAQ+SeHtSwRisoQCIMLwaywfqXimAP9Dw8mZBAuD/hqB+DZJQ8gqKMnxxyiLngaD/zY2H+KXcCgpB+Ro8RN70M9KnuKYm8SHEU8wWchS5GT1u7fiGQ9C+rs/Kn2AvKF4zcrthxHY8J9qx08SE7RF3oMaxpyTwTZ2UxbyTD93t2AWxWS2CsDzUixNVqX8g8Vhwc4EBmItqL6J8HWQZ7bnw4lDqaKI33I5oNJw4x28oVmrgUNq24I7ljsNGDsJ1rhiBY3kHxMjD0UN7N12S1UxbunRicqxAsUqRVrNuhOclKkZo6dDalwhlkFYcejntzyq3SqAZEOu5t5qL1a1dMXVAzOgkEngNsFjY9fwvnNhH1RL5OH0AAAAASUVORK5CYII=" id="favicon" rel="icon" type="image/x-icon")
- if(mode !== 'export_publication')
style.
@import "/fonts/output-sans/output-sans.css";
@import "/fonts/public-sans/public-sans.css";
@import "/fonts/work-sans/work-sans.css";
@import "/fonts/plex-sans/ibm-plex.css";
- else
script.
/***********
MODERNIZR
***********/
/*! modernizr 3.5.0 (Custom Build) | MIT *
* https://modernizr.com/download/?-touchevents-setclasses !*/
!function(e,n,t){function o(e,n){return typeof e===n}function s(){var e,n,t,s,a,i,r;for(var l in c)if(c.hasOwnProperty(l)){if(e=[],n=c[l],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(s=o(n.fn,"function")?n.fn():n.fn,a=0;a<e.length;a++)i=e[a],r=i.split("."),1===r.length?Modernizr[r[0]]=s:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=s),f.push((s?"":"no-")+r.join("-"))}}function a(e){var n=u.className,t=Modernizr._config.classPrefix||"";if(p&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(o,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(n+=" "+t+e.join(" "+t),p?u.className.baseVal=n:u.className=n)}function i(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):p?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function r(){var e=n.body;return e||(e=i(p?"svg":"body"),e.fake=!0),e}function l(e,t,o,s){var a,l,f,c,d="modernizr",p=i("div"),h=r();if(parseInt(o,10))for(;o--;)f=i("div"),f.id=s?s[o]:d+(o+1),p.appendChild(f);return a=i("style"),a.type="text/css",a.id="s"+d,(h.fake?h:p).appendChild(a),h.appendChild(p),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(n.createTextNode(e)),p.id=d,h.fake&&(h.style.background="",h.style.overflow="hidden",c=u.style.overflow,u.style.overflow="hidden",u.appendChild(h)),l=t(p,e),h.fake?(h.parentNode.removeChild(h),u.style.overflow=c,u.offsetHeight):p.parentNode.removeChild(p),!!l}var f=[],c=[],d={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){c.push({name:e,fn:n,options:t})},addAsyncTest:function(e){c.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=d,Modernizr=new Modernizr;var u=n.documentElement,p="svg"===u.nodeName.toLowerCase(),h=d._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];d._prefixes=h;var m=d.testStyles=l;Modernizr.addTest("touchevents",function(){var t;if("ontouchstart"in e||e.DocumentTouch&&n instanceof DocumentTouch)t=!0;else{var o=["@media (",h.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");m(o,function(e){t=9===e.offsetTop})}return t}),s(),a(f),delete d.addTest,delete d.addAsyncTest;for(var v=0;v<Modernizr._q.length;v++)Modernizr._q[v]();e.Modernizr=Modernizr}(window,document); // jshint ignore:line
//- presentationMD: !{JSON.stringify(presentationMD)},
script.
/* store contains content data */
window.store = !{ JSON.stringify(store) };
/* state contains settings data, time and client specific data */
window.state = {
request: {
slugFolderName: "!{slugFolderName}",
metaFileName: "!{metaFileName}",
display: "!{display}"
},
appVersion: "!{global.appInfos.version}",
session_password: "!{global.session_password ? 'has_pass' : ''}",
authorsFolder: "!{authorsFolder}",
protocol: "!{protocol}",
connected: false,
authentificated: false,
localNetworkInfos: {},
mode: "!{mode}",
dev_mode: "!{ isDebug ? "debug" : "production" }",
noticeOfError: "!{noticeOfError}",
is_electron: !!(window && window.process && window.process.type),
is_darwin: !!(window && window.process && window.process.platform === 'darwin'),
clients: [],
list_authorized_folders: [],
};
//-
structure: !{JSON.stringify(structure, null, 4)},
body(data-mode=mode)
#app
script(src='/socket.io.js')
- if(mode !== 'export_publication')
script(src='/dist/build.js')
- else
script(src='./_dist/build.js')