-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (105 loc) · 5.08 KB
/
index.html
File metadata and controls
111 lines (105 loc) · 5.08 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
<!--
*******************************************************
* Copyright SAMMI Solutions 2023
*
* SAMMI Panel and the following code can not be copied and/or distributed without the express
* permission from SAMMI Solutions and is protected under a restrictive, non-permissive
* proprietary license. Please see https://docs.google.com/document/d/1RPshxpFFLUzoIswFaHhq7q4Cq4eqXfGfeN4_tGy1OHE for the EULA.
*******************************************************
-->
<!DOCTYPE html>
<html>
<head>
<!-- https redirect script -->
<script>
(function () {
if (window.location.protocol === 'https:') {
const tries = sessionStorage.getItem('redirectTries') || 0;
if (tries > 0) {
const message = 'SAMMI Panel must be accessed via HTTP unless SAMMI is running on the same device. Please disable forced HTTP in your browser and try again.';
window.alert(message);
return;
}
const confirmMessage = 'SAMMI Panel must be accessed via HTTP unless SAMMI is running on the same device. Click "Ok" to continue with HTTP.';
if (confirm(confirmMessage)) {
sessionStorage.setItem('redirectTries', tries + 1);
window.location.href = window.location.href.replace('https:', 'http:');
}
} else {
sessionStorage.removeItem('redirectTries');
}
}());
</script>
<link rel="stylesheet" type="text/css" href="panel.css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>SAMMI Panel</title>
<script src="panel.js"></script>
</head>
<body style="overflow:hidden">
<div id="popupAgreement" style="display: none;">
<div id="popupAgreementContent">
<h2>Agreement</h2>
<p>
<p>Please read the following agreement before using this website:</p>
<p>*******************************************************</p>
<p>Copyright SAMMI Solutions 2023 SAMMI Panel and the following code can not be copied and/or distributed without the express permission from SAMMI Solutions and is protected under a restrictive, non-permissive proprietary license. Please see <a id="EULA" onclick="goToAgreementPage()">HERE</a> for the EULA. </p>
<p>*******************************************************</p>
</p>
<label><input type="checkbox" id="agreeCheckbox">I Agree</label>
<button id="agreeButton" disabled onclick="agreementAgreed()">Continue</button>
</div>
</div>
<div id="welcomeScreen">
<div class="inputPair">
<label for="panelNicknameInput">Panel Name:</label>
<input type="text" id="panelNicknameInput">
</div>
<div class="inputPair">
<label for="ipInput" title="Default: 127.0.0.1"> IP:</label>
<input type="text" id="ipInput" value="127.0.0.1" style="width: 105px">
</div>
<div class="inputPair">
<label for="portInput" title="Default: 9470"> Port:</label>
<input type="text" id="portInput" value="9470" maxlength="5" style="width: 50px" readonly onclick="warnUserAboutPort()">
</div>
<div class="break"></div>
<div class="break"></div>
<div class="inputPair">
<label for="passwordInput">Password:</label>
<input type="password" id="passwordInput">
</div>
<div class="break"></div>
<div class="inputPair">
<label for="autoConnectCheckbox" id="autoConnectLabel">Auto-Connect:</label>
<input type="checkbox" id="autoConnectCheckbox" class="checkbox" onclick="autoConnectCheckbox()">
</div>
<div class="inputPair">
<label for="keepAwakeCheckbox" id="keepAwakeLabel" style="display:none">Keep Awake:</label>
<input type="checkbox" id="keepAwakeCheckbox" class="checkbox" style="display:none" onclick="keepAwakeCheckboxClicked()">
</div>
<div class="break" style="height:0.5em"></div>
<div class="inputPair">
<button id="connectButton" onclick="connectToSammi()">Connect</button>
<button id="disconnectButton" disabled onclick="disconnectUI()">Disconnect</button>
</div>
<div id="status" >Not Connected</div>
<div class="break" style="height: 1em;"></div>
<div style="display:flex">
<div id="connected-options" style="display: none;" class="inputPair">
<select id="deckListSelect" style="padding-right: 10px;"></select>
<button id="selectDeckButton" class="welcomeScreenButtons" onclick=" selectDeckButtonClicked()">Select Deck</button>
</div>
</div>
<div style="float: right; margin-right: 10px; margin-top: 5px; display:none;" id = "fullscreenCheckboxDiv">
<label for="fullscreenCheckbox">Fullscreen: </label>
<input type="checkbox" class="checkbox" id="fullscreenCheckbox">
</div>
<div class="break"></div>
</div>
<div id="deckArea" style="display: none;">
<div class="deck" id="deckName"></div>
<div class="deck" id="deckBackground"></div>
<div class="deck" id="deckButtons"></div>
</div>
</body>
</html>