-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (91 loc) · 3.98 KB
/
index.html
File metadata and controls
101 lines (91 loc) · 3.98 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
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
97
98
99
100
101
<!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>Login</title>
<link rel="stylesheet" href="../css/Site.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="/socket.io-client/dist/socket.io.js"></script>
</head>
<body>
<!--LOGIN FORM-->
<div class="login-form">
<form action="/" method="post" id="form">
<h2 class="text-center">Hi !</h2>
<h3 class="text-center">Please login or signup</h3>
<div class="form-group">
<input type="text" class="form-control" placeholder="Username" required="required">
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password" required="required">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary btn-block" id="loginButton">Log in</button>
<button type="submit" class="btn btn-success btn-block" id="signupButton">Sign Up</button>
</div>
<div class="clearfix">
</div>
<p id="warningMsgForm"></p>
</form>
</div>
<!--CHAT BOX-->
<div class="container-fluid chatting" style="display: none;margin-top:10px;">
<!--HEADER-->
<div class="well" id="headwell">
<div style="font-size: large; margin-bottom: 10px">
Your username is: <b id="welcome"></b>
, and you're sending your messages to:
</div>
<div class="row">
<div class="col col-md-6">
<select class="form-control" id="dest">
<option>All Connected Users</option>
<option>A Group</option>
<option>A User</option>
</select>
</div>
<div class="col col-md-6" id="destuserdiv" style="display:none;">
<input id="destuser" class="form-control" placeholder="Username" />
</div>
<div class="col col-md-6" id="destgroupdiv" style="display:none;">
<div class="row">
<div class="col col-md-6">
<input id="destgroup" class="form-control" placeholder="Group Name.." />
</div>
<div class="col col-md-6">
<button id="joingroup" class="btn btn-warning">Join Group</button>
</div>
</div>
</div>
</div>
</div>
<!--BODY-->
<div class="panel panel-success" style="margin-top:-10px">
<div class="panel-heading" id="pheading">
<h3>Messages:</h3>
</div>
<div id="receivedMsgs" class="panel-body"
style="height: 300px; overflow-x: hidden; overflow-y: scroll; text-align: justify;">
</div>
</div>
<!--FOOTER-->
<div class="well" id="footwell">
<div class="row">
<div class="col col-md-9">
<input id="msginput" class="form-control" />
</div>
<div class="col col-md-3">
<button id="sendbutton" class="btn btn-primary">Send</button>
<button id="clearbutton" class="btn btn-default">Clear</button>
<a href="http://localhost:8080"><button class="btn btn-sm btn-danger">Exit</button></a>
</div>
</div>
</div>
</div>
</body>
<script src="../js/Site.js"></script>
</html>