-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.html
62 lines (56 loc) · 1.11 KB
/
update.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
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Shortexts</title>
<style>
*{
outline: none;
}
body{
font-family: "Lucida Grande";
margin: 0;
font-weight: 200;
padding: 0;
background: #f4f4f4;
font-size: 12px;
line-height: 130%;
overflow: hidden;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select:none;
user-select:none;
-o-user-select:none;
cursor: default;
}
.center{
text-align: center;
}
a{
color:#333;
font-weight: 800;
font-size: 18px;
text-decoration: none;
}
#content{
margin: 40px auto;
text-align: center;
line-height: 300%;
}
</style>
</head>
<body>
<div id="content">
There's a new version of Shortexts<br />
<a href="#" id="update">Click here to Update </a>
</div>
</body>
<script>
// You can also require other files to run in this process
require('./renderer.js')
const ipcRenderer = require('electron').ipcRenderer;
document.querySelector('#update').addEventListener("click",function (event) {
ipcRenderer.send('update', "");
});
</script>
</html>