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
|
<html>
<head>
<title>cells</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 13px;
transition: background-color 100ms;
background-image: url(./img/imBreak_1340193016_tumblr_m5vynpMYYg1qiluqao1_500_.png);
background-position: top right;
background-repeat: no-repeat;
background-attachment: fixed;
}
div {
display: inline-block;
}
#labels {
width: 20px;
line-height: 27px;
position: relative;
top: -3px;
}
.desktop body {
user-select: none;
}
.top {
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
@media only screen and (min-device-width: 800px) {
.tools {
position: fixed;
top: 0;
left: 468px;
width: 400px;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
@media only screen and (max-device-width: 800px) {
html,body {
margin: 0;
padding: 0;
}
div {
display: block;
}
#labels {
display: none;
}
.nxlabel {
display: none;
}
.nx input {
display: inline-block !important;
}
br {
display: none;
}
}
</style>
</head>
<body>
<div>
<div id='labels'></div>
<canvas nx="matrix" id="grid"></canvas>
</div>
<div class='tools'>
<span class="top">
<canvas nx="number" label="tempo" id="tempo"></canvas>
<br><br>
<canvas nx="select" id="scale"></canvas>
</span>
<span>
<canvas nx="button" label="shift ↑" id="shiftUp"></canvas>
<canvas nx="button" label="shift ↓" id="shiftDown"></canvas>
<br>
<canvas nx="button" label="slide ↑" id="slideUp"></canvas>
<canvas nx="button" label="slide ↓" id="slideDown"></canvas>
<canvas nx="button" label="slide ←" id="slideLeft"></canvas>
<canvas nx="button" label="slide →" id="slideRight"></canvas>
<br>
<canvas nx="button" label="rotate ↑" id="rotateUp"></canvas>
<canvas nx="button" label="rotate ↓" id="rotateDown"></canvas>
<canvas nx="button" label="rotate ←" id="rotateLeft"></canvas>
<canvas nx="button" label="rotate →" id="rotateRight"></canvas>
<canvas nx="button" label="flip ↕" id="flip"></canvas>
<canvas nx="button" label="flop ↔" id="flop"></canvas>
</span>
</div>
</body>
<script>
var s = document.createElement('script');
s.setAttribute('src','bundle.js?' + Date.now());
document.body.appendChild(s)
</script>
</html>
|