-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
315 lines (283 loc) · 10.3 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html>
<html lang="en" data-theme="dark" class="has-navbar-fixed-top">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Advanced Presenter Track Zone Builder</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css"
/>
<link rel="icon" type="image/x-icon" href="https://avatars.githubusercontent.com/u/159071680?s=200&v=4">
<!-- Drag and Drop Library -->
<script src="https://unpkg.com/dropzone@5/dist/min/dropzone.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/dropzone@5/dist/min/dropzone.min.css" type="text/css" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<nav
class="navbar is-fixed-top is-dark"
role="navigation"
aria-label="main navigation"
>
<div class="navbar-brand">
<a class="navbar-item">
<img
src="https://avatars.githubusercontent.com/u/159071680?s=200&v=4"
/>
<h5 class="title is-5 pl-3">Advanced Presenter Track Zone Builder</h5>
</a>
</div>
</nav>
<div style="min-height: 88vh">
<div class="container mt-3 is-fluid">
<div class="card">
<div class="card-content">
<p class="subtitle is-6">
Presenter Track is a feature available on select Cisco Video
Endpoints, such as the Room Kit Pro or Room Kit EQ<br />
This tools allows you to set a custom Trigger Zone, allowing you to
avoid assets in your space that could produce a false positive such
as displays, glass walls, or photos
</p>
</div>
</div>
</div>
<div class="container is-fluid mt-3 is-flex is-flex-direction-row">
<div class="field pr-4 ">
<label class="label">Presenter Camera View</label>
<div class="file ">
<label class="file-label">
<input
class="file-input"
id="uploadImage"
type="file"
name="resume"
/>
<span class="file-cta">
<span class="icon"> <i class="fas fa-upload"></i> </span>
<span class="file-label pl-1">Upload</span>
<span class="icon pl-3"><i class="fas fa-image"></i></span>
</span>
</label>
</div>
</div>
<div class="field px-4">
<label class="label"
>Line Color
<span class="icon is-small">
<i class="fa-solid fa-chart-line"></i> </span
></label>
<div class="control">
<input
id="lineColor"
class="input color-input p-1"
type="color"
name="colorPicker"
value="#FF0000"
/>
</div>
</div>
<div class="field px-4">
<label class="label"
>Line Thickness
<span class="icon is-small">
<i class="fa-solid fa-chart-bar"></i> </span
></label>
<div class="control">
<div class="select">
<select id="lineThickness">
<option>1</option>
<option>2</option>
<option>3</option>
<option selected>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
</select>
</div>
</div>
</div>
<div class="field px-4">
<label class="label"
>Points Color
<span class="icon is-small">
<i class="fa-solid fa-shapes"></i> </span
></label>
<div class="control">
<input
id="dotColor"
class="input color-input p-1"
type="color"
name="colorPicker"
value="#d4ff00"
/>
</div>
</div>
</div>
<div class="container is-fluid">
<div class="field has-addons">
<p class="control">
<a class="button is-link is-outlined is-static">
Coordinates
</a>
</p>
<p class="control is-expanded">
<input id="coordinates" class="input is-link" type="text" placeholder="Click on zone editor or paste corridinates to start" />
</p>
<p class="control">
<button class="button is-link is-outlined"
id="pushCoordinates">
<span class="icon">
<i class="fa-solid fa-arrow-down-long"></i>
</span>
<span>Push Coordinates</span>
</button>
</p>
</div>
</div>
<div class="container mt-3 is-fluid">
<button id="copyCoordinates" class="button is-warning is-outlined">
<span class="icon">
<i class="fa-regular fa-clipboard"></i>
</span>
<span>Copy Coordinates</span>
</button>
<button id="clearCoordinates" class="button is-danger is-outlined ml-3">
<span class="icon">
<i class="fa-solid fa-trash-can"></i>
</span>
<span>Clear Coordinates</span>
</button>
</div>
<div class="container my-3 is-fluid">
<div class="columns is-desktop">
<div class="column">
<div class="card">
<header class="card-header">
<p class="card-header-title">Zone Editor</p>
</header>
<div class="card-content pt-0">
<canvas id="canvas" width="1920" height="1080"></canvas>
</div>
</div>
</div>
<div
class="column is-one-third-desktop is-one-third-widescreen is-one-quarter-fullhd"
>
<div class="card is-info">
<header class="card-header">
<p class="card-header-title">Guide</p>
</header>
<div class="card-content pt-0">
<div class="content is-size-7">
<h4>Key</h4>
The color may differ depending on your color settings above
<ul>
<li>🔺 - The Starting Coordinate Dot</li>
<li>🔴 - Intermediate Coordinate Dot</li>
<li>🟥 - Ending Coordinate Dot</li>
</ul>
<h4>Instructions</h4>
<p>
Before starting, it's recommended you first position your
camera for Presentertrack following its
<a
href="https://help.webex.com/en-us/article/9ur0g6/Set-up-PresenterTrack-for-Board-and-Room-Series"
>normal configuration process</a
>
and save
</p>
<ol>
<li>
Get a screenshot of your PTZ Camera View
<ul>
<li>
Have this system join a Meeting Bridge and grab a
Screen Shot of the Camera Image
</li>
<li>
If you have Remote Monitoring Installed, go to the Web
UI and copy the image from that interface
</li>
</ul>
</li>
<li>Upload the Screenshot to this Canvas</li>
<li>
Place your first Coordinate Dot on the Canvas
<ul>
<li>Left Clicking places a dot</li>
<li>Right Clicking deletes a dot</li>
</ul>
</li>
<li>Build out your custom Zone</li>
<ul>
<li>You don't need to close the shape</li>
<li>
The First and Last Dot will Auto Close the shape for you
</li>
<li>Try to avoid intersecting lines</li>
</ul>
<li>When complete, select the Copy Coordinates button</li>
<li>
Save these coordinates under
<a
href="https://roomos.cisco.com/xapi/Configuration.Cameras.PresenterTrack.TriggerZone/"
>xConfiguration Cameras PresenterTrack TriggerZone</a
>
</li>
</ol>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer py-5">
<div class="content has-text-centered">
<p>
<strong class="has-text-white"
>Advanced Presenter Track Zone Builder</strong
>
<br/>
Made with ❤️ CTG - Technical Marketing Engineering &
<a class="has-text-grey-light" href="https://github.com/wxsd-sales"
> WXSD-Sales</a
><br />
<span class="icon is-medium">
<i class="fa-brands fa-github"></i>
</span>
<a
href="https://github.com/ctg-tme/Advanced-Presenter-Track-Zoning"
target="_blank"
>View on Github</a
>
© <span id="year">2024</span> Webex by Cisco <br />
</p>
</div>
</footer>
<script src="script.js"></script>
</body>
<div id="dragOverModel" class="modal">
<div class="modal-background"></div>
<div class="modal-content">
<div class="notification is-warning has-text-centered">
<span class="icon-text my-3 ">
<span class="icon is-size-2 mx-3 px-3">
<i class="fas fa-upload"></i>
</span>
<span class="icon is-size-2 mx-3 px-3">
<span class="icon "><i class="fas fa-image"></i></span>
</span>
</span>
<p class="title is-1 is-spaced">Drop image to upload</p>
</div>
</div>
<button class="modal-close is-large" aria-label="close"></button>
</div>
</html>