-
Notifications
You must be signed in to change notification settings - Fork 0
/
phone.html
42 lines (28 loc) · 883 Bytes
/
phone.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
<!doctype html>
<head>
<title>Screens</title>
<style>
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="/socket.io/socket.io.js"></script>
</head>
<body>
<div id="content"></div>
<script>
var master_phone_message;
var phone_output;
//initialise the socket connection
var socket = io();
//get instructions from the master
socket.on('master data phone action', function(msgb){
//create a variable for the message
master_phone_message = msgb;
console.log("the master said: " + master_phone_message);
document.getElementById('content').innerHTML = master_phone_message;
});
//send out any phone data to anywhere
// socket.emit('phone data in', phone_output);
// console.log("the phone is sending out: " + phone_output);
</script>
</body>
</html>