-
Notifications
You must be signed in to change notification settings - Fork 5
/
options.html
71 lines (61 loc) · 1.51 KB
/
options.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Notify by Script - Options</title>
<style>
body {
padding: 0 15px 15px;
}
h1 {
margin-top: 0;
padding-top: 0;
}
div {
float: left;
padding-bottom: 10px;
}
.fullWidth {
width: 100%;
}
label {
font-weight: bold;
}
textarea {
font-family: 'DejaVu Sans Mono', monospace;
}
</style>
</head>
<body>
<h1>Set Alarm Options</h1>
<div class="fullWidth">
<label>Period (in minutes):</label>
</div>
<div class="fullWidth">
<input name="period" style="width: 15%; text-align: right;" type="number"/>
</div>
<div class="fullWidth">
<label>
Script (for example scripts
<a href="https://github.com/ufuk/notify-by-script/blob/master/example-scripts.js" target="_blank">click here</a>):
</label>
</div>
<div class="fullWidth">
<textarea class="fullWidth" id="editor" name="script"
rows="10" spellcheck="false" style="resize: none"
wrap="off"></textarea>
</div>
<div class="fullWidth">
<label>
<input name="activated" type="checkbox">
Notification activated?
</label>
</div>
<div class="fullWidth">
<button id="save">Save</button>
<button id="testScript">Test Script</button>
<label id="statusLabel"></label>
</div>
<script src="jquery.min.js"></script>
<script src="options.js"></script>
</body>
</html>