-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
61 lines (61 loc) · 1.89 KB
/
index.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
<?php
require_once __DIR__ . "/config.php";
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?= SITE_TITLE ?></title>
<meta name="description" content="<?= SITE_DESC ?>">
<link rel="stylesheet" href="css/chat.css?v=<?= CSS_VERSION ?>">
<script src="js/library/showdown@1.9.0.js"></script>
<link rel="icon" href="favicon.png">
<script>
let chat_id = new Date().getTime();
</script>
</head>
<body>
<div class="container">
<div id="all_dialogs"></div>
<div id="settings"></div>
<div class="conversations">
<div class="jsClose"></div>
<div class="history">
<div id="new_chat">New Chat</div>
<div id="delete_history">
Delete:
<label class="switch">
<input id="can_delete" type="checkbox">
<span class="slider round"></span>
</label>
</div>
</div>
</div>
<div class="chat">
<div id="chat-messages">
<?php
if(WELCOME_PHRASES){
foreach (WELCOME_PHRASES as $phrase){
echo "<div class=\"message start_msg\">$phrase</div>";
}
}
?>
</div>
<div id="loading">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="chat-input">
<div class="chat_wrap">
<label><textarea maxlength="380" placeholder="Let's talk"></textarea></label>
<button>Send</button>
</div>
</div>
</div>
</div>
<script async="async" src="js/script.js?v=<?= JS_VERSION ?>"></script>
</body>
</html>