-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
59 lines (54 loc) · 2.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Real time chat application</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<style>
p.lead, h3{
text-transform: uppercase;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-7">
<h3 class="text-center">simple real time chat application</h3>
<div class="text-center">
<a href="#bottom" class="btn btn-default">add messages</a>
</div>
<hr/>
<ul id="chat-messages" class="list-group" style="border: 3px solid black">
</ul>
<div>
<h3 class="text-center">add message</h3>
<hr/>
<form method="post" name="contactForm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" id="name" required placeholder="Enter name">
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea type="message" class="form-control" id="message" required placeholder="Enter Message"></textarea>
</div>
<button type="submit" class="btn btn-primary send">send</button>
</form>
</div>
</div>
</div>
</div>
<div id="bottom"></div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) and Bootstrap -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- Include Firebase Library and Config-->
<script src="https://www.gstatic.com/firebasejs/5.8.0/firebase.js"></script>
<!-- chat-messages Store JavaScript -->
<script src="firebase.js"></script>
</body>
</html>