-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
39 lines (32 loc) · 1018 Bytes
/
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
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="../c2p.js"></script>
<title>Document</title>
</head>
<body>
<label for="">
输入商标(即时):
<input type="text" name="" id="tminput">
</label>
<label for="">
输入商标(非即时):fff
<input type="text" name="" id="tminput2">
</label>
<p ><img src="" id="dump" style="border:1px solid gray"></p>
<script>
var c2p = registerIt(68, 400, 200)
var input1 = document.querySelector('#tminput');
var input2 = document.querySelector('#tminput2');
input1.onchange = function(e){
c2p.getPng('dump', e.target.value);
}
input2.oninput = function(e){
c2p.getPng('dump', e.target.value);
}
</script>
</body>
</html>