summaryrefslogtreecommitdiff
path: root/kvmd/web/index.html
blob: 094aa5616d12b95982b6b63136d8fa0255f55635 (plain)
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
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>&pi;-kvm</title>
	<link rel="stylesheet" href="css/main.css">
</head>

<script src="js/tools.js"></script>
<script src="js/stream.js"></script>
<script src="js/atx.js"></script>
<script src="js/keyboard.js"></script>
<script src="js/mouse.js"></script>
<script src="js/hid.js"></script>
<script src="js/msd.js"></script>
<script src="js/session.js"></script>
<script src="js/main.js"></script>

<script>window.onload = main;</script>

<body>
	<ul id="ctl">
		<li class="ctl-left"><img id="logo" src="svg/logo.svg" alt="&pi;-kvm" /></li>

		<li class="ctl-right-sep">
			<div class="ctl-dropdown">
				<a class="ctl-item" href="#">
					<img id="stream-led" class="led-off" src="svg/stream-led.svg" />
					<img id="hid-keyboard-led" class="led-off" src="svg/hid-keyboard-led.svg" />
					<img id="hid-mouse-led" class="led-off" src="svg/hid-mouse-led.svg" />
					System &#8628;
				</a>
				<div class="ctl-dropdown-content">
					<button disabled id="stream-reset-button" onclick="stream.clickResetButton();">&bull; Reset stream</button>
				</div>
			</div>
		</li>

		<li class="ctl-right-sep">
			<div class="ctl-dropdown">
				<a class="ctl-item" href="#">
					<img id="atx-power-led" class="led-off" src="svg/atx-power-led.svg" />
					<img id="atx-hdd-led" class="led-off" src="svg/atx-hdd-led.svg" />
					ATX &#8628;
				</a>
				<div class="ctl-dropdown-content">
					<button disabled id="atx-power-button" onclick="atx.clickButton(this);">&bull; Click Power <sup><i>short</i></sup></button>
					<button disabled id="atx-power-button-long" onclick="atx.clickButton(this);">&bull; Click Power <sup><i>long</i></sup></button>
					<hr>
					<button disabled id="atx-reset-button" onclick="atx.clickButton(this);">&bull; Click Reset</button>
				</div>
			</div>
		</li>

		<li class="ctl-right-sep">
			<div class="ctl-dropdown">
				<a class="ctl-item" href="#">
					<img id="msd-led" class="led-off" src="svg/msd-led.svg" />
					Mass Storage &#8628;
				</a>
				<div class="ctl-dropdown-content">
					<div id="msd-not-in-operate" style="display:none">
						<div class="ctl-dropdown-content-text">
							<table>
								<tr>
									<td><img src="svg/warning.svg" /></td>
									<td><b>Mass Storage Device is not operational</b></td>
								</tr>
							</table>
						</div>
						<hr>
					</div>

					<div id="msd-current-image-broken" style="display:none">
						<div class="ctl-dropdown-content-text">
							<table>
								<tr>
									<td><img src="svg/warning.svg" /></td>
									<td><b>Current image is broken!</b><br><sub>Perhaps uploading was interrupted</sub></td>
								</tr>
							</table>
						</div>
						<hr>
					</div>

					<div id="msd-another-another-user-uploads" style="display:none">
						<div class="ctl-dropdown-content-text">
							<table>
								<tr>
									<td><img src="svg/info.svg" /></td>
									<td><b>Another user uploads an image</b></td>
								</tr>
							</table>
						</div>
						<hr>
					</div>

					<table id="msd-info">
						<tr>
							<td>Status: </td>
							<td id="msd-status"></td>
						</tr>
					</table>
					<hr>

					<table id="msd-info">
						<tr>
							<td>Image name:</td>
							<td id="msd-current-image-name"></td>
						</tr>
						<tr>
							<td>Image size:</td>
							<td id="msd-current-image-size"></td>
						</tr>
							<td>Storage size:</td>
							<td id="msd-storage-size"></td>
						</tr>
					</table>
					<hr>

					<input type="file" id="msd-select-new-image-file" style="display:none;" onchange="msd.selectNewImageFile(this)" />
					<button disabled id="msd-select-new-image-button" class="first" onclick="document.getElementById('msd-select-new-image-file').click();">&bull; Upload new image &#8680;</button><button disabled id="msd-upload-new-image-button" class="second-half-first" onclick="msd.clickButton(this);">&bull; Start</button><button disabled id="msd-abort-uploading-button" class="second-half-second" onclick="msd.clickButton(this);">&bull; Abort</button>
					<hr>

					<div id="msd-new-image" style="display:none">
						<table id="msd-info">
							<tr>
								<td>Image name:</td>
								<td id="msd-new-image-name"></td>
							</tr>
							<tr>
								<td>Upload size:</td>
								<td id="msd-new-image-size"></td>
							</tr>
						</table>
						<hr>
						<div class="ctl-dropdown-content-text">
							<div id="msd-progress">
								<span id="msd-progress-value"></span>
							</div>
						</div>
						<hr>
					</div>

					<button disabled id="msd-switch-to-kvm-button" class="first-bottom" onclick="msd.clickButton(this);">&bull; Switch drive to KVM</button><button disabled id="msd-switch-to-server-button" class="second-bottom" onclick="msd.clickButton(this);">&bull; Switch drive to Server</button>
				</div>
			</div>
		</li>
	</ul>

	<div class="centered">
		<div id="stream-box">
			<img src="/streamer/?action=stream" id="stream-image" class="stream-image-inactive" alt="Loading..." />
		</div>
	</div>
</body>
</html>