-
Notifications
You must be signed in to change notification settings - Fork 2
/
chat.php
62 lines (56 loc) · 2.49 KB
/
chat.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
<?php
if(!isset($_SESSION)) session_start();
?>
<?php include("header.php") ?>
<!-- Session ID !-->
<input id="username" type="hidden" value="<?= $_SESSION['name'] ?>">
<!-- Side menu -->
<div id="menu" class="d-flex flex-column flex-shrink-0 text-white bg-dark hide-nav-menu">
<div class="generic-menu-wrapper">
<div class="generic-wrapper border-bottom border-white p-3 text-center">
<span class="fs-4">Menu</span>
</div>
<div class="d-flex flex-column mt-3 h-100">
<div class="mt-3">
<button id="chat-link-nav-anchor" tabindex="-1" class="w-100 btn btn-primary">Chat</button>
</div>
<div class="mt-3">
<button id="github-link-nav-anchor" tabindex="-1" class="w-100 btn btn-primary">GitHub</button>
</div>
<div class="mt-3">
<button id="logout-link-nav-anchor" tabindex="-1" class="w-100 btn btn-danger">Sair</button>
</div>
<span class="mt-auto text-center text-white">Bem-vindo <?= $_SESSION['name'] ?></span>
</div>
</div>
</div>
<!-- Container chatbox -->
<div class="right-side w-100 h-100">
<div class="generic-wrapper p-4 h-100 w-100 d-flex">
<div class="chat-container w-100 h-100 d-flex flex-column">
<div class="chat-title d-flex justify-content-center">
<!-- Button open menu -->
<div id="wrapper-btn-menu">
<button id="btn-menu" tabindex="1" class="btn-menu btn">
<span class="fa fa-bars"></span>
</button>
</div>
<div class="wrapper-chat-title">
<span>Chat livre e sem censura</span>
</div>
</div>
<div id="chat-box" tabindex="4" class="d-flex flex-column h-100 text-white">
</div>
<div id="scroll-link-nav-anchor" tabindex="6" class="scroll-to-bottom-wrapper" title="Ir para as últimas mensagens" aria-label="Ir para as últimas mensagens">
<i class="fa fa-arrow-down"></i>
</div>
<div class="chat-message-input d-flex mt-3">
<input type="text" class="form-control" tabindex="5" placeholder="Enter para enviar" id="send-message-btn">
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="../public/js/common.js"></script>
<script src="../public/js/chat.js"></script>
<?php include("footer.php") ?>