-
Notifications
You must be signed in to change notification settings - Fork 0
/
juego.html
54 lines (36 loc) · 959 Bytes
/
juego.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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<title>Device Orientation - Demo</title>
<style>
html{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
body{ padding: 0px; margin: 0px;}
</style>
</head>
<body style="width:100%; background-size:100%; background-repeat: no-repeat; ">
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
var socket = io();
var canaldatos = socket.on('data-out',function(data){
console.log(data);
});
socket.on('falta',function(data) {
// body...
console.log(data);
});
socket.on('expulsa',function(data) {
// body...
console.log(data);
});
</script>
</body>
</html>