-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
190 lines (173 loc) · 9.98 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ATEM Tally Lite</title>
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag -->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap-grid.min.css" />
<link rel="stylesheet" href="./node_modules/bootstrap-icons/font/bootstrap-icons.css" />
<link rel="stylesheet" href="./content/css/style.min.css" />
</head>
<body>
<nav class="navbar navbar-expand fixed-top navbar-dark justify-content-between">
<span class="navbar-brand" id="navBrand">ATEM Tally Lite</span>
<button class="navbar-toggler collapsed" id="navbarMainToggler" type="button" data-toggle="collapse" data-target="#navbarMain" aria-controls="navbarMain" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarMain">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#" id="navTally">Status</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="navWeb">Web</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="navDevices">Devices</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="navSettings">Settings</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="navAbout">About</a>
</li>
</ul>
</div>
</nav>
<div class="viewport-frame">
<div id="viewTally" class="view">
<div id="viewTallyError">
</div>
<div id="viewTallyRenderer">
</div>
</div>
<div id="viewSettings" class="view">
<div class="container">
<h1 class="viewTitle">Settings</h1>
<div class="form-group ">
<label for="deviceSelection" class="navbar-text">ATEM Device</label>
<select class="form-control" id="inputDeviceSelection">
<option vaule="">Select device</option>
</select>
<input type="text" id="inputManualIpaddress" class="form-control" placeholder="Enter an IP address (e.g. 10.0.0.1)">
</div>
<div id="connectionStatus" class="navbar-text">Status: <span id="connectionStatusLabel">Not connected</span></div>
<div>
<button class="btn btn-success" id="btnConnectDevice">Connect</button>
<button class="btn btn-danger" id="btnDisconnectDevice">Disconnect</button>
<button class="btn btn-primary" id="btnRescanNetwork">
Rescan Local Network
</button>
</div>
<div class="form-check form-switch">
<input type="checkbox" class="form-check-input" role="switch" id="optionShowStreamStatus">
<label class="form-check-label" for="optionShowStreamStatus">Include Stream Status</label>
</div>
<div class="form-group">
<label for="inputCameraSelection" class="navbar-text">Tally</label>
<select class="form-control" id="inputCameraSelection" disabled="disabled">
<option value="0">No cameras detected</option>
</select>
</div>
<div class="form-group">
<button class="btn btn-secondary" id="btnGoToTally">Go to Tally</button>
</div>
<div class="row">
<div class="form-group col-sm">
<label for="btnProgramColor" class="navbar-text">Program Color</label>
<input type="color" id="btnProgramColor" class="form-control" value="#FF0000">
</div>
<div class="form-group col-sm">
<label for="btnPreviewColor" class="navbar-text">Preview Color</label>
<input type="color" id="btnPreviewColor" class="form-control" value="#00FF00">
</div>
</div>
<div class="form-group">
<label for="portSelection" class="navbar-text">Web Client Interface</label>
<select class="form-control" id="portSelection">
</select>
</div>
<div class="form-group">
<label class="navbar-text">Data Sharing</label>
<div class="form-check form-switch">
<input type="checkbox" class="form-check-input" id="optionTelemetrySwitch">
<label class="form-check-label" for="optionTelemetrySwitch">Share usage data</label>
<p>This shares basic information about your usage to help us improve this tool. Your usage data is not used to uniquely identify you.</p>
</div>
<div class="form-check form-switch">
<input type="checkbox" class="form-check-input" id="optionAdvancedTelemetrySwitch">
<label class="form-check-label" for="optionAdvancedTelemetrySwitch">Share detailed usage data</label>
<p>
This shares detailed data about your usage of this tool. The data collected may contain personally identifiable information such as the ATEM device name, camera labels, and network configurations. Ref:
<span id="telemetryIdentifier"></span>
</p>
</div>
</div>
</div>
</div>
<div id="viewWeb" class="view">
<div class="container">
<h1 class="viewTitle">Web View</h1>
<p>Scan the QR code below to view tally status on any browser</p>
<div id="qrcodeRegion"></div>
</div>
</div>
<div id="viewDevices" class="view">
<div class="container">
<h1 class="viewTitle">Devices</h1>
<button id="btnAddDeviceModal" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalAddDevice">
Add Device
</button>
<div id="deviceList">
</div>
<!-- Modal -->
<div class="modal fade" id="modalAddDevice" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="modalAddDeviceBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content needs-validation" id="modalAddDeviceForm">
<div class="modal-header">
<h1 class="modal-title fs-5" id="modalAddDeviceBackdropLabel">Add Devices</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="modalAddDeviceContent">
<div id="modalAddDeviceDiscovered"></div>
<div id="modalAddDeviceManual"></div>
</div>
<div class="modal-footer">
<button type="button" id="modalAddDeviceSubmit" class="btn btn-primary">Add</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="viewAbout" class="view">
<div class="container">
<h1 class="viewTitle">About</h1>
<p id="appVersion"></p>
<p>
© 2023 Design Shift Consulting<br>
<a href="https://designshift.ca/apps/atem-tally/">designshift.ca</a>
</p>
<p>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
</p>
<p>
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
</p>
<p>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</p>
</div>
</div>
</div>
<script src="./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="./node_modules/jquery/dist/jquery.min.js"></script>
<script src="./node_modules/qrcode/build/qrcode.js"></script>
<script src="./content/js/mainUI.js" type="module"></script>
</body>
</html>