-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
166 lines (133 loc) · 8.57 KB
/
index.html
File metadata and controls
166 lines (133 loc) · 8.57 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jBoard</title>
<script src="node_modules/jquery/dist/jquery.js" charset="utf-8"></script>
<script src="node_modules/materialize-css/bin/materialize.js" charset="utf-8"></script>
<link rel="stylesheet" href="node_modules/materialize-css/bin/materialize.css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<audio id="click-sound">
<source src="bin/click.m4a" type="audio/mpeg">
</audio>
<div class="container">
<h1>Standard</h1>
<div class="input-field col s6">
<input placeholder="Placeholder" id="keyboard-1" type="text" class="validate">
<label for="first_name">First Name</label>
</div>
<br><br>
<h1>Num</h1>
<div class="input-field col s6">
<input placeholder="Placeholder" id="keyboard-2" type="text" class="validate">
<label for="first_name">First Name</label>
</div>
<h1>Standard Test</h1>
<div class="input-field col s6">
<input placeholder="Placeholder" id="keyboard-3" type="text" class="validate">
<label for="first_name">First Name</label>
</div>
<h1>Num Test</h1>
<div class="input-field col s6">
<input placeholder="Placeholder" id="keyboard-4" type="text" class="validate">
<label for="first_name">First Name</label>
</div>
<br><br><br><br><br><br><br><br><br><br>
</div>
<!-- Modal Structure -->
<div id="standard-modal-template" class="modal bottom-sheet">
<div class="modal-content">
<div class="container center standard-jboard-container" id="standard-jboard-container">
<div class="row standard-row" id="standard-row-1" style="margin : 0">
<div class="jboard-key" id="q" style="display : inline-block">q</div>
<div class="jboard-key" id="w" style="display : inline-block">w</div>
<div class="jboard-key" id="e" style="display : inline-block">e</div>
<div class="jboard-key" id="r" style="display : inline-block">r</div>
<div class="jboard-key" id="t" style="display : inline-block">t</div>
<div class="jboard-key" id="y" style="display : inline-block">y</div>
<div class="jboard-key" id="u" style="display : inline-block">u</div>
<div class="jboard-key" id="i" style="display : inline-block">i</div>
<div class="jboard-key" id="o" style="display : inline-block">o</div>
<div class="jboard-key" id="y" style="display : inline-block">p</div>
<div class="jboard-key delete-key" id="delete" style="display : inline-block">delete</div>
</div>
<div class="row standard-row" id="standard-row-2" style="margin : 0">
<div class="jboard-key" id="a" style="display : inline-block">a</div>
<div class="jboard-key" id="s" style="display : inline-block">s</div>
<div class="jboard-key" id="d" style="display : inline-block">d</div>
<div class="jboard-key" id="f" style="display : inline-block">f</div>
<div class="jboard-key" id="g" style="display : inline-block">g</div>
<div class="jboard-key" id="h" style="display : inline-block">h</div>
<div class="jboard-key" id="j" style="display : inline-block">j</div>
<div class="jboard-key" id="k" style="display : inline-block">k</div>
<div class="jboard-key" id="l" style="display : inline-block">l</div>
<div class="jboard-key enter-key" id="enter" style="display : inline-block">enter</div>
</div>
<div class="row standard-row" id="standard-row-3" style="margin : 0">
<div class="jboard-key shift-key" id="shift" style="display : inline-block">Shift</div>
<div class="jboard-key" id="z" style="display : inline-block">z</div>
<div class="jboard-key" id="x" style="display : inline-block">x</div>
<div class="jboard-key" id="c" style="display : inline-block">c</div>
<div class="jboard-key" id="v" style="display : inline-block">v</div>
<div class="jboard-key" id="b" style="display : inline-block">b</div>
<div class="jboard-key" id="n" style="display : inline-block">n</div>
<div class="jboard-key" id="m" style="display : inline-block">m</div>
<div class="jboard-key" id="," style="display : inline-block">,</div>
<div class="jboard-key" id="." style="display : inline-block">.</div>
<div class="jboard-key" id="@" style="display : inline-block">@</div>
<div class="jboard-key extra-key" id="extra-key" style="display: inline-block; display: none">^</div>
</div>
<div class="row standard-row" id="standard-row-4" style="margin : 0">
<div class="jboard-key" id="123" style="display : inline-block">123</div>
<div class="jboard-key space-key" id="space" style="display : inline-block">Space</div>
<!-- <div class="jboard-key" id="#$+" style="display : inline-block">#$+</div> -->
</div>
</div>
</div>
</div>
<!-- Modal Structure -->
<div id="num-modal-template" class="modal bottom-sheet">
<div class="modal-content">
<div class="container center num-jboard-container" id="num-jboard-container">
<div class="row num-row" id="row-1" style="margin : 0">
<div class="jboard-key" id="7" style="display : inline-block">7</div>
<div class="jboard-key" id="8" style="display : inline-block">8</div>
<div class="jboard-key" id="9" style="display : inline-block">9</div>
<div class="jboard-key" id="backspace" style="display : inline-block"> ⌫ </div>
</div>
<div class="row num-row" id="row-2" style="margin : 0">
<div class="jboard-key" id="4" style="display : inline-block">4</div>
<div class="jboard-key" id="5" style="display : inline-block">5</div>
<div class="jboard-key" id="6" style="display : inline-block">6</div>
<div class="jboard-key" id="clear" style="display : inline-block"> C </div>
</div>
<div class="row num-row" id="row-3" style="margin : 0">
<div class="jboard-key" id="1" style="display : inline-block">1</div>
<div class="jboard-key" id="2" style="display : inline-block">2</div>
<div class="jboard-key" id="3" style="display : inline-block">3</div>
<div class="jboard-key blank-key" id="blank" style="display : inline-block">  </div>
</div>
<div class="row num-row" id="row-4" style="margin : 0">
<div class="jboard-key" id="0" style="display : inline-block">0</div>
<div class="jboard-key" id="dot" style="display : inline-block">.</div>
<div class="jboard-key" id="accept" style="display : inline-block"> ✓ </div>
<div class="jboard-key" id="reject" style="display : inline-block"> ✖ </div>
</div>
</div>
</div>
</div>
<script src="jboard.js" charset="utf-8"></script>
<script>
$('#keyboard-1').jboard('standard');
$('#keyboard-2').jboard('num');
$('#keyboard-3').jboard('standard');
$('#keyboard-4').jboard('num');
$('#keyboard-1').on( "jpress" , function(event, key){
console.log(key)
// do any other things here
})
</script>
<link rel="stylesheet" href="jboard.css" media="screen" title="no title" charset="utf-8">
</body>
</html>