This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (59 loc) · 1.75 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
<!doctype html>
<html>
<head>
<title>Raspi Control</title>
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
<link type="text/css" href="public/style.css" rel="stylesheet"></link>
<meta name="theme-color" content="#888888" id="themecolor">
<meta name="mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script>
var socket = io();
function shutdown() {
socket.emit('shutdown', 'shutdown');
return false;
}
function restart() {
socket.emit('restart', 'restart');
return false;
}
function hdmion() {
socket.emit('hdmion', 'hdmion');
return false;
}
function hdmioff() {
socket.emit('hdmioff', 'hdmioff');
return false;
}
function lightdm() {
socket.emit('lightdm', 'lightdm');
return false;
}
</script>
</head>
<body>
<div id="switches">
<div class="button" onclick="shutdown()">
<img src="public/open-iconic/svg/power-standby.svg" width="20">
<span class="label">Shutdown</span>
</div>
<div class="button" onclick="restart()">
<img src="public/open-iconic/svg/reload.svg" width="20">
<span class="label">Restart</span>
</div>
<div class="button" onclick="hdmion()">
<img src="public/open-iconic/svg/circle-check.svg" width="20">
<span class="label">HDMI On</span>
</div>
<div class="button" onclick="hdmioff()">
<img src="public/open-iconic/svg/circle-x.svg" width="20">
<span class="label">HDMI Off</span>
</div>
<div class="button" onclick="lightdm()">
<img src="public/open-iconic/svg/lightbulb.svg" width="20">
<span class="label">Restart LightDM</span>
</div>
</div>
</body>
</html>