-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.html
More file actions
25 lines (24 loc) · 788 Bytes
/
client.html
File metadata and controls
25 lines (24 loc) · 788 Bytes
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
<!DOCTYPE html>
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script src="https://code.jquery.com/jquery.js"></script>
<script type="text/javascript">
var socket = io.connect();
socket.on('sensor', function (data) {
$("pre#output").append(JSON.stringify(data)+"\n");
});
</script>
</head>
<body>
<pre> _____ _____ ____ ____ _____ _ ______
/ ____| __ \ / __ \ / __ \ / ____| | | ____|
| | | |__) | | | | | | | (___ | | | |__
| | | _ /| | | | | | |\___ \| | | __|
| |____| | \ \| |__| | |__| |____) | |____| |____
\_____|_| \_\\____/ \____/|_____/|______|______|
<b>sensortag data:</b></pre>
<input type="button" value="clear" onclick="$('pre#output').empty();" />
<pre id="output"></pre>
</body>
</html>