Create index.html
Browse files- public/index.html +56 -0
public/index.html
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="vi">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
+
<title>Hương Kid - Shop Bé Trai</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<style>
|
| 9 |
+
/* Thêm một chút CSS để bảng Trace trông ngầu hơn */
|
| 10 |
+
#debug-area {
|
| 11 |
+
margin: 10px;
|
| 12 |
+
padding: 10px;
|
| 13 |
+
background: #1e1e1e;
|
| 14 |
+
border: 1px solid #444;
|
| 15 |
+
border-radius: 8px;
|
| 16 |
+
display: none; /* Mặc định ẩn, sẽ hiện khi có dữ liệu */
|
| 17 |
+
}
|
| 18 |
+
#diagnostic-box {
|
| 19 |
+
color: #00ff00;
|
| 20 |
+
font-family: 'Courier New', monospace;
|
| 21 |
+
font-size: 11px;
|
| 22 |
+
margin: 0;
|
| 23 |
+
white-space: pre; /* Giữ nguyên định dạng khung của Đạt */
|
| 24 |
+
overflow-x: auto; /* Cho phép cuộn ngang nếu khung quá rộng */
|
| 25 |
+
line-height: 1.3;
|
| 26 |
+
}
|
| 27 |
+
.debug-title {
|
| 28 |
+
color: #ff4757;
|
| 29 |
+
font-size: 10px;
|
| 30 |
+
font-weight: bold;
|
| 31 |
+
text-transform: uppercase;
|
| 32 |
+
margin-bottom: 5px;
|
| 33 |
+
font-family: sans-serif;
|
| 34 |
+
}
|
| 35 |
+
</style>
|
| 36 |
+
</head>
|
| 37 |
+
<body>
|
| 38 |
+
<header>HƯƠNG KID - SHOP BÉ TRAI</header>
|
| 39 |
+
|
| 40 |
+
<div id="chat-box">
|
| 41 |
+
<div class="msg bot">Dạ shop Hương Kid chào Bạn! Bạn cần em tư vấn mẫu nào hay xem giá mẫu mô rứa ạ?</div>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<div id="debug-area">
|
| 45 |
+
<div class="debug-title">🔍 Hệ Thống Kiểm Soát Lộ Trình</div>
|
| 46 |
+
<pre id="diagnostic-box"></pre>
|
| 47 |
+
</div>
|
| 48 |
+
|
| 49 |
+
<div id="input-area">
|
| 50 |
+
<input type="text" id="user-input" placeholder="Nhắn mẫu SP hoặc SĐT..." onkeypress="handleKey(event)">
|
| 51 |
+
<button id="send-btn" onclick="sendMsg()">➔</button>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<script src="chat.js"></script>
|
| 55 |
+
</body>
|
| 56 |
+
</html>
|