-
Notifications
You must be signed in to change notification settings - Fork 0
/
tw_hk.htm
46 lines (46 loc) · 1.33 KB
/
tw_hk.htm
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--This program is licensed under GPL v3.0, please refer to the gpl-3.0.txt file//-->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=utf-8">
<script type="text/javascript" src="data.js"></script>
<script type="text/javascript"><!--
function toHK() {
var inText=document.getElementById('twText').value;
for ( key in data ) {
inText=inText.replace(RegExp(key, 'g'), "*"+data[key]+"*");
}
document.getElementById('hkText').value=inText;
}
function toTW() {
var inText=document.getElementById('hkText').value;
for ( key in data ) {
inText=inText.replace(RegExp(data[key], 'g'), "*"+key+"*");
}
document.getElementById('twText').value=inText;
}
//--></script>
</HEAD>
<BODY>
<table>
<tr><td rowspan="2">
TW<br/>
<textarea id='twText' rows="20" cols="50"></textarea>
</td><td>
<input type="button" value="->" onclick="toHK();"/>
</td><td rowspan="2">
HK<br/>
<textarea id='hkText' rows="20" cols="50"></textarea>
</td></tr>
<tr><td>
<input type="button" value="<-" onclick="toTW();"/>
</td></tr>
<tr><td>
</td><td>
</td><td>
<b>REF:</b><br/>
<a href="http://www.legislation.gov.hk/eng/glossary/homeglos.htm">Department of Justice: Bilingual Laws Information System</a>
</td></tr>
</table>
</BODY>
</HTML>