-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
168 lines (151 loc) · 4.58 KB
/
index.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
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
167
168
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="text/javascript">
function require(name) {
console.warn("Failed to require " + name);
}
</script>
<script src="https://flyover.github.io/imgui-js/dist/imgui.umd.js"></script>
<script src="https://flyover.github.io/imgui-js/dist/imgui_impl.umd.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/adzialocha/osc-js/lib/osc.js"></script>
<script type="text/javascript" src="./src/scripts/utils.js"></script>
<script type="text/javascript" src="./src/scripts/const.js"></script>
<script type="text/javascript" src="./src/scripts/clock.js"></script>
<script type="text/javascript" src="./src/scripts/transpose.js"></script>
<script type="text/javascript" src="./src/scripts/bezierpoint.js"></script>
<script type="text/javascript" src="./src/scripts/gui.js"></script>
<script type="text/javascript" src="./src/scripts/docs.js"></script>
<script type="text/javascript" src="./src/scripts/io.js"></script>
<script type="text/javascript" src="./src/scripts/midi.js"></script>
<script type="text/javascript" src="./src/scripts/osc.js"></script>
<script type="text/javascript" src="./src/scripts/frame.js"></script>
<script type="text/javascript" src="./src/scripts/drawer.js"></script>
<script type="text/javascript" src="./src/scripts/arc.js"></script>
<script type="text/javascript" src="./src/scripts/circle.js"></script>
<script type="text/javascript" src="./src/scripts/events.js"></script>
<script type="text/javascript" src="./src/scripts/line.js"></script>
<script type="text/javascript" src="./src/scripts/point.js"></script>
<script type="text/javascript" src="./src/scripts/client.js"></script>
<style type="text/css">
html,
body {
overflow: hidden;
font-size: 14px;
font-family: Helvetica, sans-serif, Arial;
position: relative;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: white;
/* border: 0; */
}
*:focus { outline: 0; }
canvas {
margin: 0;
padding: 0;
display: block;
position: absolute;
z-index: 99;
}
#drawing {
/* margin: 4px; */
/* border: 1px solid gray; */
position: absolute;
/* left: 248px; */
/* top: 30px; */
width: 230px;
height: 100%;
}
canvas {
cursor: default;
}
.textiocontainer {
position: relative;
font-size: 80%;
width: 216px;
background-color: #eee;
border: 1px solid #eee;
margin-top: 20px;
padding: 6px;
display: none;
}
.constructioncontainer {
position: relative;
font-size: 80%;
width: 216px;
background-color: #eee;
border: 1px solid #eee;
/* margin-top: -5px; */
/* padding: 6px; */
display: none;
padding-bottom: 0px;
padding-top: 0;
}
.textio {
position: relative;
display: none;
margin: 0;
}
.textiocontainer input[type="submit"] {
display: block;
position: relative;
width: 100%;
padding: 2px;
font-size: 110%;
margin: 12px 0px 0px -2px;
}
.textio input {
width: 85px;
float: right;
display: block;
margin-right: 3px;
}
.textio label {
width: 115px;
clear: both;
text-align: right;
display: block;
float: left;
padding: 2px;
padding-top: 5px;
}
#title {
height: 30px;
margin: 6px 0px 0px 258px;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
#editor {
position: absolute;
top: 0px;
left: 0px;
width: 50%;
height: 100%;
z-index: 99;
}
.map {
opacity: 0.4;
top: 0;
position: absolute;
z-index: 0;
display: none;
user-select: none;
}
</style>
<title>xen | De Casteljau's curve drawer with MIDI / OSC implemented.</title>
</head>
<body id="game">
<div id="drawing">
<canvas id="canvas" tabindex="1"> </canvas>
<img id="mapId" class="map" src="./src/imgs/map.png" />
</div>
<script type="text/javascript" src="/src/main.js"></script>
<noscript>Your browser must have Javascript enabled to use xen. </noscript>
</body>
</html>