-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
301 lines (284 loc) · 10.7 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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Hemipteropsy</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<script src='main.js'></script>
</head>
<body>
<form id="bedbugs" oninput="calc()">
<section>
<h2>Aggravating factors</h2>
<fieldset>
<legend>Scope</legend>
<label>
<input type="radio" name="bug_scope" value="10">
Whole application
</label>
<label>
<input type="radio" name="bug_scope" value="7">
Several workflows, large part of application
</label>
<label>
<input type="radio" name="bug_scope" value="4">
Single workflow
</label>
<label>
<input type="radio" name="bug_scope" value="2">
Single or small number of controls
</label>
<label>
<input type="radio" name="bug_scope" value="1" checked>
A message or label or documentation
</label>
<label>
<input type="radio" name="bug_scope" value="0.7">
A styling or layout element, like a border
</label>
</fieldset>
<fieldset>
<legend>Severity</legend>
<label>
<input type="radio" name="bug_severity" value="10">
Damage or corruption of existing data
</label>
<label>
<input type="radio" name="bug_severity" value="7">
It does the wrong thing
</label>
<label>
<input type="radio" name="bug_severity" value="5">
It doesn't work at all
</label>
<label>
<input type="radio" name="bug_severity" value="2">
It is displayed wrong, confusing, misleading etc.
</label>
<label>
<input type="radio" name="bug_severity" value="1" checked>
Cosmetic, typo
</label>
</fieldset>
<fieldset>
<legend>Urgency</legend>
<label>
<input type="radio" name="bug_urgency" value="10">
Has PRI 1 support case
</label>
<label>
<input type="radio" name="bug_urgency" value="5">
Regression in upcoming release
</label>
<label>
<input type="radio" name="bug_urgency" value="4">
Has PRI 2 or lower support case
</label>
<label>
<input type="radio" name="bug_urgency" value="3">
Affects new feature in upcoming release
</label>
<label>
<input type="radio" name="bug_urgency" value="2">
Affects released version
</label>
<label>
<input type="radio" name="bug_urgency" value="1" checked>
Affects a branch
</label>
</fieldset>
<fieldset>
<legend>Spread</legend>
<label>
<input type="radio" name="bug_spread" value="10">
All users
</label>
<label>
<input type="radio" name="bug_spread" value="3">
A group of users (same department)
</label>
<label>
<input type="radio" name="bug_spread" value="2">
A type of users (only non-admins)
</label>
<label>
<input type="radio" name="bug_spread" value="1" checked>
A single user
</label>
</fieldset>
</section>
<section>
<h2>Mitigating factors</h2>
<fieldset>
<legend>Probability</legend>
<label>
<input type="radio" name="bug_probability" value="1" checked>
Every time
</label>
<label>
<input type="radio" name="bug_probability" value="0.9">
Most of the time
</label>
<label>
<input type="radio" name="bug_probability" value="0.7">
Usually
</label>
<label>
<input type="radio" name="bug_probability" value="0.5">
Sometimes
</label>
<label>
<input type="radio" name="bug_probability" value="0.25">
Not very often
</label>
<label>
<input type="radio" name="bug_probability" value="0.1">
Rarely
</label>
</fieldset>
<fieldset>
<legend>Precoditions</legend>
<label>
<input type="radio" name="bug_precondition" value="1" checked>
None
</label>
<label>
<input type="radio" name="bug_precondition" value="0.9">
It needs to be configured a certain way
</label>
<label>
<input type="radio" name="bug_precondition" value="0.5">
It needs to be configured in an unsupported or incorrect way
</label>
</fieldset>
<fieldset>
<legend>Workaround</legend>
<label>
<input type="radio" name="bug_workaround" value="1" checked>
None
</label>
<label>
<input type="radio" name="bug_workaround" value="0.9">
Reload the page
</label>
<label>
<input type="radio" name="bug_workaround" value="0.8">
Try again a few more times
</label>
<label>
<input type="radio" name="bug_workaround" value="0.8">
[Re]Configure manually
</label>
<label>
<input type="radio" name="bug_workaround" value="0.8">
Try again a few more times
</label>
</fieldset>
</section>
<section>
<h2>Effort estimation</h2>
<fieldset>
<legend>Dev</legend>
<label>
<input type="radio" name="effort_dev" value="years">
Years
</label>
<label>
<input type="radio" name="effort_dev" value="quarters">
Quarters
</label>
<label>
<input type="radio" name="effort_dev" value="months">
Months
</label>
<label>
<input type="radio" name="effort_dev" value="weeks">
Weeks
</label>
<label>
<input type="radio" name="effort_dev" value="days" checked>
Days
</label>
<label>
<input type="radio" name="effort_dev" value="hours">
Hours
</label>
<label>
<input type="radio" name="effort_dev" value="minutes">
Minutes
</label>
</fieldset>
<fieldset>
<legend>Test</legend>
<label>
<input type="radio" name="effort_test" value="years">
Years
</label>
<label>
<input type="radio" name="effort_test" value="quarters">
Quarters
</label>
<label>
<input type="radio" name="effort_test" value="months">
Months
</label>
<label>
<input type="radio" name="effort_test" value="weeks">
Weeks
</label>
<label>
<input type="radio" name="effort_test" value="days" checked>
Days
</label>
<label>
<input type="radio" name="effort_test" value="hours">
Hours
</label>
<label>
<input type="radio" name="effort_test" value="minutes">
Minutes
</label>
</fieldset>
<fieldset>
<legend>Doc</legend>
<label>
<input type="radio" name="effort_doc" value="years">
Years
</label>
<label>
<input type="radio" name="effort_doc" value="quarters">
Quarters
</label>
<label>
<input type="radio" name="effort_doc" value="months">
Months
</label>
<label>
<input type="radio" name="effort_doc" value="weeks">
Weeks
</label>
<label>
<input type="radio" name="effort_doc" value="days" checked>
Days
</label>
<label>
<input type="radio" name="effort_doc" value="hours">
Hours
</label>
<label>
<input type="radio" name="effort_doc" value="minutes">
Minutes
</label>
</fieldset>
</section>
<h1>
<label for="score">Final score:</label>
<output id="score" name="score" form="bedbugs">1.00</output>
<input type="reset" class="btn">
</h1>
</form>
<footer>Made by <a href="mailto:mhh@vizrt.com">Mikal H Henriksen</a> - <a href="https://github.com/stylpe/hemipteropsy">View code and give feedback on GitHub</a></footer>
</body>
</html>