forked from onigame/czar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
who.html
245 lines (221 loc) · 7.68 KB
/
who.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
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html><head>
<title>Who (Czar)</title>
<!-- From realfavicongenerator.net -->
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/images/manifest.json">
<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/images/favicon.ico">
<meta name="msapplication-config" content="/images/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<style>
body { background: #FFFFFF; color: #000000; font: 100% sans-serif; }
.active { background-color:#0f0; font-weight: normal; }
.nonactive { background-color:#ccc; color:#666; }
.nonexclusive { background-color:#c3f; color:#000; }
.never { background-color:#fff; }
td.active {text-align:right}
td.activeOnSolved {text-align:right; background-color:#f60}
td.nonactive {text-align: right }
td.nonexclusive {text-align: right }
td.nonpuzzlelt { background-color:#fc9; }
td.nonpuzzledk { background-color:#da7; }
td.focused { border: 1px solid #AAAAAA; }
.popup {
border: thin solid black;
position:absolute;
background-color: white;
visibility: hidden;
}
.title {
text-align: center;
font-size: 200%;
padding-bottom: 1ex;
}
#sm2-container {
width: 1px;
height: 1px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script src="config.js"></script>
<script src="stateserver.js"></script>
<script src="cookie.js"></script>
<script src="tags.js"></script>
<script src="who-data.js"></script>
<script src="notifier.js"></script>
<script src="who.js"></script>
</head>
<body onLoad=Init()>
<div class=title>Who's Doing What
<a style="font-size:50%" href=".">(Go to Czar)</a>
</div>
<!-- The dialog that appears when you click on any person/puzzle cell. -->
<div id=divUpdateWidget class=popup style="z-index:100">
Working on this activity...
<table>
<tr><td><button class=active id=btnExclusively style="width:120px">Exclusively</button></td>
<td><button class=nonexclusive id=btnNonExclusively style="width:120px">Non-Exclusively</button></td></tr>
<tr><td><button class=nonactive id=btnNoLonger style="width:120px">No longer</button></td>
<td><button class=never id=btnNever style="width:120px">Never</button></td></tr>
</table>
<center><button id=btnCancel><small>Cancel</small></button></center>
</div>
<!-- The dialog that appears when you click on any person/puzzle header. -->
<div id=divRenameWidget class=popup>
Rename: <input id=inputName>
<button id=btnCancelRename><small>cancel</small></button>
</div>
<!-- Div that's populated by the javascript. -->
<center>
<div id="data"></div>
<div id="tags"></div>
<!-- Sort rows. -->
<div style="padding:10px">
<span style="border: thin solid blue; padding: 8px">
Sort rows:
<label for=radioAlpha>
<input type=radio name="sortOrder" id=radioAlpha checked
onchange=RedrawTable()>Alphabetically</label>
<label for=radioRecency>
<input type=radio name="sortOrder" id=radioRecency
onchange=RedrawTable()>By recency</label>
<label for=radioRecencyReverse>
<input type=radio name="sortOrder" id=radioRecencyReverse
onchange=RedrawTable()>By recency (reverse)</label>
<label>
<input type=radio name="sortOrder" id=radioNumActives
onchange=RedrawTable()>By #actives</label>
<label>
<input type=radio name="sortOrder" id=radioUser
onchange=RadioUserSelected()>By person:</label>
<select disabled id=sortUserSelect>
<option value="">Select...</option>
</select>
</span>
</div>
<!-- Sort columns. -->
<div style="padding:10px">
<span style="border: thin solid blue; padding: 8px">
Sort people:
<label>
<input type=radio name="columnsSortOrder" id=columnsAlpha checked
onchange=RedrawTable()>Alphabetically</label>
<label>
<input type=radio name="columnsSortOrder" id=columnsRecency
onchange=RedrawTable()>By recency</label>
<label>
<input type=radio name="columnsSortOrder" id=columnsRecencyReverse
onchange=RedrawTable()>By recency (reverse)</label>
<label>
<input type=radio name="columnsSortOrder" id=columnsActivity
onchange=SortByActivitySelected()>By activity:</label>
<select disabled id=columnsActivitySelect>
<option value="">Select...</option>
</select>
</span>
</div>
<div style="padding:10px">
<span style="border: thin solid blue; padding: 8px">
<label for=checkboxToggleAutoUpdate>Update every minute:
<input type=checkbox checked id=checkboxToggleAutoUpdate
onchange="ToggleAutoUpdate(this);"></label>
</span>
</div>
<br><br><br>
<table width=80%>
<tr><th width=50%>Edit</th><th>Legend</th></tr>
<tr>
<td valign=top>
Add person: <input onchange="AddPerson(this);"><br>
Add activity: <input onchange="AddActivity(this);"><br>
<ul>
<li>You can rename any person or activity by clicking their name
in the table.
<li>New activities, new people, and changes in work assignments
appear automatically. The "Update every minute" checkbox is
useful only to update the minutes-ago time in the table.
</ul>
</td>
<td valign=top>
<center>
<table rules=all frame=outline>
<tr>
<td></td>
<td>Charlie</td>
<td>Juliet</td>
<td style="background-color:#ff6">Mike</td>
<td>Oscar</td>
<td>Romeo</td>
</tr>
<tr>
<td>First puzzle</td>
<td></td>
<td class=active>:05</td>
<td></td>
<td class=active>:23</td>
<td></td>
</tr>
<tr>
<td>Second puzzle</td>
<td></td>
<td class=nonactive>42m</td>
<td class=nonactive>1h12m</td>
<td></td>
<td class=active style="background-color:#f00">4:38</td>
</tr>
<tr>
<td>Third puzzle</td>
<td></td>
<td></td>
<td></td>
<td class=nonexclusive>:05</td>
<td></td>
</tr>
<tr>
<td>Fourth puzzle <font color=green>✔</font></td>
<td class=activeOnSolved>1:30</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class=nonpuzzlelt>Sleeping</td>
<td></td>
<td></td>
<td class=active>:15</td>
<td></td>
<td></td>
</tr>
</table>
</center>
<ul>
<li>Each row is an activity, each column a person. Non-puzzle
activities are orange. Your name is yellow, if you've selected your
name on <a href="">Czar</a>.
<li>Each cell shows when this person was last performing this
activity. It's hours and minutes.
<li>Marking one assignment as "exclusive" (green) marks all other assignments
as "no longer" (grey). The exception are non-exclusive
assignments, shown in purple. Non-exclusive assignments for puzzles will
be rare -- it would suggest you're actively working on more than
one puzzle simultaneously.
<li>"No longer" (grey) assignments are displayed as a duration, indicating
how long that person worked on that assignment. If you really need
to know when they were last seen on that assignment, use the tooltip.
<li>At the two-hour mark, green starts "decaying" to red, turning
into full red at 6 hours. When someone starts losing their
color, it means we haven't heard from them in a while.
<li>Solved puzzles have a checkmark next to their names. Anyone active
on solved puzzles are shown in orange.
</ul>
</td>
</tr>
</table>
</center>
</body> </html>