-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
188 lines (174 loc) · 12 KB
/
index.html
File metadata and controls
188 lines (174 loc) · 12 KB
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Vite App</title>
</head>
<body class="h-full">
<div class="h-screen">
<main class="flex-1 py-6">
<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8">
<h1 class="text-2xl font-semibold text-gray-900">Select an Alignment Position</h1>
</div>
<form id="alignment-position-form" th:object="${alignmentPositionDTO}"
th:action="@{/align/pre-alignment/{id}(id=${alignmentPositionDTO.preAlignmentId})}"
method="get" class="max-w-7xl bg-white p-6 mb-4 rounded-md">
<div class="mb-6 flex items-center w-full sm:w-1/2">
<div class="w-1/3">
<label class="mb-1 block pr-4 font-bold text-gray-500 text-right" for="subConfigCheckbox">Sub
configuration</label>
</div>
<div class="flex items-center">
<span class="mr-3 text-gray-900 dark:text-gray-300">Center</span>
<label class="relative inline-flex cursor-pointer items-center">
<input id="subConfigCheckbox" type="checkbox" value="true" name="lr" class="peer sr-only"
@change="checked = $event.target.checked"/>
<span class="peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-blue-500 peer-checked:after:translate-x-full peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-blue-800"></span>
<span class="ml-3 text-gray-900 dark:text-gray-300">L/R</span>
</label>
</div>
</div>
<div class="flex flex-wrap" x-show="checked">
<div class="mb-6 flex items-center w-full sm:w-1/2">
<div class="relative w-1/3">
<label class="mb-1 block pr-4 text-3xl font-bold text-red-500 text-right" for="as">A</label>
</div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md border-2 border-red-500 bg-gray-200 pl-4 md:pl-4 py-2 leading-tight text-gray-700 focus:border-blue-500 focus:bg-white focus:outline-none"
id="as" name="as" type="number" placeholder="Array span" min="0.1" step="0.01"
x-bind:required="checked"/>
</div>
</div>
<div class="mb-6 flex items-center w-full sm:w-1/2">
<div class="relative w-1/3">
<label class="mb-1 block pr-4 text-3xl font-bold text-orange-500 text-right" for="abz">B</label>
</div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md border-2 border-orange-500 bg-gray-200 pl-4 md:pl-4 py-2 leading-tight text-gray-700 focus:border-blue-500 focus:bg-white focus:outline-none"
id="abz" name="abz" type="number" placeholder="Array bottom height" min="0.1" step="0.01"
x-bind:required="checked"/>
</div>
</div>
</div>
<div class="flex flex-wrap">
<div id="sub-distance-from-center-container" class="mb-6 flex items-center w-full sm:w-1/2"
x-show="checked">
<div class="w-1/3">
<label class="mb-1 block pr-4 text-3xl font-bold text-yellow-500 text-right" for="sy">C</label>
</div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md border-2 border-yellow-500 bg-gray-200 pl-4 md:pl-4 py-2 leading-tight text-gray-700 focus:border-blue-500 focus:bg-white focus:outline-none"
id="sy" name="sy" type="number" placeholder="Sub distance from center" min="0.1"
step="0.01" x-bind:required="checked"/>
</div>
</div>
<div class="mb-6 flex items-center w-full sm:w-1/2">
<div class="w-1/3">
<label class="mb-1 block pr-4 text-3xl font-bold text-green-500 text-right" for="sx">D</label>
</div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md border-2 border-green-500 bg-gray-200 pl-4 py-2 leading-tight text-gray-700 focus:border-blue-500 focus:bg-white focus:outline-none"
id="sx" name="sx" type="number" placeholder="Sub depth relative to mains on x-axis" min="-100.1"
step="0.01" required/>
</div>
</div>
</div>
<div class="flex flex-wrap" x-show="checked">
<div class="mb-6 flex items-center w-full sm:w-1/2">
<div class="w-1/3">
<label class="mb-1 block pr-4 text-3xl font-bold text-blue-500 text-right" for="axf">E</label>
</div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md border-2 border-blue-500 bg-gray-200 pl-4 py-2 leading-tight text-gray-700 focus:border-blue-500 focus:bg-white focus:outline-none"
id="axf" name="axf" type="number" placeholder="Audience depth first row" min="0.1"
step="0.01" x-bind:required="checked"/>
</div>
</div>
<div class="mb-6 flex items-center w-full sm:w-1/2">
<div class="w-1/3">
<label class="mb-1 block pr-4 text-3xl font-bold text-indigo-500 text-right" for="axl">F</label>
</div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md border-2 border-indigo-500 bg-gray-200 pl-4 py-2 leading-tight text-gray-700 focus:border-blue-500 focus:bg-white focus:outline-none"
id="axl" name="axl" type="number" placeholder="Audience depth last row" min="0.1"
step="0.01" x-bind:required="checked"/>
</div>
</div>
</div>
<div class="flex flex-wrap">
<div id="audience-height-container" class="mb-6 flex items-center w-full sm:w-1/2" x-show="checked">
<label class="w-1/3 mb-1 block pr-4 font-bold text-gray-500 text-right">Audience</label>
<div class="flex">
<div class="mr-4 flex items-center">
<input id="seated-radio" type="radio" name="az" value="1.2"
class="h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"
x-bind:required="checked"/>
<label for="seated-radio" class="ml-2 text-gray-900 dark:text-gray-300">Seated</label>
</div>
<div class="mr-4 flex items-center">
<input id="standing-radio" type="radio" name="az" value="1.6" checked
class="h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"
x-bind:required="checked"/>
<label for="standing-radio" class="ml-2 text-gray-900 dark:text-gray-300">Standing</label>
</div>
</div>
</div>
<div id="unit-container" class="mb-6 flex items-center w-full sm:w-1/2">
<label class="w-1/3 mb-1 block pr-4 font-bold text-gray-500 text-right">Unit</label>
<div class="flex">
<div class="mr-4 flex items-center">
<input id="meters-radio" type="radio" name="u" th:field="*{u}"
th:value="${T(nathanlively.subalignercss.Models.Enums.UnitsEnum).METERS.abbreviation}"
checked
class="h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"
x-bind:required="checked"/>
<label for="meters-radio" class="ml-2 text-gray-900 dark:text-gray-300">meters</label>
</div>
<div class="mr-4 flex items-center">
<input id="feet-radio" type="radio" name="u" th:field="*{u}"
th:value="${T(nathanlively.subalignercss.Models.Enums.UnitsEnum).FEET.abbreviation}"
class="h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"
x-bind:required="checked"/>
<label for="feet-radio" class="ml-2 text-gray-900 dark:text-gray-300">feet</label>
</div>
</div>
</div>
</div>
<div class="flex flex-wrap" x-show="checked">
<div class="mb-6 flex items-center w-full sm:w-1/2">
<label for="xoff" class="w-1/3 mb-1 block pr-4 font-bold text-gray-500 text-right">Distances referenced from below array</label>
<div class="w-2/3">
<input id="xoff" class="h-5 w-5 text-blue-600 border-gray-300 rounded focus:ring-blue-500"
name="xoff" type="checkbox" @change="xoffChecked = $event.target.checked"/>
</div>
</div>
<div id="array-depth-container" class="mb-6 flex items-center w-full sm:w-1/2" x-show="xoffChecked">
<div class="w-1/3">
<label class="mb-1 block pr-4 text-3xl font-bold text-violet-500 text-right" for="ad">G</label>
</div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md border-2 border-violet-500 bg-gray-200 pl-4 py-2 leading-tight text-gray-700 focus:border-blue-500 focus:bg-white focus:outline-none"
id="ad" name="ad" type="number" placeholder="Array depth" min="0.1" step="0.01" x-bind:required="xoffChecked"/>
</div>
</div>
</div>
<div class="mt-6 sm:mt-0 flex items-center w-full sm:w-1/2">
<div class="w-1/3"></div>
<div class="w-2/3">
<input class="w-full appearance-none rounded-md bg-blue-sa-500 hover:bg-blue-600 text-white font-bold py-2 px-4 leading-tight focus:outline-none focus:bg-blue-700"
type="submit" value="Submit"/> <!--should appear with default value "on"-->
</div>
</div>
</form>
<div id="sound-system-model-container" class="relative w-full h-[450px] mx-auto">
<button id="reset-zoom-button" class="absolute top-4 right-4 z-10 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-md">
Reset zoom
</button>
<canvas id="canvas" class="absolute z-1"></canvas>
</div>
</main>
</div>
<script type="module" src="./src/main.js"></script>
</body>
</html>