-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
136 lines (134 loc) · 5.02 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Iris Visualizer</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="scripts/nouislider.css">
</head>
<body>
<header>
<h1>Freilite Iris Visualizer (Ver. 0.2)</h1>
<p id="output"></p>
</header>
<main>
<div id="scheduleBrowserDiv">
<li id="scheduleTemplate" class="schedule listItem" hidden scheduleID="Infinity">
<input type="button" value="ScheduleTmp" class="openSchedule"/>
<input type="button" value="✘" class="deleteSchedule"/>
</li>
<ul id="scheduleBrowser">
<!--This is populated dynamically-->
</ul>
<input id="createScheduleButton" type="button" value="+"/>
</div>
<div>
<div id="ringDisplay">
<canvas id="ledRingCanvas" width="300" height="300">Your browser does not support the HTML5 canvas tag.</canvas>
<div class="ledHitbox" id="ledHitboxTemplate"></div>
<div id="ledHitboxDiv" hidden>
<!--This is populated dynamically-->
</div>
</div>
<div id="editor">
<div id="transitionPicker" showcursor>
<canvas id="transitionPickerHLGradient" width="300" height="200"></canvas>
<canvas id="transitionPickerHLLine" width="300" height="200"></canvas>
<canvas id="transitionPickerHLDot" width="300" height="200"></canvas>
</div><br>
<div id="cueEditor" hidden>
<div id="additionalOptionsDiv">
<div id="additionalOptionsButton" type="button">•••</div>
<div id="additionalOptions" hidden>
<div>
<div>
<label for="name">Name</label><br>
<input id="name" type="text"/>
</div><br>
<label for="timeDivisor">Time divisor: (Recommended: divisors of 12)</label><br>
<input id="timeDivisor" type="number" min="1" value="9999"/>
</div><br>
</div>
</div><br>
<div id="editChannelsDiv">
<input id="channelEditStartButton" type="button" value="Edit Active Channels">
<input hidden id="channelEditStopButton" type="button" value="Stop Editing Channels"/>
<p id="editChannelsInstructions" hidden>Click on LEDs to toggle them.</p>
</div><br>
<div id="durationDiv">
<label for="duration">Duration (ms)</label><br>
<input id="duration" type="number" min="1" value="9999"/>
</div><br>
<div>
<label for="reverse">Reverse</label>
<input id="reverse" type="checkbox"/>
</div><br>
<div id="rampTypeSpecificOptions">
<div>
<label for="rampType">Ramp Type</label><br>
<select id="rampType">
<!--This is populated programmatically-->
</select>
</div><br>
<div id="rampParameterDiv">
<label for="rampParameter">Ramp Parameter</label><br>
<input id="rampParameter" type="range" min="0" max="1" value="1" step="0.01"/>
<label for="rampParameter">(<span id="rampParameterDisplay">9999</span>)</label>
</div><br>
<div id="wrapHueDiv">
<label for="wrapHue">Wrap Hue</label>
<input id="wrapHue" type="checkbox"/>
</div>
</div>
</div><br>
<div id="scheduleEditorDiv">
<div>
<label for="scheduleEditorTimescale">Duration (ms):</label>
<input id="scheduleEditorTimescale" type="number"/>
</div>
<li id="periodTemplate" class="period listItem" cueID="Infinity" hidden>
<div>
<label class="periodName"></label>
<input type="button" class="addDelayButton" value="Add Delay"/>
<input type="button" class="removeDelayButton" value="Remove Delay"/>
<input type="button" class="removePeriodButton" value="✘"/>
</div>
<div class="periodDelayDiv">
<div class="periodDelays"></div>
</div>
</li>
<div>
<div id="scheduleProgressBar">
</div>
<ul id="scheduleEditor" ondrop="dropCueIntoSchedule(event)" ondragover="event.preventDefault()">
<!--This is populated dynamically-->
</ul>
</div>
</div>
</div>
<div id="cueBrowserDiv">
<ul>
<li id="cueTemplate" class="cueItem listItem" hidden cueID="Infinity" draggable="true" ondragstart="dragCue(this, event)">
<input type="button" value="CueTmp" class="openCue"/>
<input type="button" value="✘" class="deleteCue"/>
</li>
</ul>
<div id="cueBrowserControls">
<a id="downloadAnchor"></a>
<input id="downloadButton" type="button" value="Save" onclick="downloadJSON()"/>
<input id="uploadAnchor" type="file" onchange="uploadJSON(this.files); this.value=null; return false;"/>
<label id="uploadButton" type="button" for="uploadAnchor">Load</label>
<br>
<input type="button" value="Create New Cue" id="createCueButton"/>
</div>
<ul id="cueBrowser">
<!--This is populated dynamically-->
</ul>
</div>
</div>
<script src="scripts/noUiSlider/distribute/nouislider.js"></script>
<script src="scripts/wnumb/wNumb.js"></script>
<script src="main.js"></script>
</main>
</body>
</html>