-
Notifications
You must be signed in to change notification settings - Fork 2
/
register.html
46 lines (46 loc) · 1.97 KB
/
register.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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="register.css" />
<script src="https://www.gstatic.com/firebasejs/8.0.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.0.2/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.0.2/firebase-auth.js"></script>
<script src="auth.js" defer></script>
<script src="register.js" defer></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Creek Watchers - Register</title>
</head>
<body>
<div class="container" id="tileContainer"></div>
<div class="mainContainer">
<div class="homeBtn" id="homebtn"></div>
<div class="mainTitle">Register User</div>
<div class="mainContent" id="mainContent">
<div class="error-message"></div>
<div class="label-input-group">
<label for="username">Username:</label>
<input type="text" id="username" name="username" placeholder="Enter your username">
</div>
<div class="label-input-group">
<label for="password">Password:</label>
<input type="password" id="password" name="password" placeholder="Enter your password">
</div>
<button id="loginButton">Register</button>
</div>
</div>
<script>
const firebaseConfig = {
apiKey: "AIzaSyD1n52beNmzhLyqtv29Exw8CIEzde40LOo",
authDomain: "creekwatchers-88ce2.firebaseapp.com",
databaseURL: "https://creekwatchers-88ce2-default-rtdb.firebaseio.com",
projectId: "creekwatchers-88ce2",
storageBucket: "creekwatchers-88ce2.appspot.com",
messagingSenderId: "799020915481",
appId: "1:799020915481:web:e0ac620892635e99760388",
};
firebase.initializeApp(firebaseConfig);
const db = firebase.firestore();
</script>
</body>
</html>