-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (38 loc) · 1.19 KB
/
Copy pathindex.html
File metadata and controls
43 lines (38 loc) · 1.19 KB
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
<!doctype html>
<html>
<head>
<title>Firebase Chat Project</title>
<link rel="stylesheet" href="chat-room.css">
<script src='lib/x-tag-components.min.js' async></script>
<script src='lib/firebase.js' async></script>
<script src="src/chat-log.js" async></script>
<script src="src/chat-form.js" async></script>
<script src="src/chat-room.js" async></script>
<style>
/* This is just styling for this demo page */
body {
background: black;
}
chat-room {
position: fixed;
top: 25px;
bottom: 25px;
width: 50%;
min-width: 350px;
background: #222;
/* This center the chat room in the page. left: 50% aligns the left edge
/* of the chat room with the halfway point of the window, and
/* translate(-50%) shifts the chat room left by half its own width,
/* centering it. */
left: 50%;
transform: translate(-50%);
color: white;
}
</style>
</head>
<body>
<!-- Want to try connecting to a different DB? Try mine: https://glaring-inferno-9508.firebaseio.com/ -->
<chat-room db="" id="room">
</chat-room>
</body>
</html>