forked from nodeGame/ultimatum-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
executable file
·51 lines (48 loc) · 1.51 KB
/
index.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
47
48
49
50
51
<!doctype html>
<title>Ultimatum</title>
<!-- Loading nodeGame libraries and CSS -->
<script src="/socket.io/socket.io.js"></script>
<script src="/javascripts/nodegame-full.js" charset="utf-8"></script>
<link rel='stylesheet' href='/stylesheets/fullheight.css'></link>
<link rel='stylesheet' href='/stylesheets/noscript.css'></link>
<!-- end -->
<body>
<noscript>
Sorry, you need to enable javascript in order to play this game.
</noscript>
<p id="waitingForPlayers">Welcome to the game! Please be patient while waiting for enough players to connect.</p>
<!-- <iframe id="mainframe" name="mainframe"></iframe> -->
<script>
window.onload = function () {
// Configuring nodegame.
node.setup('nodegame', {
// HOST needs to be specified only
// if this file is located in another server
// host: http://myserver.com,
verbosity: 0,
window: {
promptOnleave: false,
noEscape: true // Defaults TRUE
},
env: {
auto: false,
debug: false
},
player: {
name: "NodeGame Player", // will be overwritten by the server
id: "nodegame player id" // will be overwritten by the server
},
events: {
dumpEvents: false, // output to console all fired events
history: false // keep a record of all fired events
},
socket: {
type: 'SocketIo', // for remote connections
reconnect: false
}
});
// Connecting to waiting room.
node.connect("/ultimatum");
}
</script>
</body>