-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder.html
60 lines (48 loc) · 1.41 KB
/
builder.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
<head>
<meta charset="utf-8">
<title>Keyboards</title>
<style>
label{
padding-right: 250px;
}
</style>
<link rel=stylesheet type="text/css" href="keyboard.css">
<script src="js/jquery.min.js"></script>
<script src="js/keyboard.js"></script>
<script src="js/note.js"></script>
<script>
var keyboard;
function makeKeyboard(){
keyboard = new Keyboard({
el:$("#keyboard"),
systemRows:$("#system-rows").val(),
stepSize:$("#step-size").val(),
displayRows:$("#display-rows").val(),
startNote:$("#start-note").val(),
buttonsPerRow:$("#row-buttons").val()
});
}
$(document).ready(function(){
makeKeyboard();
$("#btn").click(function(){
makeKeyboard();
})
})
</script>
</head>
<body>
<p>Generate a keyboard with the following characteristics</p>
<table>
<tr><td>system rows</td><td><input id="system-rows" type="textbox" value=3></td></tr>
<tr><td>step size</td><td><input id="step-size" type="textbox" value=1></td></tr>
<tr><td>display rows</td><td><input id="display-rows" type="textbox" value=5></td></tr>
<tr><td>start note</td><td><input id="start-note" type="textbox" value="gb3"></td></tr>
<tr><td>buttons per row</td><td><input id="row-buttons" type="textbox" value=14></td></tr>
</table>
<button id="btn">Make keyboard</button>
<br>
<br>
<div id="keyboard"></div>
</body>
</html>