-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·96 lines (89 loc) · 4.25 KB
/
index.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<html>
<head>
<meta charset="UTF-8">
<script
src="https://code.jquery.com/jquery-3.1.1.slim.min.js"
integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/main.css">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<script language="javascript" type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//cdn.jsdelivr.net/phaser/2.5.0/phaser.min.js"></script>
<script language="javascript" type="text/javascript" src="js/player.js"></script>
<script language="javascript" type="text/javascript" src="js/mo.js"></script>
<script language="javascript" type="text/javascript" src="js/healthbar.js"></script>
<script language="javascript" type="text/javascript" src="js/sketch.js"></script>
<script language="javascript" type="text/javascript" src="js/firebase.js"></script>
<script language="javascript" type="text/javascript" src="js/shake.js"></script>
<script language="javascript" type="text/javascript" src="socket.io-1.4.5.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.6.9/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyC39A7uIGfn9AAry_GPBBPIxTZBuo9615k",
authDomain: "war-of-the-old-ones.firebaseapp.com",
databaseURL: "https://war-of-the-old-ones.firebaseio.com",
storageBucket: "war-of-the-old-ones.appspot.com",
messagingSenderId: "195099341416"
};
firebase.initializeApp(config);
</script>
<style> body {padding: 0; margin: 0;} </style>
</head>
<body>
<!-- Modal Register-->
<div class="modal fade" id="modalRegister" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static">
<div class="modal-dialog" role="document">
<div class="modal-content">
<img class="logo" src="https://firebasestorage.googleapis.com/v0/b/polancomco.appspot.com/o/public%2Fwar-of-the-old-ones-logo.jpg?alt=media&token=9ea24bc4-eeaf-4c17-982c-55260e32db2c" alt="">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Register</h4>
</div>
<div class="modal-body">
<form>
<input type="playersName" placeholder="Nickname" name="playersName" id="register-nickname" required>
<br><br>
<input type="email" name="email" placeholder="E-mail" id="register-email" required>
<br><br>
<input type="password" name="password" placeholder="Password" id="register-password" required>
</form>
</div>
<div class="padding small-txt">
Already have an account? <a onclick="openLogin()">Login</a>
</div>
<div id="errors-register"></div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="registerUser()">PLAY</button>
</div>
</div>
</div>
</div>
<!-- Modal Login-->
<div class="modal fade" id="modalLogin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static">
<div class="modal-dialog" role="document">
<img class="logo" src="https://firebasestorage.googleapis.com/v0/b/polancomco.appspot.com/o/public%2Fwar-of-the-old-ones-logo.jpg?alt=media&token=9ea24bc4-eeaf-4c17-982c-55260e32db2c" alt="">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Login</h4>
</div>
<div class="modal-body">
<form>
<input type="email" name="email" placeholder="E-mail" id="login-email" required>
<br><br>
<input type="password" name="password" placeholder="Password" id="login-password" required>
</form>
</div>
<div class="padding small-txt">
Don't have an account? <a onclick="openRegister()">Register</a>
</div>
<div id="errors-login"></div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="loginUser()">PLAY</button>
</div>
</div>
</div>
</div>
<script language="javascript" type="text/javascript" src="js/firebase.js"></script>
</body>
</html>