-
Notifications
You must be signed in to change notification settings - Fork 6
/
options.html
179 lines (173 loc) · 9.62 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新同文堂 (Safari) - 設定</title>
<link type="text/css" rel="stylesheet" media="all" href="./css/smoothness/jquery-ui-1.8.4.custom.css" />
<link type="text/css" rel="stylesheet" media="all" href="./css/tongwen.css" />
<script src="./lib/jquery/jquery-1.4.2.min.js"></script>
<script src="./lib/jquery/jquery-ui-1.8.4.custom.min.js"></script>
<script src="./options.js"></script>
</head>
<body>
<div id="msgDialog" title="提示訊息">
<div id="msgContent"></div>
</div>
<div id="msgInOutDialog" title="">
<form style="display: inline;">
<div style="padding: 3px 0px 3px 10px; margin: 0 0 5px 0;" class="ui-state-highlight ui-corner-all">
<span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span><span id="msgNotice"></span>
</div>
<div><textarea id="tongwenOptions" class="text ui-widget-content ui-corner-all"></textarea></div>
<div id="divReplace"><input type="checkbox" name="ckReplace" id="ckReplace"><label for="ckReplace">直接取代原本的設定</label></div>
<div id="divWarning" style="padding: 3px 10px; margin: 5px 0 0 0; display: none;" class="ui-state-error ui-corner-all">
<span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span><span id="msgWarning"></span>
</div>
</form>
</div>
<div id="msgLoginDialog" title="登入">
<iframe style="width: 100%; height: 450px; border: none; margin: 0; padding: 0;" src="about:blank"></iframe>
</div>
<form style="display: inline;">
<div id="tongwenWrap" class="ui-widget ui-widget-content ui-corner-all">
<div id="msgBanner" style="padding: 3px 10px; margin: 0px 1px 5px 1px; display: none;" class="ui-state-highlight ui-corner-all">
<span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span><span id="msgBannerContent">儲存完成!</span>
</div>
<div id="tabsTongwen">
<ul>
<li><a href="#tabsGeneral">一般設定</a></li>
<li><a href="#tabsUrl">自訂轉換規則</a></li>
<li><a href="#tabsPhrase">自訂詞彙</a></li>
</ul>
<!-- 一般設定 -->
<div id="tabsGeneral">
<fieldset>
<legend>自動轉換設定</legend>
<div><input name="autoConvert" id="autoConvertNone" type="radio" value="none"/><label for="autoConvertNone">不啟用自動轉換</label></div>
<div><input name="autoConvert" id="autoConvertTrad" type="radio" value="trad"/><label for="autoConvertTrad">自動轉為 繁體 (簡 > 繁)</label></div>
<div><input name="autoConvert" id="autoConvertSimp" type="radio" value="simp"/><label for="autoConvertSimp">自動轉為 簡體 (繁 > 簡)</label></div>
</fieldset>
<fieldset>
<legend>圖示轉換設定</legend>
<div style="padding: 3px 10px; margin: 4px 5px 4px 0px;" class="ui-state-highlight ui-corner-all">
<span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>某些網頁的頁框會無法正常轉換。
</div>
<div><input name="iconAction" id="iconActionAuto" type="radio" value="auto"/><label for="iconActionAuto">自動偵測轉換 (簡 > 繁、繁 > 簡)</label></div>
<div><input name="iconAction" id="iconActionTrad" type="radio" value="trad"/><label for="iconActionTrad">轉為 繁體 (簡 > 繁)</label></div>
<div><input name="iconAction" id="iconActionSimp" type="radio" value="simp"/><label for="iconActionSimp">轉為 簡體 (繁 > 簡)</label></div>
</fieldset>
<!--
<fieldset>
<legend>標點符號轉換</legend>
<div><input name="symConvert" id="symbolEnable" type="radio" value="enable"/><label for="symbolEnable">啟用 標點符號 轉換</label></div>
<div><input name="symConvert" id="symbolDisable" type="radio" value="disable"/><label for="symbolDisable">停用 標點符號 轉換</label></div>
</fieldset>
-->
<fieldset>
<legend>顯示字型設定</legend>
<div><input name="fontEnable" id="fontEnable" type="checkbox" value="enable"/><label for="fontEnable">強制字型轉換</label></div>
<div><label for="fontTrad">繁體顯示字型:</label><input name="fontTrad" id="fontTrad" type="text" value="" size="40"/></div>
<div><label for="fontSimp">簡體顯示字型:</label><input name="fontSimp" id="fontSimp" type="text" value="" size="40"/></div>
</fieldset>
</div>
<!-- 自訂網址轉換規則 -->
<div id="tabsUrl">
<div><input type="checkbox" name="enableUrlFilter" id="enableUrlFilter"><label for="enableUrlFilter">啟用自訂轉換規則</label></div>
<div id="paneUrlFilter">
<ul id="tableUrlList">
<li class="ui-state-default disabled">
<span class="url center">網址</span>
<span class="zhflag center">繁簡轉換</span>
<span class="icon ui-state-default right"><span class="ui-icon icon-import" title="匯入"></span></span>
<span class="icon ui-state-default right"><span class="ui-icon icon-export" title="匯出"></span></span>
</li>
</ul>
</div>
<div style="padding: 3px 10px; margin: 4px 5px 4px 0px;" class="ui-state-highlight ui-corner-all">
<span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>可在網址內使用萬用字元 (*)
</div>
<div id="tableUrlEdit">
<table border="0" cellpadding="0" cellspacing="0" width="98%">
<tr>
<td>
<div>網址:<input type="text" value="" name="urlAnchor" id="urlAnchor" class="text ui-widget-content ui-corner-all"></div>
<div>繁簡轉換:<input type="radio" name="urlAction" id="urlActionNone" value="none" checked="checked"><label for="urlActionNone">不轉換</label>
<input type="radio" name="urlAction" id="urlActionTrad" value="trad"><label for="urlActionTrad">轉 繁體</label>
<input type="radio" name="urlAction" id="urlActionSimp" value="simp"><label for="urlActionSimp">轉 簡體</label>
</div>
</td>
<td align="right">
<div><button id="btnAddUrl" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"><span class="ui-button-text">新增</span></button></div>
<div style="display: none;"><button id="btnCancel" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"><span class="ui-button-text">取消</span></button></div>
</td>
</tr>
</table>
</div>
</div>
<!-- 自訂詞彙 -->
<div id="tabsPhrase">
<div><input type="checkbox" id="enableCustomPhrase"><label for="enableCustomPhrase">啟用自訂詞彙</label></div>
<div id="tabUserPhrase">
<ul>
<li><a href="#tabsTrad">簡 轉 繁</a></li>
<li><a href="#tabsSimp">繁 转 简</a></li>
</ul>
<div id="tabsTrad">
<div id="paneTrad">
<ul id="tableTradList">
<li class="ui-state-default disabled">
<span class="simp center">簡體</span>
<span class="trad center">繁體</span>
<span class="icon ui-state-default right"><span class="ui-icon icon-import" title="匯入"></span></span>
<span class="icon ui-state-default right"><span class="ui-icon icon-export" title="匯出"></span></span>
</li>
</ul>
</div>
<div id="tableTradPhraseEdit">
<table border="0" cellpadding="0" cellspacing="0" width="98%">
<tr>
<td>
<div>簡體:<input type="text" value="" name="tradSimp" id="tradSimp" class="text ui-widget-content ui-corner-all"></div>
<div>繁體:<input type="text" value="" name="tradTrad" id="tradTrad" class="text ui-widget-content ui-corner-all"></div>
</td>
<td align="right">
<div><button id="btnAddTrad" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"><span class="ui-button-text">新增</span></button></div>
<div style="display: none;"><button id="btnTradCancel" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"><span class="ui-button-text">取消</span></button></div>
</td>
</tr>
</table>
</div>
</div>
<div id="tabsSimp">
<div id="paneSimp">
<ul id="tableSimpList">
<li class="ui-state-default disabled">
<span class="trad center">繁体</span>
<span class="simp center">简体</span>
<span class="icon ui-state-default right"><span class="ui-icon icon-import" title="汇入"></span></span>
<span class="icon ui-state-default right"><span class="ui-icon icon-export" title="汇出"></span></span>
</li>
</ul>
</div>
<div id="tableSimpPhraseEdit">
<table border="0" cellpadding="0" cellspacing="0" width="98%">
<tr>
<td>
<div>繁体:<input type="text" value="" name="simpTrad" id="simpTrad" class="text ui-widget-content ui-corner-all"></div>
<div>简体:<input type="text" value="" name="simpSimp" id="simpSimp" class="text ui-widget-content ui-corner-all"></div>
</td>
<td align="right">
<div><button id="btnAddSimp" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"><span class="ui-button-text">加入</span></button></div>
<div style="display: none;"><button id="btnSimpCancel" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"><span class="ui-button-text">取消</span></button></div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div> <!-- for #tabsTongwen -->
</div> <!-- for #tongwenWrap -->
</form>
</body>
</html>