-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (30 loc) · 836 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="common.css">
<link rel="stylesheet" href="default.css">
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<input type="text" id="input1"><br>
<input type="text" id="input2"><br>
<textarea name="" id="input3" cols="30" rows="10"></textarea>
<div class="showArea"></div>
</body>
<script type="module">
import { inputKey, createKeyboard,offKey } from '/keyboard.js';
createKeyboard($('.showArea'));
$("#input1").focus(function () {
offKey();
inputKey($('#input1'));
});
$("#input2").focus(function () {
offKey();
inputKey($('#input2'));
});
$("#input3").focus(function () {
offKey();
inputKey($('#input3'));
});
</script>
</html>