-
Notifications
You must be signed in to change notification settings - Fork 0
/
connect-intro.php
48 lines (38 loc) · 1.25 KB
/
connect-intro.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
<?php require "includes/dashboard-header.php"; ?>
<body>
<section class="container-fluid index-wrapper">
<header class="d-flex-sb">
<a href="javascript:history.back()"><i class="bi bi-chevron-left"></i></a>
<h3>Room Mate Messages</h3>
<a href="#"><i class="bi bi-box-arrow-in-down-left chats"></i></a>
</header>
<div class="messages-wrapper">
<div class="search-wrapper">
<div class="search-box d-flex-sb">
<input type="search" placeholder="Search Messages...">
<i class="bi bi-search"></i>
</div>
<hr>
</div>
<div class="mes">
</div>
</div>
</section>
<?php require_once "includes/dashboard-footer.php"; ?>
<script>
$(document).ready(function(){
fetch_user();
setInterval(function(){
fetch_user();
}, 5000);
function fetch_user(){
$.ajax({
url:"backend/connect-intro.php",
method: "POST",
success: function(data){
$(".mes").html(data);
}
});
}
});
</script>