-
Notifications
You must be signed in to change notification settings - Fork 1
/
mismatch_messages.php
68 lines (59 loc) · 1.72 KB
/
mismatch_messages.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
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<title>Mismatch-Where opposites Attract</title>
<link href="mismatch_messages.css" rel="stylesheet">
</head>
<body>
<?php
require_once('mismatch_homepage_header.php');
?>
<script src="cookie_check_logout.js"></script>
<?php
if(!isset($_COOKIE['user_id']))
{
?>
<img id="guyprop" src="guy-proposing2.jpg"></img>
<?php
}
?>
<div id="modal" >
<span onclick="document.getElementById('modal').style.display='none'" class="close" title="Close Modal">×</span>
<form class="modal-content animate" method="POST" >
<div class="data">
<label><b>Username</b></label>
<input type="text" onfocus="borderBlue(this)" onblur="borderRed(this)" id="username" placeholder="Enter Username" name="uname" required>
<label><b>Password</b></label>
<input type="password" onfocus="borderBlue(this)" onblur="borderRed(this)" id="password" placeholder="Enter Password" name="psw" required>
<input id="login-button" onclick="checkLogin()" type="button" value="Login"></input>
</div>
<div id="canbtn">
<input id="cancel-button" type="button" onclick="document.getElementById('modal').style.display='none'" value="Cancel"></input>
</div>
</form>
</div>
<script src="login.js"></script>
<?php
if(isset($_COOKIE['user_id']))
{
?>
<div id="mismatch_messages_leftbar">
<?php
require_once('mismatch_messages_leftbar.php');
?>
</div>
<div id="mismatch_messages_chat_box">
<?php
require_once('mismatch_chat.php');
?>
</div>
<script>
var chatWindow = document.querySelector('#mismatch_message_container');
chatWindow.scrollTop = chatWindow.scrollHeight;
console.log("ye to fdskb");
</script>
<?php
}
?>
</body>
</html>