-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
51 lines (46 loc) · 1.44 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<link href="assets/application.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<div id="main-container" class="theme-light">
<header id="header">
<img id="logo" src="assets/images/logo-blue-black.svg">
<span id="version"></span>
<div class="header-right">
<span id="save-status">saved</span>
</div>
</header>
<div class="page main-page">
<ul id="top-level"></ul>
</div>
<input type="file" style="display:none;">
</div>
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script>
var LIST_TITLE = " ",
LIST_DATA = {},
LIST_ID = 0,
INITIAL_LAST_SAVE = 0,
FILE_PATH = __dirname + '/foo.txt',
WORKER_FILE_PATH = 'assets/worker.js';
require('electron').ipcRenderer.on('open', (event, filePath) => {
window.FILE_PATH = filePath;
window.LIST_TITLE = filePath.split('/').pop();
window.document.title = window.LIST_TITLE;
})
</script>
<script src="assets/application.js" type="text/javascript"></script>
<script>if (window.module) module = window.module;</script>
<script>
(function () {
var fs = require('fs');
var version = JSON.parse(fs.readFileSync('package.json')).version;
document.getElementById('version').textContent = 'v' + version;
})();
</script>
</body>
</html>