-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (51 loc) · 1.57 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
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<header id="titlebar">
<div id="drag-region">
<div id="window-title">
<span>Electron quick start</span>
</div>
<div id="window-controls">
<div class="button" id="min-button">
<span></span>
</div>
<div class="button" id="max-button">
<span></span>
</div>
<div class="button" id="restore-button">
<span></span>
</div>
<div class="button" id="close-button">
<span></span>
</div>
</div>
</div>
</header>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js
<script>document.write(process.versions.node)</script>,
Chromium
<script>document.write(process.versions.chrome)</script>,
and Electron
<script>document.write(process.versions.electron)</script>.
<script>
// You can also require other files to run in this process
require('./renderer.js')
</script>
<script>
var segmld2_font = new FontFace('Segoe MDL2 Assets', 'url(fonts/SegMDL2.ttf)');
segmld2_font.load().then(function(loaded_face) {
document.fonts.add(loaded_face);
}).catch(function(error) {
console.error("Error loading Segoe MDL2 Assets Font");
});
</script>
</body>
</html>