-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrolApiTest.html
32 lines (29 loc) · 973 Bytes
/
controlApiTest.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" charset="utf-8" src="scripts/dataentry.js"></script>
</head>
<body>
<div>
<input name="" type="text" id="text1" ></input>
<input name="" type="text" id="text2" ></input>
</div>
<div>
<ol>
<li>ctrl-a: Select</li>
<li>ctrl-q: Multiple input edition</li>
</ol>
</div>
<script type="text/javascript" charset="utf-8">
var dt = DataEntry.makeDataEntry(),
input = document.getElementById("textarea");
dt.controlApi.addElement(document.getElementById("text1"));
dt.controlApi.addElement(document.getElementById("text2"));
window.onclick = function () {
dt.controlApi.clearSelect();
}
</script>
</body>
</html>