-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (32 loc) · 1008 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
<meta charset="utf-8"/>
</head>
<body>
<div id="kabys"></div>
<link href='./app/assets/fonts/opensans/OpenSans-Regular.ttf' rel='stylesheet' type='text/css'>
<link href='./app/assets/fonts/opensans/OpenSans-Semibold.ttf' rel='stylesheet' type='text/css'>
<link href='./app/assets/fonts/opensans/OpenSans-Light.ttf' rel='stylesheet' type='text/css'>
<script>
var levelup = require('levelup')
var leveljs = require('level-js')
var db = levelup(__dirname + '/db', {
db: leveljs,
valueEncoding: 'json'
})
window.db = db;
window.child_process = require('child_process')
</script>
<script>
if(process.env.NODE_ENV === 'production') {
require('./build/bundle.js')
} else {
var s = document.createElement("script");
s.src = "http://localhost:8080/build/bundle.js";
document.body.appendChild(s)
}
</script>
</body>
</html>