-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
64 lines (54 loc) · 1.5 KB
/
example.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Example Chinese</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type='text/javascript' src='javascript/jquery.autocomplete.js'></script>
<script type='text/javascript' src='javascript_data/chinese_characters.js'></script>
<link rel="stylesheet" type="text/css" href="stylesheets/main.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/jquery.autocomplete.css" />
<script type="text/javascript">
$().ready(function() {
$("#pinyin").autocomplete(pinyin, {
max: 15,
multiple: true,
multipleSeparator: " ",
formatItem: function(row) {
return row[0] + " " + row[1];
},
formatResult: function(row) {
return row[1];
}
});
$("#gwoyeu_romantzyh").autocomplete(gwoyeu_romantzyh, {
max: 15,
multiple: true,
multipleSeparator: " ",
formatItem: function(row) {
return row[0] + " " + row[1];
},
formatResult: function(row) {
return row[1];
}
});
});
</script>
</head>
<body>
<table>
<tr>
<th>Pinyin input:</th>
<th>Gwoyeu Romantzyh input:</th>
</tr>
<tr>
<td>
<textarea id='pinyin' style='width:400px;height:200px;'></textarea>
</td>
<td>
<textarea id='gwoyeu_romantzyh' style='width:400px;height:200px;'></textarea>
</td>
</tr>
</table>
</body>
</html>