-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoptions.html
321 lines (303 loc) · 12.3 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
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<!DOCTYPE html>
<html lang="en">
<head>
<title>ChromeLife - Options</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="lib/bootstrap.min.css" type="text/css" />
<script src="lib/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="lib/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src='lib/spectrum.js'></script>
<link rel='stylesheet' href='lib/spectrum.css' />
<script type="text/javascript" src="versions.js"></script>
<script type="text/javascript" src="options.js"></script>
<link rel="stylesheet" href="options.css" type="text/css" />
</head>
<body>
<div class="container fixed" id="cont">
<div class="row">
<div class="col-12">
<div class="navbar">
<img src="img/ChromeLife_48.png" class="pull-left" alt="ChromeLife" />
<span class="navbar-brand">ChromeLife Options</span>
<ul class="pull-right nav navbar-nav">
<li><a data-toggle="modal" href="https://github.com/XD6Code/ChromeLife" target="_blank">Source</a></li>
<li><a data-toggle="modal" href="#help" id="changelog_link">Change Log</a></li>
</ul>
</div>
</div>
</div>
<div id="positioner">
<div class="preview">
<div class="panel panel-primary">
<div class="panel-heading nomarg">Preview</div>
<div class="center-view">
<iframe src="popup.html?dummy=true" style="width:375px;height:200px;border:none;overflow-x:hidden;box-shadow:none"></iframe>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading nomarg">Custom CSS</div>
<textarea id="css"></textarea>
</div>
</div>
<div class="row force">
<div class="col-5">
<div class="panel panel-primary">
<div class="panel-heading nomarg">Popout Options</div>
<ul class="list-group">
<li class="list-group-item">
<strong>Popout Behavior</strong><br/>
<div class="radio">
<label>
<input type="radio" name="popout" id="popout_default" value="default" />
By default
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="popout" id="popout_button" value="button" />
Button in popup
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="popout" id="popout_never" value="never" />
Never
</label>
</div>
</li>
<li class="list-group-item">
<strong>Popout Formatting</strong><br/>
<div class="checkbox">
<label>
<input type="checkbox" id="balance" />
Show L$ balance
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="groups" />
Show groups tab
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="version" />
Show version
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="count_header" />
Show online count in header
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="link_names" />
Link to profiles
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="images" />
Show profile pictures
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="location_icon" />
Show location icon
</label>
</div>
</li>
<li class="list-group-item" id="location_icon-options">
<strong>Link Format</strong><br/>
<div class="radio">
<label>
<input type="radio" name="location_link_format" id="location_link_format_SLURL" value="SLURL" />
SLURL
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="location_link_format" id="location_link_format_native" value="native" />
secondlife://
</label>
</div>
</li>
<li class="list-group-item">
<strong>Name Format</strong><br/>
<div class="row">
<div class="col-10">
<input type="text" id="name_format" class="form-control" placeholder="%UU (%u)"/>
</div>
<div class="col-2 nopad">
<a data-toggle="modal" href="#help" class="largtxt pull-left nameHelp">?</a>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="col-7">
<div class="panel panel-primary">
<div class="panel-heading nomarg">Icon Options</div>
<ul class="list-group">
<li class="list-group-item">
<strong>Icon Online Number</strong><br/>
<div class="checkbox">
<label>
<input type="checkbox" id="count_badge" />
Show online count
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="hide_empty" />
Hide icon badge text when no friends are online
</label>
</div>
</li>
<li class="list-group-item">
<strong id="colors-header">Colors</strong><br />
<div class="row margtop">
<div class="col-7" id="count_badge-options">
<div class="row pad">
<div class="col-2">
Normal:
</div>
<div class="col-1"> </div>
<div class="col-7">
<input type="text" class="color" value="#40FF80" id="badge_bg_normal">
</div>
</div>
<div class="row pad">
<div class="col-2">
Error:
</div>
<div class="col-1"> </div>
<div class="col-7 pull-left">
<input type="text" class="color" value="#FF0000" id="badge_bg_error">
</div>
</div>
<div class="row pad">
<div class="col-2">
Offline:
</div>
<div class="col-1"> </div>
<div class="col-7 pull-left">
<input type="text" class="color" value="#808080" id="badge_bg_offline">
</div>
</div>
</div>
<div class="col-5" id="icon_preview">
<img src="img/ChromeLife_19.png" />
<div id="badge">2</div>
</div>
</div>
</li>
</ul>
</div>
<div class="panel panel-primary">
<div class="panel-heading nomarg">Desktop Notifications</div>
<ul class="list-group darkbg"> <!--#YOLO-->
<li class="list-group-item usebottomborder" id="notificationLink-parent">
<a id="notificationLink" data-toggle="modal" href="#help">Where are the other options?</a>
</li>
<li class="list-group-item notopborder">
<div class="checkbox">
<label>
<input type="checkbox" id="notify_online" />
Contact comes online
</label>
</div>
</li>
<li class="list-group-item">
<div class="checkbox">
<label>
<input type="checkbox" id="notify_offline" />
Contact goes offline
</label>
</div>
</li>
<li class="list-group-item">
<strong>Name Format</strong><br/>
<div class="row">
<div class="col-10">
<input type="text" id="popup_format" class="form-control" placeholder="%UU (%u)"/>
</div>
<div class="col-2 nopad">
<a data-toggle="modal" href="#help" class="largtxt pull-left nameHelp">?</a>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<footer>
<input type="button" id="submit" value="Save" class="btn btn-primary" />
<span id="save-msg"></span>
</footer>
<div class="modal fade" id="help">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="modal-title">Help</h4>
</div>
<div class="modal-body">
<div id="changes"></div>
<div id="where_notifications">
<p>In Chrome 28 for Windows and ChromeOS, the Chromium developers decided to remove the <tt>webkitNotifications.createHTMLNotification</tt> API, which was removed from the official spec for web pages months earlier, but had previously been stated would remain available for extensions to use. The feature has since been removed from Mac and Linux as well, so it has been removed from ChromeLife.</p>
<p>HTML notifications were what allowed you to customize the appearence of notifications to your liking, such as displaying someone's location in the corner, adding colors, or graying out images. There is still a plain text notification API available, which is what's currently being used. It does not allow for any visual customizations.</p>
<h3>Looking to the future</h3>
<p>In the same update, a new <a href="http://developer.chrome.com/extensions/notifications.html" target="_blank">"rich" notification API</a> was introduced. It allows for certain specific deviations from plain text, but still does not offer anywhere near the amount of customizability as HTML notifications did. Support for these notifications within ChromeLife is planned for some point in the future. However, Chrome's notification API has been unstable, poorly documented, and inconsistent across platforms ever since version 28, so support for the new API is unlikely until it stablizes. Until then, plain text will be the only option available.</p>
</div>
<div id="format_help">
<p>Name formats are a simple way to specify you would like a user's name to appear. The following options are supported:</p>
<ul>
<li><strong>%U</strong> - The user's legacy name, with "Resident" trimmed off</li>
<li><strong>%UU</strong> - The user's full legacy name, including "Resident"</li>
<li><strong>%u</strong> - The user's lowercase legacy name, with "resident" trimmed off</li>
<li><strong>%uu</strong> - The user's full lowercase legacy name, including "resident"</li>
<li><strong>%F</strong> - The user's first name</li>
<li><strong>%f</strong> - The user's first name, lowercase</li>
<li><strong>%L</strong> - The user's last name, with "Resident" trimmed off</li>
<li><strong>%LL</strong> - The user's last name, including "Resident"</li>
<li><strong>%l</strong> - The user's lowercase last name, with "resident" trimmed off</li>
<li><strong>%ll</strong> - The user's lowercase last name, including "resident"</li>
<li><strong>%D</strong> - The user's display name</li>
</ul>
<h3>Examples</h3>
<table>
<tr>
<td>Nexus Unplugged</td>
<td><input type="text" value="%UU" /></td>
</tr>
<tr>
<td>nexus.unplugged</td>
<td><input type="text" value="%u" /></td>
</tr>
<tr>
<td>N3XU5 (nexus.unplugged)</td>
<td><input type="text" value="%D (%u)" /></td>
</tr>
<tr>
<td>N3XU5 Unplugged</td>
<td><input type="text" value="%D %L" /></td>
</tr>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>