-
Notifications
You must be signed in to change notification settings - Fork 84
/
index.html
385 lines (353 loc) · 19.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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<!DOCTYPE html>
<html>
<head>
<title>PttChrome</title>
<link rel="icon" type="image/png" href="icon/logo.png" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/pttchrome.min.css" />
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/hhnlfapopmaimdlldbknjdgekpgffmbo">
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/paramikojs_ssh.min.js"></script>
<script type="text/javascript" src="js/hammer.min.js"></script>
<script type="text/javascript" src="https://apis.google.com/js/api.js"></script>
<script type="text/javascript" src="https://apis.google.com/js/client.js"></script>
<script type="text/javascript" src="js/pttchrome.min.js"></script>
<script type="text/javascript">
if (window.location.protocol != "https:") {
window.location.href = "https:" + window.location.href.substring(window.location.protocol.length);
}
</script>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<ul id="contextMenus" class="dropdown-menu" role="menu" style="display:none">
<li id="cmenu_copy" class="cmenuItem contextSel"><a></a></li>
<li id="cmenu_copyAnsi" class="cmenuItem contextSel"><a></a></li>
<li id="cmenu_paste" class="cmenuItem contextNormal"><a></a></li>
<li id="cmenu_searchGoogle" class="cmenuItem contextSel"><a></a></li>
<li id="cmenu_openUrlNewTab" class="cmenuItem contextUrl"><a></a></li>
<li id="cmenu_copyLinkUrl" class="cmenuItem contextUrl"><a></a></li>
<li id="cmenu_divider1" class="divider"></li>
<li id="cmenu_quickSearch" class="cmenuItem contextQuickSearch"><a></a>
<ul id="quickSearchMenus" class="dropdown-menu" role="menu">
</ul>
</li>
<li id="cmenu_divider2" class="divider contextQuickSearch"></li>
<li id="cmenu_selectAll" class="cmenuItem contextNormal"><a></a></li>
<li id="cmenu_mouseBrowsing" class="cmenuItem contextNormal"><a></a></li>
<li id="cmenu_goToOtherSite" class="cmenuItem contextNormal"><a></a></li>
<li id="cmenu_showInputHelper" class="cmenuItem contextNormal"><a></a></li>
<li id="cmenu_showLiveArticleHelper" class="cmenuItem contextNormal"><a></a></li>
<li id="cmenu_addBlacklistUserId" class="cmenuItem"><a></a></li>
<li id="cmenu_removeBlacklistUserId" class="cmenuItem"><a></a></li>
<li id="cmenu_divider3" class="divider contextNormal"></li>
<li id="cmenu_settings" class="cmenuItem"><a></a></li>
</ul>
<div id="BBSWindow" style="display:none">
<input id="t" type="text" autocomplete="off" style="box-sizing:content-box; color:initial; border: none; width: 200px; height: 24px; position:absolute; left:-10000px; top:0px; z-index:2;resize: none; font-family:inherit !important;" autofocus/>
<div id="cursor" class="terminal_display">_</div>
</div> <!--BBSWindow end-->
<div id="hideobj" style="display: none;">
<span id="cmdHandler"></span>
<select id="TrackKeyWordList">
</select>
</div>
<div id="flashcontent" style="width:1px; height:1px; left:-10000px; top:-10000px;position: absolute;overflow: hidden;"></div>
<div id="siteModal" class="modal fade" style="color:black;overflow-y:auto">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<input type="text" class="form-control" ></input>
</div>
</div>
</div>
</div>
<!--Preferences Modal-->
<div id="prefModal" class="modal fade" style="color:black;overflow-y:auto;z-index:2;">
<div class="modal-dialog">
<div class="modal-content">
<div id="modalNav">
<h3 id="opt_title">Settings</h3>
<!-- Nav tabs -->
<ul class="nav nav-pills nav-stacked" id="opt_tabs">
<li><a id="optNav_general" href="#tabContentGeneral" name="general" data-toggle="pill">General</a></li>
<li><a id="optNav_autologin" href="#tabContentAutologin" name="autologin" data-toggle="pill">Auto login</a></li>
<li><a id="optNav_blacklist" href="#tabContentBlacklist" name="blacklist" data-toggle="pill">Blacklist</a></li>
<li><a id="optNav_extensions" href="#tabContentExtensions" name="extensions" data-toggle="pill">Extensions</a></li>
<li><a id="optNav_about" href="#tabContentAbout" name="about" data-toggle="pill">About</a></li>
</ul>
<button id="opt_reset" type="button" class="btn btn-default"></button>
</div>
<h3 id="modalHeader">General</h3>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="modal-body">
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane" id="tabContentGeneral">
<div class="group">
<div class="list-group">
<div class="list-group-item-text">
<div id="opt_openInPackagedApp" class="checkbox">
</div>
<div id="opt_closeQuery" class="checkbox">
</div>
<div id="opt_enablePicPreview" class="checkbox">
</div>
<div id="opt_enableNotifications" class="checkbox">
</div>
<div id="opt_enableEasyReading" class="checkbox">
</div>
<div id="opt_endTurnsOnLiveUpdate" class="checkbox">
</div>
<div id="opt_copyOnSelect" class="checkbox">
</div>
<div id="opt_antiIdleTime" class="form-group">
</div>
<div id="opt_lineWrap" class="form-group">
</div>
</div>
</div>
<div class="list-group">
<h4 id="opt_appearance" class="list-group-item-heading"></h4>
<div class="list-group-item-text">
<div id="opt_fontFitWindowWidth" class="checkbox">
</div>
<div id="opt_fontFace" class="form-group">
</div>
<div id="opt_bbsMargin" class="form-group">
</div>
</div>
</div>
</div>
<div class="group">
<div class="list-group">
<h4 id="opt_mouseBrowsing" class="list-group-item-heading"></h4>
<div class="list-group-item-text">
<div id="opt_useMouseBrowsing" class="checkbox">
</div>
<div id="opt_mouseBrowsingHighlight" class="checkbox">
</div>
<div id="opt_mouseBrowsingHighlightColor">
</div>
<div id="opt_mouseLeftFunction" class="form-group">
</div>
<div id="opt_mouseMiddleFunction" class="form-group">
</div>
<div id="opt_mouseWheelFunction1" class="form-group">
</div>
<div id="opt_mouseWheelFunction2" class="form-group">
</div>
<div id="opt_mouseWheelFunction3" class="form-group">
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="tabContentAutologin">
<div class="group">
<small id="opt_autologinWarning" style="color:red;"></small>
<div class="list-group">
<h4 id="opt_autologin" class="list-group-item-heading" style="margin-bottom:10px;"></h4>
<div class="list-group-item-text">
<div id="login_username" class="form-group"></div>
<div id="login_password" class="form-group"></div>
</div>
<div id="opt_enableDeleteDupLogin" class="checkbox">
</div>
<div class="btn-group" data-toggle="buttons" style="margin-left:20px;">
<label class="btn btn-default">
<input type="radio" name="options" id="opt_deleteDupLoginYes"> Y
</label>
<label class="btn btn-default active">
<input type="radio" name="options" id="opt_deleteDupLoginNo" checked> N
</label>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="tabContentBlacklist">
<div id="opt_enableBlacklist" class="checkbox">
</div>
<div id="blacklist_driveSync" style="margin-bottom:10px">
<span id="blacklist_driveSyncTitle" style="margin-right:5px">Use Google Drive:</span>
<a id="blacklist_driveAuthorize" style="margin-top:-3px" class="btn btn-default">Authorize PttChrome</a>
<a id="blacklist_driveLoad" style="margin-top:-3px" class="btn btn-default">Load</a>
<div class="btn-group" style="margin-top:-3px">
<button id="blacklist_driveSave" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
</button>
<ul class="dropdown-menu" role="menu">
<li><a id="blacklist_driveSaveNew" style="padding:3px 20px; cursor:pointer;">New Document</a></li>
<li><a id="blacklist_driveSaveExisting" style="padding:3px 20px; cursor:pointer;">Existing Document</a></li>
</ul>
</div>
<span id="blacklist_driveDone" style="margin-left:5px; display:none;">Done!</span>
<span id="blacklist_driveLoading" style="margin-left:5px; display:none;">Loading ...</span>
<a style="margin-left:5px" href="privacy.html" target="_blank"><span id="blacklist_privacyPolicy">Privacy Policy</span></a>
</div>
<span id="opt_blacklistInstruction"></span>
<!-- blacklist item start -->
<textarea id="opt_blacklistedUsers" class="form-control"></textarea>
<!-- blacklist item end -->
</div>
<div class="tab-pane" id="tabContentExtensions">
<div class="group">
<div class="list-group">
<h4 id="ext_quickSearch" class="list-group-item-heading"></h4>
<div class="list-group-item-text" style="margin-top:15px;">
<ul id="ext_quickSearchList" class="form-group" style="padding:0px">
</ul>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="tabContentAbout">
<div class="list-group">
<h4 class="list-group-item-heading">PttChrome <small>by <a href="mailto:yangchuck@gmail.com" target="_blank" rel="noreferrer">Chuck Yang</a></small></h4>
<a href='https://github.com/iamchucky/PttChrome' target="_blank" rel="noreferrer">https://github.com/iamchucky/PttChrome</a>
<div class="list-group-item-text" style="margin-top:10px;">
<a id="about_review" href="https://chrome.google.com/webstore/detail/pttchrome/hhnlfapopmaimdlldbknjdgekpgffmbo/reviews" target="_blank" rel="noreferrer" class="btn btn-default"></a>
<a id="about_feedback" href="mailto:pttchrome.feedback@gmail.com" target="_blank" rel="noreferrer" class="btn btn-default"></a>
<a id="about_fbpage" href="https://www.facebook.com/pttchrome" target="_blank" rel="noreferrer" class="btn btn-default"></a>
</div>
</div>
<div class="list-group">
<span id="about_promote" style="color:red;"></span>
<a href="https://chrome.google.com/webstore/detail/web2pttchrome/pjemnpgdmnlkkcpaddlnlegmdfpohnep" target="_blank" rel="noreferrer">Web2PttChrome</a>
</div>
<div class="list-group">
<h4 id="about_version_title" class="list-group-item-heading"></h4>
<div class="list-group-item-text">
<div id="about_version"></div>
</div>
</div>
<div class="list-group">
<h4 id="about_new_title" class="list-group-item-heading"></h4>
<div class="list-group-item-text">
<ul id="about_new">
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="connectionAlert" class="alert alert-danger alert-dismissable fade in">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4 id="connectionAlertHeader"></h4>
<p id="connectionAlertText"></p>
<p>
<button id="connectionAlertReconnect" type"button" class="btn btn-danger"></button>
<span id="connectionAlertPortOption1" style="margin-left:5px;">or</span>
<span id="connectionAlertPortOption2" style="cursor:pointer;margin-left:5px;text-decoration:underline;"> Try with port 443 </span>
</p>
</div>
<div id="welcomeJumbo" style="cursor:default;">
<div id="welcomeBanner">
<div id="bigLogo"></div>
<h1>踢踢控</h1>
<br/>
<h2 id="welcomeBannerPtt">Ptt</h2><h2 id="welcomeBannerChrome">Chrome</h2>
<br/>
<div id="getAppBtn" class="btn btn-default btn-lg">Get from Chrome Web Store</div>
<div id="alreadyInstalledHintContainer" style="margin-top:100px; font-size:20px;">
<div id="alreadyInstalledHint1" style="margin-bottom:5px; font-size:30px;">Already have PttChrome installed?</div>
<div id="alreadyInstalledHint2">To launch PttChrome, please set Google Chrome as your default browser and launch from the "批" icon</div>
<div id="alreadyInstalledHint3" style="margin:10px 0;">OR</div>
<div id="alreadyInstalledHint4">Add http://iamchucky.github.io/PttChrome/ to Chrome bookmarks and launch PttChrome from the bookmark</div>
</div>
</div>
</div>
<img id="picPreview" src='' style='max-height:80%; max-width:90%'></img>
<i id="picLoading" class="glyphicon glyphicon-refresh glyphicon-refresh-animate" style="display:none; position:absolute; z-index:2"></i>
<div id="liveHelper" class="modal-dialog">
<div class="modal-content">
<div class="modal-body nomouse_command" style="height:60px;">
<button id="liveHelperClose" type="button" class="close nomouse_command"><span>×</span></button>
<button type="button" class="btn btn-default nomouse_command" style="float:left;margin-top:-6px" data-toggle="button" id="liveHelperEnable">Enable</button>
<span id="liveHelperSpan" class="nomouse_command" style="margin-left:5px;margin-right:5px;float:left;">pushthread auto-update every</span>
<input id="liveHelperSec" type="number" style="float:left;margin-top:-6px;width:70px;" class="form-control nomouse_command" value="1"></input>
<span id="liveHelperSpanSec" class="nomouse_command" style="margin-left:5px;float:left;">sec</span>
</div>
</div>
</div>
<div id="inputHelper" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button id="inputHelperClose" type="button" class="close"><span>×</span></button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<ul id="inputHelperTabTitle" class="nav nav-pills nav-justified" role="tablist">
<li class="active" id="colorsTabTitle">
<a href="#colorHelperTab" role="tab" data-toggle="tab"></a>
</li>
<li class="dropdown" id="symbolsTabTitle">
<a class="dropdown-toggle" data-toggle="dropdown">
</a>
<ul class="dropdown-menu" role="menu">
</ul>
</li>
<li class="dropdown" id="emoticonsTabTitle">
<a class="dropdown-toggle" data-toggle="dropdown">
</a>
<ul class="dropdown-menu" role="menu">
</ul>
</li>
</ul>
<div id="inputHelperTabContent" class="tab-content">
<div id="colorHelperTab" class="tab-pane active" style="height:166px;">
<ul id="colorHelperList">
<li style="background-color:black" value="0"></li>
<li class="b1" value="1"></li>
<li class="b2" value="2"></li>
<li class="b3" value="3"></li>
<li class="b4" value="4"></li>
<li class="b5" value="5"></li>
<li class="b6" value="6"></li>
<li class="b7" value="7"></li>
<li class="b8" value="8"></li>
<li class="b9" value="9"></li>
<li class="b10" value="10"></li>
<li class="b11" value="11"></li>
<li class="b12" value="12"></li>
<li class="b13" value="13"></li>
<li class="b14" value="14"></li>
<li class="b15" value="15"></li>
</ul>
<div align="center" style="color:#c0c0c0; background-color:black; height:38px; margin-bottom:10px; padding-top:8px;">
<span id="colorHelperPreview" class="q7 b0">▅ PREVIEW ▅</span>
</div>
<div id="colorHelperBlink" class="checkbox">
</div>
<div class="btn-group dropdown" style="float:right">
<button id="colorHelperSend" type="button" class="btn btn-default">Send</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul id="colorHelperSendMenu" class="dropdown-menu" role="menu">
<li><a id="colorHelperSendMenuFore" type="foreground">Send foreground only</a></li>
<li><a id="colorHelperSendMenuBack" type="background">Send background only</a></li>
<li class="divider"></li>
<li><a id="colorHelperSendMenuReset" type="reset">Send reset code</a></li>
</ul>
</div>
</div>
</div>
</div>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</body>
</html>