1
|
<div class="card" style="width: 24.5rem;">
|
2
|
<div class="card-body">
|
3
|
<div id="keyboard">
|
4
|
<div class="cont">
|
5
|
<div id="keyboard-div">
|
6
|
<table>
|
7
|
<tbody>
|
8
|
<tr>
|
9
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="á"
|
10
|
onclick="keyboardRead(this.value)"></td>
|
11
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="é"
|
12
|
onclick="keyboardRead(this.value)"></td>
|
13
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="í"
|
14
|
onclick="keyboardRead(this.value)"></td>
|
15
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ú"
|
16
|
onclick="keyboardRead(this.value)"></td>
|
17
|
<td></td>
|
18
|
<td></td>
|
19
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Á"
|
20
|
onclick="keyboardRead(this.value)"></td>
|
21
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="É"
|
22
|
onclick="keyboardRead(this.value)"></td>
|
23
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Í"
|
24
|
onclick="keyboardRead(this.value)"></td>
|
25
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ú"
|
26
|
onclick="keyboardRead(this.value)"></td>
|
27
|
</tr>
|
28
|
<tr>
|
29
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="à"
|
30
|
onclick="keyboardRead(this.value)"></td>
|
31
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="è"
|
32
|
onclick="keyboardRead(this.value)"></td>
|
33
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ì"
|
34
|
onclick="keyboardRead(this.value)"></td>
|
35
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ù"
|
36
|
onclick="keyboardRead(this.value)"></td>
|
37
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ò"
|
38
|
onclick="keyboardRead(this.value)"></td>
|
39
|
<td></td>
|
40
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="À"
|
41
|
onclick="keyboardRead(this.value)"></td>
|
42
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="È"
|
43
|
onclick="keyboardRead(this.value)"></td>
|
44
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ì"
|
45
|
onclick="keyboardRead(this.value)"></td>
|
46
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ù"
|
47
|
onclick="keyboardRead(this.value)"></td>
|
48
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ò"
|
49
|
onclick="keyboardRead(this.value)"></td>
|
50
|
</tr>
|
51
|
<tr>
|
52
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="â"
|
53
|
onclick="keyboardRead(this.value)"></td>
|
54
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ê"
|
55
|
onclick="keyboardRead(this.value)"></td>
|
56
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="î"
|
57
|
onclick="keyboardRead(this.value)"></td>
|
58
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="û"
|
59
|
onclick="keyboardRead(this.value)"></td>
|
60
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ô"
|
61
|
onclick="keyboardRead(this.value)"></td>
|
62
|
<td></td>
|
63
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Â"
|
64
|
onclick="keyboardRead(this.value)"></td>
|
65
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ê"
|
66
|
onclick="keyboardRead(this.value)"></td>
|
67
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Û"
|
68
|
onclick="keyboardRead(this.value)"></td>
|
69
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ô"
|
70
|
onclick="keyboardRead(this.value)"></td>
|
71
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="⌈"
|
72
|
onclick="keyboardRead(this.value)">
|
73
|
<input class="btn btn-sm btn-outline-dark" type="button" value="⌉"
|
74
|
onclick="keyboardRead(this.value)"></td>
|
75
|
</tr>
|
76
|
|
77
|
|
78
|
<tr>
|
79
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ā"
|
80
|
onclick="keyboardRead(this.value)"></td>
|
81
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ē"
|
82
|
onclick="keyboardRead(this.value)"></td>
|
83
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ī"
|
84
|
onclick="keyboardRead(this.value)"></td>
|
85
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ū"
|
86
|
onclick="keyboardRead(this.value)"></td>
|
87
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ō"
|
88
|
onclick="keyboardRead(this.value)"></td>
|
89
|
<td></td>
|
90
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ā"
|
91
|
onclick="keyboardRead(this.value)"></td>
|
92
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ē"
|
93
|
onclick="keyboardRead(this.value)"></td>
|
94
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ī"
|
95
|
onclick="keyboardRead(this.value)"></td>
|
96
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ū"
|
97
|
onclick="keyboardRead(this.value)"></td>
|
98
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ō"
|
99
|
onclick="keyboardRead(this.value)"></td>
|
100
|
</tr>
|
101
|
<tr>
|
102
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ʾ"
|
103
|
onclick="keyboardRead(this.value)"></td>
|
104
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ʿ"
|
105
|
onclick="keyboardRead(this.value)"></td>
|
106
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ṣ"
|
107
|
onclick="keyboardRead(this.value)"></td>
|
108
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="š"
|
109
|
onclick="keyboardRead(this.value)"></td>
|
110
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ṭ"
|
111
|
onclick="keyboardRead(this.value)"></td>
|
112
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="ḫ"
|
113
|
onclick="keyboardRead(this.value)"></td>
|
114
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ṣ"
|
115
|
onclick="keyboardRead(this.value)"></td>
|
116
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Š"
|
117
|
onclick="keyboardRead(this.value)"></td>
|
118
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ṭ"
|
119
|
onclick="keyboardRead(this.value)"></td>
|
120
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="Ḫ"
|
121
|
onclick="keyboardRead(this.value)"></td>
|
122
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="["
|
123
|
onclick="keyboardRead(this.value)">
|
124
|
<input class="btn btn-sm btn-outline-dark" type="button" value="]"
|
125
|
onclick="keyboardRead(this.value)"></td>
|
126
|
</tr>
|
127
|
<tr>
|
128
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₁"
|
129
|
onclick="keyboardRead(this.value)"></td>
|
130
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₂"
|
131
|
onclick="keyboardRead(this.value)"></td>
|
132
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₃"
|
133
|
onclick="keyboardRead(this.value)"></td>
|
134
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₄"
|
135
|
onclick="keyboardRead(this.value)"></td>
|
136
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₅"
|
137
|
onclick="keyboardRead(this.value)"></td>
|
138
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₆"
|
139
|
onclick="keyboardRead(this.value)"></td>
|
140
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₇"
|
141
|
onclick="keyboardRead(this.value)"></td>
|
142
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₈"
|
143
|
onclick="keyboardRead(this.value)"></td>
|
144
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₉"
|
145
|
onclick="keyboardRead(this.value)"></td>
|
146
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="₀"
|
147
|
onclick="keyboardRead(this.value)"></td>
|
148
|
<td><input class="btn btn-sm btn-outline-dark" type="button" value="x"
|
149
|
onclick="keyboardRead(this.value)"></td>
|
150
|
</tr>
|
151
|
</tbody>
|
152
|
</table>
|
153
|
</div>
|
154
|
</div>
|
155
|
</div>
|
156
|
</div>
|
157
|
</div>
|
158
|
|
159
|
<script>
|
160
|
let lastFocused;
|
161
|
|
162
|
$("form input[type=text]").focus(function(){ lastFocused = this.id; });
|
163
|
|
164
|
function keyboardRead(val) {
|
165
|
document.getElementById(lastFocused).value = document.getElementById(lastFocused).value + val;
|
166
|
}
|
167
|
</script>
|