This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
53 lines (50 loc) · 1.41 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
<html>
<head>
<meta charset="utf-8">
<title>Electron Demo</title>
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/index.css">
<script type="text/javascript" src="js/index.js"></script>
</head>
<body>
<div class="container">
<h3>Add a person:</h3>
<div class="row">
<div class="five columns">
<label for="firstname">Firstname</label>
<input class="u-full-width" placeholder="John" id="firstname" type="text">
</div>
<div class="five columns">
<label for="lastname">Lastname</label>
<input class="u-full-width" placeholder="Doe" id="lastname" type="text">
</div>
<div class="two columns">
<label for="add" class="invisible">x</label>
<input class="button-primary" value="Add" id="add" type="button">
</div>
</div>
<h3>All persons:</h3>
<table class="u-full-width">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th></th>
</tr>
</thead>
<tbody id="tablebody">
</tbody>
</table>
</div>
<script type="text/javascript">
var remote = require('electron').remote;
document.addEventListener('keydown', function (e) {
if (e.which === 123) {
remote.getCurrentWindow().webContents.openDevTools();
} else if (e.which === 116) {
location.reload();
}
});
</script>
</body>
</html>