-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
48 lines (43 loc) · 1.08 KB
/
main.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Main Application</title>
<script src="node_modules/nw-splasher/nw-splasher.js"></script>
<style>
html,
body {
height: 100%;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
background: #333;
margin: 0px;
color: #999;
font-family: sans-serif;
}
h1 {
border: 1px solid #999;
padding: 30px 50px;
}
</style>
</head>
<body>
<h1>Your App</h1>
<script>
// This function locks up the UI for a given period of time.
function sleep (miliseconds) {
let currentTime = new Date().getTime();
while (currentTime + miliseconds >= new Date().getTime()) {}
}
// simulate loading
sleep(5 * 1000);
// The following line should be called when your app is done
// loading and the app window is ready to be displayed.
nwSplasher.closeSplashAndShowApp();
</script>
</body>
</html>