-
Notifications
You must be signed in to change notification settings - Fork 130
/
misc-testing.html
56 lines (45 loc) · 992 Bytes
/
misc-testing.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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Musician's Toolkit</title>
<script src="../dist/NexusUI.js"></script>
<script src="../api/js/jquery.js"></script>
<script src="js/Tone9.js"></script>
<meta name="viewport" content="width=200, initial-scale=1">
</head>
<body style="margin:0;padding;0">
<div style="font-size:25px;margin:10px;">
Testing Sandbox
</div>
<div id="target"></div>
</body>
<style>
body {
font-family: helvetica;
}
[nexus-ui] {
margin: 10px;
float: left;
}
#target {
width: 500px;
height: 500px;
border: dashed 2px #333;
}
</style>
<script>
var thing = new Nexus.Multislider("#target", {
'size': [200, 100],
'numberOfSliders': 9,
'min': 0,
'max': 1,
'step': 0,
'candycane': 3,
'values': [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1],
'smoothing': 0,
'mode': 'bar' // 'bar' or 'line'
});
thing.on('change', x => console.log(x))
</script>
</html>