forked from g0v/zh-stroke-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
draw.plugin.single.html
37 lines (35 loc) · 1.33 KB
/
draw.plugin.single.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>常用國字標準字體筆劃 HTML5 Canvas</title>
<link rel="stylesheet" href="./css/demo.css" type="text/css" media="screen">
<link rel="stylesheet" href="./css/demo.canvas.css" type="text/css" media="screen">
<script src="./js/raf.min.js"></script>
<script src="./js/raphael.js"></script>
<script src="./js/jquery-1.9.1.min.js"></script>
<script src="./js/jquery.ajax-progress.js"></script>
<script src="./js/gl-matrix-min.js"></script>
<script src="./js/sax.js"></script>
<script src="./js/jquery.strokeWords.js"></script>
<script>
$(document).ready(function() {
var $word, options;
options = {
updatesPerStep: 5,
single: true
};
$word = $("#word");
$word.change(function() {
$("#holder").strokeWords($word.val(), options);
});
$("#holder").strokeWords($word.val(), options);
});
</script>
</head>
<body>
<input type="text" id="word" value="𪜶𠊎""/>
<div id="holder"></div>
<p id="copyright">常用國字標準字體筆劃</p>
</body>
</html>