Update templates/index.html
Browse files- templates/index.html +68 -74
templates/index.html
CHANGED
|
@@ -1,75 +1,69 @@
|
|
| 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">
|
| 6 |
-
<title>VietCorrect AI - Normalization</title>
|
| 7 |
-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
| 8 |
-
<link rel="stylesheet" href="/static/style.css">
|
| 9 |
-
</head>
|
| 10 |
-
<body>
|
| 11 |
-
|
| 12 |
-
<div class="main-card">
|
| 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 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
</div>
|
| 70 |
-
</div>
|
| 71 |
-
</div>
|
| 72 |
-
|
| 73 |
-
<script src="/static/script.js"></script>
|
| 74 |
-
</body>
|
| 75 |
</html>
|
|
|
|
| 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">
|
| 6 |
+
<title>VietCorrect AI - Normalization</title>
|
| 7 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
| 8 |
+
<link rel="stylesheet" href="/static/style.css">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
|
| 12 |
+
<div class="main-card">
|
| 13 |
+
<div class="card-header">
|
| 14 |
+
<h1 class="app-title">CÔNG CỤ CHUẨN HÓA VĂN BẢN</h1>
|
| 15 |
+
|
| 16 |
+
<div class="mode-switcher">
|
| 17 |
+
<label class="mode-option">
|
| 18 |
+
<input type="radio" name="modelType" value="correction" checked onchange="handleModeChange()">
|
| 19 |
+
<span class="mode-btn">Sửa lỗi chính tả</span>
|
| 20 |
+
</label>
|
| 21 |
+
<label class="mode-option">
|
| 22 |
+
<input type="radio" name="modelType" value="diacritics" onchange="handleModeChange()">
|
| 23 |
+
<span class="mode-btn">Thêm dấu</span>
|
| 24 |
+
</label>
|
| 25 |
+
</div>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div class="editor-section">
|
| 29 |
+
<div class="text-box-wrapper">
|
| 30 |
+
<div class="box-label">Văn bản gốc</div>
|
| 31 |
+
<textarea id="inputText" placeholder="Nhập văn bản vào đây..."></textarea>
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<div class="text-box-wrapper">
|
| 35 |
+
<div class="box-label">Kết quả xử lý</div>
|
| 36 |
+
<textarea id="outputText" readonly placeholder="Kết quả sẽ hiện ở đây..."></textarea>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
<div class="action-section">
|
| 41 |
+
<button id="submitBtn" onclick="correctText()">
|
| 42 |
+
<span>THỰC HIỆN XỬ LÝ</span>
|
| 43 |
+
</button>
|
| 44 |
+
<div id="loading">
|
| 45 |
+
<div class="spinner"></div> Đang xử lý...
|
| 46 |
+
</div>
|
| 47 |
+
</div>
|
| 48 |
+
|
| 49 |
+
<div id="analysisSection" class="analysis-section">
|
| 50 |
+
<h2 class="section-title">PHÂN TÍCH THAY ĐỔI</h2>
|
| 51 |
+
<div id="highlightedText" class="highlight-box"></div>
|
| 52 |
+
<div class="table-wrapper">
|
| 53 |
+
<table>
|
| 54 |
+
<thead>
|
| 55 |
+
<tr>
|
| 56 |
+
<th>Trước khi sửa</th>
|
| 57 |
+
<th>Sau khi sửa</th>
|
| 58 |
+
<th style="width: 150px;">Độ tin cậy</th>
|
| 59 |
+
</tr>
|
| 60 |
+
</thead>
|
| 61 |
+
<tbody id="comparisonTableBody"></tbody>
|
| 62 |
+
</table>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<script src="/static/script.js"></script>
|
| 68 |
+
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
</html>
|