-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (60 loc) · 1.4 KB
/
index.php
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="chat.js" ></script>
<style type="text/css">
body {
font-family: Tahoma, Helvetica, sans-serif;
margin: 1px;
font-size: 12px;
}
#scroll {
position: relative;
width: 375px;
height: 270px;
overflow: auto;
border-right:1px solid #000;
}
#chatBox{
position: absolute;
top: 30%;
left: 40%;
margin-top: -50px;
margin-left: -50px;
width: 100px;
height: 100px;
}
#content{
border:1px solid #000;
}
</style>
</head>
<body>
<div id="chatBox">
<table id="content">
<tr>
<td><div id="scroll"></div></td>
<td>
<div id="scroll">
<h4>List of Users participated in chat</h4>
<ul id="users" style="list-style:circle">
</ul>
</div>
</td>
</tr>
</table>
<div>
<input type="text" id="userName" maxlength="10" size="10" placeholder="Enter Username" required/>
<input type="text" id="messageBox" maxlength="2000" size="50" onkeydown="handleKey(event)"/>
<input type="button" value="Send" onclick="sendMessage();" />
</div>
</div>
<script type="text/javascript">
window.onload = function()
{
init();//This function executed when page loads
};
</script>
</body>
</html>