-
Notifications
You must be signed in to change notification settings - Fork 80
/
index.php
62 lines (56 loc) · 1.87 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
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chat GPT</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- History feature
<div class="sidebar">
<p class="tablink sidebar-header">Create Chat</h2>
<button class="tablink" onclick="openTab(event, 'tab1')">Lorem ipsum</button>
<button class="tablink" onclick="openTab(event, 'tab2')">Dolor sit amet</button>
</div>
-->
<section class="msger">
<header class="msger-header">
<div class="msger-header-title">
<i class="fas fa-comment-alt"></i> ChatGPT
| ID: <input type="text" id="id" hidden> <span class="id_session"></span>
</div>
<div class="msger-header-options">
<button id="delete-button">Delete History</button>
</div>
</header>
<main class="msger-chat">
</main>
<form class="msger-inputarea">
<input class="msger-input" placeholder="Enter your message..." require>
<button type="submit" class="msger-send-btn">Send</button>
</form>
</section>
<script src='https://use.fontawesome.com/releases/v5.0.13/js/all.js'></script>
<script src="./script.js"></script>
<!-- History feature
<script>
function openTab(evt, tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(tabName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>
-->
</body>
</html>