-
Notifications
You must be signed in to change notification settings - Fork 3
/
lobby.html
44 lines (39 loc) · 1.78 KB
/
lobby.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
<!doctype html>
<html lang="en">
<head>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet'>
<link type="text/css" rel="stylesheet" href="bower_components/materialize/dist/css/materialize.min.css" media="screen,projection"/>
<title>Lobby</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="js/locale_russian.js"></script>
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="bower_components/app-localize-behavior/app-localize-behavior.html">
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="polymer_components/lobby-team-info.html">
<script type="text/javascript" src="bower_components/reconnectingWebsocket/reconnecting-websocket.min.js"></script>
<script src="js/socketsconfig.js"></script>
<script src="js/network.js"></script>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="bower_components/materialize/dist/js/materialize.min.js"></script>
</head>
<script>
document.addEventListener("DOMContentLoaded", function() {
document.getElementById("joinTitle").innerHTML = Res.inviteLine1 + " <span style=\"color: red\">" + urlToJoinGame + "</span> " + Res.inviteLine3;
});
$(window).keypress(function (e) {
if (e.keyCode === 0 || e.keyCode === 32) {
e.preventDefault()
window.location.href = 'game.html';
}
_socket.sendJson({
type: 'gameState',
state: 0,
});
})
</script>
<body>
<h3 id="joinTitle" style="font: 22px 'Roboto'; text-align: center"></h3>
<lobby-team-info />
</body>
</html>