-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (43 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" media="mediatype and|not|only (expressions)" href="mediaquery.css" />
<link rel="stylesheet" href="../bootstrap-4.5.0-dist/./css/./bootstrap.css" />
<link rel="stylesheet" href="../fontawesome-free-5.13.0-web/./css/./fontawesome.min.css" />
<link rel="stylesheet" href="../fontawesome-free-5.13.0-web/./css/./fontawesome.css" />
<!--Website Developed by Panashe Banhire-->
<title>Chat Room</title>
</head>
<body>
<form name="message" action="">
<input name="usermsg" type="text" id="usermsg" size="63" />
<input name="submitmsg" type="submit" id="submitmsg" value="Send" />
</form>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript">
//when the user clicks the button with the id submitmsg, the input is taken
$("#submitmsg").click(function() {
var clientmsg = $("#usermsg").val();
//after the input's value is taken, it's sent to a script called
//pst.php
$.post("post.php", {
text: clientmsg,
});
//after the message is sent, the input's value is set to null
//to allow the user to type a new message
$("#usermsg").attr("value", "");
return false;
});
</script>
<script src=" https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js "></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js "></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js "></script>
<script src="../fontawesome-free-5.13.0-web/./js/./all.min.js"></script>
<script src="../JQuery/jquery-3.5.1.js"></script>
<script src="../JQuery/jquery-3.5.1.min.js"></script>
<script src="../JQuery/jquery-3.5.1.min.map"></script>
</body>
</html>