-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
456 lines (446 loc) · 25.2 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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<!DOCTYPE HTML>
<head>
<!-- Set UTF-8 Character Set -->
<meta charset="utf-8" />
<!-- Set Not-User Scalable -->
<meta name="viewport" content="width=device-width, user-scalable=no">
<!-- Set Web App Capable -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Set App Name -->
<meta name="application-name" content="ProRemote">
<meta name="apple-mobile-web-app-title" content="ProRemote">
<!-- Set Theme Colour -->
<meta name="theme-color" content="#000000">
<meta name="msapplication-navbutton-color" content="#000000">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Set App Start Path-->
<meta name="msapplication-starturl" content="/">
<!-- Set App Manifest -->
<link rel="manifest" href="img/site.webmanifest">
<!-- Set App Icons -->
<link rel="icon" type="image/png" sizes="192x192" href="img/android-chrome-192x192.png">
<link rel="apple-touch-icon" type="image/png" sizes="192x192" href="img/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="img/android-chrome-512x512.png">
<link rel="apple-touch-icon" type="image/png" sizes="512x512" href="img/android-chrome-512x512.png">
<link rel="icon" type="image/png" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="img/apple-touch-icon.png">
<!-- Load Font Awesome -->
<link rel="stylesheet" href="fa/css/all.css">
<!-- Load Roboto Font -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<!-- Load Site CSS -->
<link rel="stylesheet" href="css/site.css?v=1.0">
<!-- Load JQuery -->
<script type="application/javascript" src="js/jquery-3.5.1.min.js"></script>
<!-- Load Site JS -->
<script type="application/javascript" src="js/config.js?v=1.0"></script>
<script type="application/javascript" src="js/site.js?v=1.0"></script>
<title>ProPresenter Web Remote</title>
</head>
<body>
<div class="loading">
<div class="loading-internal animated animatedFadeInUp fadeInUp">
<div class="loading-img">
<img src="img/logo.png">
<div id="authenticate" class="authenticate">
<div class="host-container">
<label>Host:</label>
<input id="host" type="text"/>
</div>
<div>
<label>Password:</label>
<input id="password" type="password"/>
</div>
<a title="Connect to ProPresenter" onclick="authenticate();">Connect</a>
</div>
<div id="connecting-loader" class="connecting-loader">
<div class="connecting-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div class="connecting-to" id="connecting-to"></div>
<a onclick="cancelAuthenticate();">Cancel</a>
</div>
</div>
</div>
</div>
<div class="container">
<div class="main">
<div class="sections" id="sections">
<div class="section-1" id="section-1">
<div class="library segment">
<div class="top light">
<div class="libraries">
<div class="segment-header padded">
<h5>Library</h5>
<a onclick="getLibrary();"><i class="fas fa-redo-alt"></i></a>
</div>
<div id="library-content" class="content">
<h5 style="margin-left: 20px">Connect to ProPresenter to see Libraries</h5>
</div>
</div>
<div class="playlists">
<div class="segment-header padded">
<h5>Playlist</h5>
</div>
<div id="playlist-content" class="content">
<h5 style="margin-left: 20px">Connect to ProPresenter to see Playlists</h5>
</div>
</div>
</div>
<div class="bottom dark">
<div class="segment-header padded segment">
<h5 id="left-count" class="count"></h5>
</div>
<div id="library-items" class="content">
</div>
<div id="playlist-items" class="content">
</div>
</div>
</div>
</div>
<div class="section-2" id="section-2">
<div class="screens">
<div class="preview">
<div class="content">
<div class="live-container">
<div id="live"></div>
</div>
<div class="clear">
<div class="icons">
<a id="clear-all" onclick="clearAll();">
<div class="clear-all-container"><i class="clear-icon fas fa-times-circle"></i>
<div class="clear-all">Clear All</div>
</div>
</a>
<a id="clear-audio" onclick="clearAudio();">
<div><img src="img/clearaudio.png" />
<div class="clear-name">Clear Audio</div>
</div>
</a>
<a id="clear-messages" onclick="clearMessages();">
<div class="bordered"><img src="img/clearmessage.png" />
<div class="clear-name">Clear Messages</div>
</div>
</a>
<a id="clear-props" onclick="clearProps();">
<div class="bordered"><img src="img/clearprops.png" />
<div class="clear-name">Clear Props</div>
</div>
</a>
<a id="clear-announcements" onclick="clearAnnouncements();">
<div class="bordered"><img src="img/clearannouncements.png" />
<div class="clear-name">Clear Announcements</div>
</div>
</a>
<a id="clear-slide" onclick="clearSlide();">
<div class="bordered"><img src="img/clearslide.png" />
<div class="clear-name">Clear Slide</div>
</div>
</a>
<a id="clear-media" onclick="clearMedia();">
<div class="bordered"><img src="img/clearmedia.png" />
<div class="clear-name">Clear Media</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="right-sub">
<div class="playback segment">
<div class="bottom dark">
<div class="segment-header padded segment">
<div class="playback-controls">
<a title="Show Media Controls" onclick="focusTimelineControls();"><img id="control-slide" src="img/slideblue.png" /></a>
<a title="Show Audio Controls" onclick="focusAudioControls();"><img id="control-audio" src="img/clearaudio.png" /></a>
</div>
</div>
<div class="content">
<div id="timeline-controls" class="timeline-controls">
<div class="current playing-timeline"></div>
<a onclick="toggleTimelinePlayPause();">
<div class="play"><i id="timeline-status" class="disabled fas fa-play"></i></div>
</a>
</div>
<div id="audio-controls" class="audio-controls">
<div class="current playing-audio"></div>
<a onclick="toggleAudioPlayPause();">
<div class="play"><i id="audio-status" class="disabled fas fa-play"></i></div>
</a>
</div>
</div>
</div>
</div>
<div class="audio segment">
<div class="top light">
<div class="audio">
<div class="segment-header padded">
<h5>Audio</h5>
<a onclick="getAudioPlaylists();"><i class="fas fa-redo-alt"></i></a>
</div>
<div id="audio-content" class="content">
<h5 style="margin-left: 20px">Connect to ProPresenter to see Audio Playlists</h5>
</div>
</div>
</div>
<div class="bottom dark">
<div class="segment-header padded segment">
<h5 id="right-count" class="count"></h5>
</div>
<div id="audio-items" class="content">
</div>
</div>
</div>
</div>
</div>
</div>
<div id="presentations" class="middle">
</div>
<div class="middle-footer">
<div class="preview-options">
<div class="slide-display view-1">
<a onclick="setSlideView(1)" class="view-1"><i class="fas fa-th-large"></i></a>
<a onclick="setSlideView(2)" class="view-2">T</a>
<a style="display: none;" class="display-options"><i class="fas fa-ellipsis-h"></i></a>
</div>
<div class="slide-size">
<input id="slide-cols" type="range" min="1" max="7">
</div>
</div>
</div>
</div>
<div class="header">
<div class="menu-opener"><a onclick="openSideMenu();"><i class="fas fa-bars"></i></a></div>
<div class="logo">
<a onclick="window.location.reload()"><img src="img/logo.png" /></a>
</div>
<div class="window-title">ProPresenter Web Remote</div>
<div class="producer-controls">
<a onclick="displayTimerOptions();">
<div class="control-container">
<div class="control-button"><img src="img/timers.png" /></div>
<div class="control-text">Timers</div>
</div>
</a>
<a onclick="displayMessageOptions();">
<div class="control-container">
<div class="control-button"><img src="img/messages.png" /></div>
<div class="control-text">Messages</div>
</div>
</a>
<a onclick="displayStageOptions();">
<div class="control-container">
<div class="control-button"><img src="img/stage.png" /></div>
<div class="control-text">Stage</div>
</div>
</a>
</div>
<div id="timerOptions" class="options-container timers">
<div class="options-header">
<a onclick="$('#timerOptions').hide();">
<div class="options-close"><i class="fas fa-times-circle"></i></div>
</a>
<div class="options-name">Timers</div>
<a onclick="getClocks();"><i class="refresh fas fa-redo-alt"></i></a>
</div>
<div id="timer-content" class="options-content">
<h3 style="margin: 0px; padding: 20px;">Connect to ProPresenter to see Timers</h3>
</div>
<div class="options-footer">
<a onclick="stopAllClocks();">
<div class="option-button">Stop All</div>
</a>
<a onclick="resetAllClocks();">
<div class="option-button">Reset All</div>
</a>
<a onclick="startAllClocks();">
<div class="option-button">Start All</div>
</a>
</div>
</div>
<div id="messageOptions" class="options-container messages">
<div class="options-header">
<a onclick="$('#messageOptions').hide();">
<div class="options-close"><i class="fas fa-times-circle"></i></div>
</a>
<div class="options-name">Messages</div>
</div>
<div class="options-content">
<div id="messages" class="message name-container">
<a onclick="displayMessage(this);">
<div id="message.1" class="message-info">
<div class="message-name">Child Needs Attention</div>
<a onclick="hideMessage(this);"><div class="message-clear"><i class="fas fa-times-circle"></i></div></a>
</div>
</a>
<a onclick="displayMessage(this);">
<div id="message.2" class="message-info displayed">
<div class="message-name">Countdown to Service</div>
<a onclick="hideMessage(this);"><div class="message-clear"><i class="fas fa-times-circle"></i></div></a>
</div>
</a>
</div>
<div id="message-content" class="message attribute-container">
<div class="message-attribute">
<div class="attribute-name">Name</div>
<input class="text-input attribute-data" />
</div>
<div class="message-attribute">
<div class="attribute-name">Room</div>
<input class="text-input attribute-data" />
</div>
</div>
</div>
<div class="options-footer">
<div class="message name-footer">
<a onclick="webMessages();">
<div class="option-button messages-share"><i class="fas fa-share-alt"></i></div>
</a>
</div>
<div class="right-buttons">
<a onclick="showMessage();">
<div class="option-button">Show</div>
</a>
</div>
</div>
</div>
<div id="stageOptions" class="options-container stage">
<div class="options-header">
<a onclick="$('#stageOptions').hide();">
<div class="options-close"><i class="fas fa-times-circle"></i></div>
</a>
<div class="options-name">Stage</div>
</div>
<div class="options-content">
<div id="stage-screens" class="stage-screen-container">
</div>
<div class="stage-message-title">Stage Message</div>
<input id="stage-message" class="text-input stage-message" type="text" />
</div>
<div class="options-footer">
<div class="left-buttons">
<a onclick="clearStageMessage();">
<div class="option-button">Clear</div>
</a>
</div>
<div class="right-buttons">
<a onclick="hideStageMessage();">
<div class="option-button">Hide</div>
</a>
<a onclick="showStageMessage();">
<div class="option-button">Show</div>
</a>
</div>
</div>
</div>
<div class="settings-controls">
<a onclick="displaySettings();">
<div class="control-container">
<div class="control-button"><i class="fas fa-cog"></i></div>
<div class="control-text">Settings</div>
</div>
</a>
</div>
<div id="settings" class="options-container settings">
<div class="options-header">
<a onclick="$('#settings').hide();">
<div class="options-close"><i class="fas fa-times-circle"></i></div>
</a>
<div class="options-name">Settings</div>
</div>
<div class="options-content">
<div class="settings-row">
<div class="row-action"><input id="continuousPlaylist-checkbox" onchange="toggleContinuousPlaylist(this);" type="checkbox" /></div>
<div class="row-name">
<div class="row-text">Continuous Playlist</div>
<div class="row-desc">Allow continuous scroll through playlist items.</div>
</div>
</div>
<div class="settings-row">
<div class="row-action"><input id="retrieveEntireLibrary-checkbox" onchange="toggleRetrieveEntireLibrary(this);" type="checkbox" /></div>
<div class="row-name">
<div class="row-text">Retrieve Entire Library on Load</div>
<div class="row-desc">If ticked, entire Library will be downloaded upon connection to speed up the experience. If you are having issues with ProPresenter crashing on connection, uncheck this feature.</div>
</div>
</div>
<div class="settings-row">
<div class="row-action"><input id="forceSlides-checkbox" onchange="toggleForceSlides(this);" type="checkbox" /></div>
<div class="row-name">
<div class="row-text">Force Next/Previous Slide</div>
<div class="row-desc">If a presentation from a different location (Library/Playlist) than the previous presentation is selected remotely, ProPresenter will default to the previous presentation on next/previous slide. Check this feature to force
progression using the remotely-selected presentation.</div>
</div>
</div>
<div style="display: none;" class="settings-row">
<div class="row-action"><input id="followProPresenter-checkbox" onchange="toggleFollowProPresenter(this);" type="checkbox" /></div>
<div class="row-name">
<div class="row-text">Follow ProPresenter Presentation</div>
<div class="row-desc">By default, presentations will be automatically changed to follow along with ProPresenter. Uncheck this feature to ignore presentation changes in ProPresenter.</div>
</div>
</div>
<div style="display: none;" class="settings-row">
<div class="row-action"><input id="advancedLiveDisplay-checkbox" onchange="toggleAdvancedLiveDisplay(this);" type="checkbox" /></div>
<div class="row-name">
<div class="row-text">Enable Advanced Live Display</div>
<div class="row-desc">By default, the live display only displays a static image representing the presentation. Check this feature to utilise ProPresenter's network Stage Display protocol to show a current stream of the live slide as the live display.</div>
</div>
</div>
<div class="settings-row">
<div class="row-action"><input id="useCookies-checkbox" onchange="toggleUseCookies(this);" type="checkbox" /></div>
<div class="row-name">
<div class="row-text">Save Browser Cookies</div>
<div class="row-desc">If ticked, browser cookies will be saved to retain user preferences between sessions. If you do not want to retain user preferences, uncheck this feature.</div>
</div>
</div>
<div class="settings-separator"></div>
<div class="settings-row">
<div class="row-name">
<div class="row-text">About ProWebRemote</div>
<div class="row-desc">Ver 1.2 | by Luke Bradtke<br><br>ProWebRemote is a web-based ProPresenter remote access tool that allows for simple control of ProPresenter from anywhere on the network.</div>
</div>
</div>
</div>
<div class="options-footer">
<a onclick="window.location.reload();">
<div class="option-button">Restart ProWebRemote</div>
</a>
</div>
</div>
</div>
<div class="footer">
<div id="status">
<div class="connected sub-status">
<div class="text">Connected <i class="fas fa-check-circle"></i></div>
</div>
<div class="disconnected sub-status">
<div class="text">Connecting</div>
</div>
<div class="downloading-library sub-status">
<div class="text">Downloading Library Data</div>
</div>
<div class="downloading-playlist sub-status">
<div class="text">Downloading Playlist Data</div>
</div>
<div class="downloading-audio sub-status">
<div class="text">Downloading Audio Data</div>
</div>
<div class="loader">
<div class="lds-spinner">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</body>