-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (72 loc) · 2.29 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pluralkit RCP</title>
<link rel="stylesheet" href="./css/normalize.css">
<link rel="stylesheet" href="./css/skeleton.css">
<style>
html {
/* -webkit-app-region: drag; */
background-color: #eee;
overflow: hidden;
width: 300px;
height: 450px;
}
body{
margin: 4px 8px;
text-align: center;
margin-top: 5%;
-webkit-app-region: drag;
overflow: hidden;
}
img {
border: 2px solid #888;
background-color: #eee;
border-radius: 100%;
display: block;
}
button{
display:block;
-webkit-app-region: none;
}
</style>
<script>
const { Shell } = nw
const gui = require("nw.gui")
var win = gui.Window.get();
var tray;
function hide() {
win.hide();
tray = new gui.Tray({ icon: 'icon.png', tooltip:"Pluralkit RPC\nClick to restore",title:"Pluralkit RPC" });
tray.on('click', function() {
win.show();
this.remove();
tray = null;
});
}
function exit(){
nw.App.closeAllWindows()
}
function donate(){
Shell.openExternal("https://ko-fi.com/sleepysystem")
}
</script>
</head>
<body>
<div style="display:flex;justify-content:center;align-items:center;">
<img src="./icon.png" alt="Pluralkit" width="150px" height="auto">
</div>
<p><h5>Thanks for using this program! If you like this program and would like to help out, you can</h5></p>
<div style="display:flex;justify-content:center;align-items:center;">
<button onclick="donate()" class="button-primary">Buy the dev a Ko-Fi</button>
</div>
<div style="display:flex;justify-content:center;align-items:center;">
<button onclick="hide()">Send to tray</button>
</div>
<div style="display:flex;justify-content:center;align-items:center;">
<button onclick="exit()">Close App</button>
</div>
</body>
</html>