This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathchat.html
54 lines (37 loc) · 1.55 KB
/
chat.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
<!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">
<head>
<title>Chat - Customer Module</title>
<link type="text/css" rel="stylesheet" href="css/chat-style.css" />
</head>
<div id="wrapper">
<div id="menu">
<p class="welcome">Welcome, <b></b></p>
<p class="logout"><a id="exit" href="groupProfile.html">Exit Chat</a></p>
<div style="clear:both"></div>
</div>
<div id="chatbox">
<p>Jack : 10:00 : Welcome to the chat group</p>
<p>Neel: 10:15 :Thank you. I'm stuggling with Inheretence and thought I could use some help</p>
</div>
<form name="message" action="">
<input name="usermsg" type="text" id="usermsg" size="63" />
<input name="submitmsg" type="submit" id="submitmsg" value="Send" />
</form>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript">
$("#submitmsg").click(function(){
var dt = new Date();
var time = dt.getHours() + ":" + dt.getMinutes() + ":";
var clientmsg = $("#usermsg").val();
var newLine = "<div class='msgln'> Me: " +time + clientmsg + "</div>"
$("#chatbox").append(newLine);
$("#usermsg").attr("value", "");
return false;
});
$(document).ready(function(){
});
</script>
</body>
</html>