-
Notifications
You must be signed in to change notification settings - Fork 4
/
options.html
213 lines (204 loc) · 11.6 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Is It Up Options</title>
<!-- Cascading Style Sheets -->
<link href="css/bootstrap.3.3.5.min.css" rel="stylesheet" />
<link href="css/bootstrap-theme.3.3.5.min.css" rel="stylesheet" />
<link href="css/isitup.css" rel="stylesheet" />
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<form class="form-horizontal">
<fieldset>
<legend align=center>Is It Up - Options Page</legend>
<div class="form-group">
</div>
<div class="form-group" id="btnGroup">
<label class="col-md-3 control-label"></label>
<div class="col-md-4">
<input id="saveBtn" value="Save" name="saveBtn" type="button" type="submit" class="btn-success" />
<input id="resetBtn" value="Reset" name="resetBtn" type="reset" class="btn-default" />
</div>
</div>
<!-- status -->
<div class="form-group">
<label class="col-md-3 control-label"></label>
<div class="col-md-8">
<div id="status" class="success"></div>
</div>
</div>
<!-- begin preferences controls -->
<div class="form-group">
<label class="col-md-3 control-label" for="allowIndividualRetry">
Allow individual Retry
</label>
<div class="col-md-8">
<label class="radio-inline" for="allowIndividualRetry-0">
<input type="radio" name="allowIndividualRetry" id="allowIndividualRetry-0" value="Yes" checked="checked"/>
Yes
</label>
<label class="radio-inline" for="allowIndividualRetry-1">
<input type="radio" name="allowIndividualRetry" id="allowIndividualRetry-1" value="No"/>
No
</label>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label"></label>
<div class="col-md-8">
<small class="text-muted">Ability to retry individual url?</small>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="allowAutomaticRefresh">
Allow automatic page refresh
</label>
<div class="col-md-8">
<label class="radio-inline" for="allowAutomaticRefresh-0">
<input type="radio" name="allowAutomaticRefresh" id="allowAutomaticRefresh-0" value="Yes"/>
Yes
</label>
<label class="radio-inline" for="allowAutomaticRefresh-1">
<input type="radio" name="allowAutomaticRefresh" id="allowAutomaticRefresh-1" value="No" checked="checked"/>
No
</label>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label"></label>
<div class="col-md-8">
<small class="text-muted">Allow page refresh?</small>
</div>
</div>
<div class="form-group" id="pageRefreshAfterId" style="display:none">
<label class="col-md-3 control-label" for="pageRefreshAfter">
Refresh Page after?
</label>
<div class="col-md-8">
<input id="pageRefreshAfter" name="pageRefreshAfter" type="number" placeholder="30" class="form-control input-md" size="10" />
<small class="text-muted">Time in seconds. </small>
</div>
</div>
<div class="form-group" id="uweStatusCodeId">
<label class="col-md-3 control-label" for="uweStatusCode">
Status Code for applications up with errors?
</label>
<div class="col-md-8">
<input id="uweStatusCode" name="uweStatusCode" type="number" placeholder="206" class="form-control input-md" size="10" />
</div>
</div>
<div class="form-group" id="uweStatusColorId">
<label class="col-md-3 control-label" for="uweStatusColor">
Color for the status of applications up with errors?
</label>
<div class="col-md-8">
<input type="color" id="uweStatusColor" name="uweStatusColor" value="#ffcc00">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="pushNotifications">Push Notifications</label>
<div class="col-md-8">
<label class="radio-inline" for="pushNotifications-0">
<input type="radio" name="pushNotifications" id="pushNotifications-0" value="Yes"/>
Yes
</label>
<label class="radio-inline" for="pushNotifications-1">
<input type="radio" name="pushNotifications" id="pushNotifications-1" value="No" checked="checked"/>
No
</label>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label"></label>
<div class="col-md-8">
<small class="text-muted">Do you want Notifications when an url goes down?</small>
</div>
</div>
<!-- show badges -->
<div class="form-group">
<label class="col-md-3 control-label" for="showBadges">Show Badges</label>
<div class="col-md-8">
<label class="radio-inline" for="showBadges-0">
<input type="radio" name="showBadges" id="showBadges-0" value="Yes"/>
Yes
</label>
<label class="radio-inline" for="showBadges-1">
<input type="radio" name="showBadges" id="showBadges-1" value="No" checked="checked"/>
No
</label>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label"></label>
<div class="col-md-8">
<small class="text-muted">Do you want show or hide badges?</small>
</div>
</div>
<!-- show build id -->
<div class="form-group">
<label class="col-md-3 control-label" for="showBuildId">Show BuildId</label>
<div class="col-md-8">
<label class="radio-inline" for="showBuildId-0">
<input type="radio" name="showBuildId" id="showBuildId-0" value="Yes" checked="checked" />
Yes
</label>
<label class="radio-inline" for="showBuildId-1">
<input type="radio" name="showBuildId" id="showBuildId-1" value="No" />
No
</label>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label"></label>
<div class="col-md-8">
<small class="text-muted">Do you want show or hide buildId?</small>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="confFileViaWeb">
Conf File Url?
</label>
<div class="col-md-8">
<input id="confFileViaWeb" name="confFileViaWeb" type="url" placeholder="" class="form-control input-md" value="" />
<input id="confFileViaWebBtn" value="Load" name="confFileViaWebBtn" type="button" type="button" class="btn-default" />
<small class="text-muted">Url for config file. </small>
</div>
</div>
<!-- JSON File-->
<div class="form-group">
<label class="col-md-3 control-label" for="confFileUpld">JSON/YAML File</label>
<div class="col-md-4">
<input id="confFileUpld" name="confFileUpld" type="file" class="form-control input-md" />
<small class="text-muted">Upload configuration file or paste below</small>
<div style="display: none">
<input id="fileTypeId" name="fileTypeTxt" type="text" />
</div>
</div>
</div>
<div class="form-group" id="cfgTxt">
<label class="col-md-3 control-label" for="cfgTxt">
Configuration Text
</label>
<div class="col-md-8">
<textarea id="cfgTxt" name="cfgTxt" class="form-control input-md" cols="80" rows="20"></textarea>
<small class="text-muted">Paste or enter JSON/YAML configuration</small>
</div>
</div>
</form>
</div>
</div>
<!-- row end -->
</div>
<!-- Scripts -->
<script src="js/jquery.2.4.1.min.js"></script>
<script src="js/bootstrap.3.3.5.min.js"></script>
<script src="js/options.js"></script>
<script src="js/yaml.min.js"></script>
</body>
</html>