forked from hermanschaaf/chinese-ime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
35 lines (31 loc) · 1.16 KB
/
demo.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
<html>
<head>
<meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="demo.css" />
<link rel="stylesheet" type="text/css" href="ime.css" />
<style>
body, textarea {font-size: 18px; font-family: arial, sans-serif;}
textarea.chinese {width: 400px; height: 120px;}
</style>
</head>
<body>
<textarea class="chinese"></textarea>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
<script type="text/javascript" charset="utf-8" src="characters.js"></script>
<script type="text/javascript" src="caret.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("textarea.chinese").chineseInput({
debug: true,
input: {
initial: 'traditional', // or 'simplified'
allowChange: true
},
allowHide: true,
active: true
});
});
</script>
</body>
</html>