-
Notifications
You must be signed in to change notification settings - Fork 0
/
preferences.html
77 lines (77 loc) · 2.96 KB
/
preferences.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>
<head>
<meta charset="UTF-8">
<title>Preferences</title>
<link rel="stylesheet" href="./css/main.css">
</head>
<body class="app" id="preferences">
<img src="sleep.png" alt="sleep"class="logo">
<div class="input-group cols">
<span class="input-group-label">Time</span>
<div class="input-wrapper col col1">
<input type="radio" id="timeType" name="timeType" value="Military">
<label for="timeType">24 Hour</label>
</div>
<div class="input-wrapper col col2">
<input type="radio" id ="timeType2" name="timeType" value="Standard" checked="checked">
<label for="timeType2">12 Hour</label>
</div>
</div>
<div class="input-group">
<span class="input-group-label">
<label for="defaultTime">Default Wake-Up Time</label>
</span>
<div class="input-wrapper">
<input type="time" id="defaultTime" />
</div>
</div>
<div class="input-group">
<span class="input-group-label">
<label for="defaultTime">How Long It Takes You To Fall Asleep</label>
</span>
<div class="input-wrapper"
<div class="cols" style="text-align:center">
<input type="number" id="lagHours" min="0" max="5" step="1" />
<label for="lagHours">Hours</label>
<input type="number" id="lagMinutes" min="0" max="60" step="5" />
<label for="lagMinutes">Minutes</label>
</div>
</div>
</div>
<div class="input-group">
<span class="input-group-label">
<label for="defaultTime">Uptime Until Uptime Notification</label>
</span>
<div class="input-wrapper">
<div class="cols" style="text-align:center">
<input type="number" id="upTimeHours" min="0" max="100" step="5" >
<label for="upTimeHours">Hours</label>
<input type="number" id="upTimeMinutes" min="0" max="60" step="5" >
<label for="upTimeMinutes">Minutes</label>
</div>
</div>
</div>
<div class="closeOnX input-group no-label">
<div class="input-wrapper">
<input id="closeOnXcheck" type="checkbox" checked="true">
<label for="closeOnXcheck">Close Coffin with main window or Command+Q</label>
</div>
</div>
<div class="restartclass">
<em>Application restart required for changes to take effect</em>
</div>
<div class="cols">
<div class="notification button-wrapper col">
<button onclick="showNotification()" >Test Notification</button>
</div>
<div class="preferences button-wrapper col">
<button onclick="setPreferences()" >Set Preferences</button>
</div>
</div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {loadPreferences();});
</script>
<script src="./js/script.js"></script>
</body>
</html>