forked from nodeGame/ultimatum-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonitor.htm
46 lines (40 loc) · 1.23 KB
/
monitor.htm
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
<!DOCTYPE html>
<title>Monitor Screen</title>
<body>
<div id="root"></div>
<script src="/socket.io/socket.io.js"></script>
<script src="/javascripts/nodegame-full.js" charset="utf-8"></script>
<script src="./js/ChannelList.js" charset="utf-8"></script>
<script src="./js/RoomList.js" charset="utf-8"></script>
<script src="./js/ClientList.js" charset="utf-8"></script>
<script src="./js/GameList.js" charset="utf-8"></script>
<script src="./js/Monitor.js" charset="utf-8"></script>
<script src="./js/jquery-1.11.1.min.js" charset="utf-8"></script>
<script src="./js/bootstrap.js" charset="utf-8"></script>
<link rel='stylesheet' href='./html/css/bootstrap.css'></link>
<link rel='stylesheet' href='/stylesheets/monitor.css'></link>
<script>
window.onload = function() {
var game = new Monitor(node);
var conf = {
url: "/trustgame/admin",
io: {
reconnect: false
},
socket: {
type: 'SocketIo'
},
events: {
dumpEvents: true
}
};
JSUS.mixin(conf, game);
node.setup('nodegame', conf);
//node.socket.setSocketType('SocketIo');
node.connect(conf.url);
node.once('PLAYER_CREATED', function(player) {
node.game.start();
});
}
</script>
</body>