-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
200 lines (192 loc) · 7.29 KB
/
index.html
File metadata and controls
200 lines (192 loc) · 7.29 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>#TeX Editor</title>
<link rel="shortcut icon" href="./img/icon.png" type="image/x-icon" />
<!-- Highlight styles -->
<link rel="stylesheet" href="./src/style/highlight.css" />
<!-- Viewport styles -->
<link rel="stylesheet" href="./src/style/reset.css" />
<link rel="stylesheet" href="./src/style/index.css" />
<link rel="stylesheet" href="./src/style/floating_windows.css" />
<link rel="stylesheet" href="./src/style/dropdown_menu.css" />
<link rel="stylesheet" href="./src/style/loading.css" />
<!-- Zip module -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<!-- Local script -->
<script src="./src/script/loading.js"></script>
<script src="./src/script/sharptex_engine/prepare.js"></script>
<script
type="module"
src="./src/script/sharptex_engine/highlight.js"
></script>
<script src="./src/script/sharptex_engine/parse.js"></script>
<script src="./src/script/shortcuts.js"></script>
<script src="./src/script/dropdown_menu_engine.js"></script>
<script src="./src/script/find_n_replace_engine/open_find_n_replace.js"></script>
<script src="./src/script/find_n_replace_engine/find_n_replace.js"></script>
<script src="./src/script/action.js"></script>
<script src="./src/script/count_char_line.js"></script>
</head>
<body
onclick="hindDropdown(event, 'titlepageDropdown'); hindDropdown(event, 'prefDropdown');"
>
<div id="loading-screen">
<img src="./img/loading.gif" id="sticker" alt="Loading Sticker" />
<p id="loading-text"></p>
</div>
<div class="toolbar">
<div class="logo">
<a href=""><img src="./img/icon.svg" alt="#TeX logo" width="59px" /></a>
</div>
<div class="file-info">
<input
type="text"
name="fileName"
id="fileName"
value="Untitled_file.txt"
/>
</div>
<div class="tool">
<div class="tooltipContainer">
<input id="importButton" type="button" value="Mở" />
<input type="file" name="input" id="input" style="display: none" />
<span class="tooltip">[Ctrl O]</span>
</div>
<div class="tooltipContainer">
<input id="saveButton" type="button" value="Lưu" />
<span class="tooltip">[Ctrl S]</span>
</div>
<div class="tooltipContainer">
<input id="exportButton" type="button" value="Xuất" />
<span class="tooltip">[Ctrl E] Chuyển file này thành tex và lưu</span>
</div>
<div class="tooltipContainer">
<input id="convertButton" type="button" value="Chuyển" />
<span class="tooltip"
>Chuyển file này thành tex và copy vào clipboard</span
>
</div>
<div class="tooltipContainer">
<input
id="titlepageButton"
type="button"
value="Chèn bìa"
onclick="hindDropdown(event); dropdown('titlepageDropdown');"
/>
<span class="tooltip">Chèn trang bìa</span>
<div class="dropdownMenu" id="titlepageDropdown">
<a
href="#"
onclick="insertToBeginOfPage(`#titlepage-personal
$ĐẠI HỌC QUỐC GIA TP. HCM\\\\TRƯỜNG ĐẠI HỌC CÔNG NGHỆ THÔNG TIN
$school_logo.png
$ĐỒ ÁN BÁO CÁO\\\\MÔN TRÍ TUỆ NHÂN TẠO
$Nghiên cứu mô hình học sâu trong\\\\bài toán phát hiện vi phạm giao thông
$ThS. Tên_giảng_viên
$Tên_sinh_viên
$MSSV
$Mã_lớp
$TP. Hồ Chí Minh, 03/2025
#
`)"
>Bìa cứng cá nhân</a
>
<a
href="#"
onclick="insertToBeginOfPage(`#titlepage-group
$ĐẠI HỌC QUỐC GIA TP. HCM\\\\TRƯỜNG ĐẠI HỌC CÔNG NGHỆ THÔNG TIN
$school_logo.png
$ĐỒ ÁN BÁO CÁO\\\\MÔN TRÍ TUỆ NHÂN TẠO
$Nghiên cứu mô hình học sâu trong\\\\bài toán phát hiện vi phạm giao thông
$ThS. Tên_giảng_viên
$Mã_lớp
$Tên_nhóm_(nếu có)
1.;SV_1;MSSV_1
2.;SV_2;MSSV_2
$TP. Hồ Chí Minh, 03/2025
#
`)"
>Bìa cứng nhóm</a
>
</div>
</div>
<div class="tooltipContainer">
<input
id="prefButton"
type="button"
value="Trích dẫn"
onclick="hindDropdown(event); dropdown('prefDropdown');"
/>
<span class="tooltip">Thêm nguồn trích dẫn</span>
<div class="dropdownMenu" id="prefDropdown">
<a
href="#"
onclick="insertToEndOfPage('\n\n#book\n$Tác_giả\n$Tiêu_đề\n$Năm_xuất_bản\n$Nhà_xuất_bản\n#\n')"
>Sách</a
>
<a
href="#"
onclick="insertToEndOfPage('\n\n#webpage\n$Tác_giả\n$Tiêu_đề\n$Năm_xuất bản\n$Ngày_truy_cập\n$link\n#\n')"
>Trang web</a
>
<a
href="#"
onclick="insertToEndOfPage('\n\n#thesis\n$Tác_giả\n$Tiêu_đề\n$Năm_xuất_bản\n$mastersthesis hoặc phdthesis\n$Trường_đại_học\n#\n')"
>Luận văn</a
>
</div>
</div>
<!-- <div class="tooltipContainer">
<input id="findReplaceButton" type="button" value="Tìm & thay" />
<span class="tooltip">[Ctrl H]</span>
</div> -->
<div class="tooltipContainer">
<input
id="documentButton"
type="button"
value="Hướng dẫn"
onclick="window.open('./src/page/document.html', '_blank')"
/>
<span class="tooltip">[Ctrl D]</span>
</div>
<div id="findNReplace" class="floatingWindow">
<div class="header" id="findNReplaceHeader">
<p class="title" id="findNReplaceTitle">
<strong>Tìm kiếm & Thay thế</strong>
</p>
<input id="closeFindNReplace" type="button" value="X" />
</div>
<hr />
<div class="findContainer">
<label id="findLabel" for="find" class="noCopy">Tìm kiếm:</label>
<input type="text" name="find" id="find" />
</div>
<div class="replaceContainer">
<label id="replaceLabel" for="replace" class="noCopy"
>Thay =:</label
>
<input type="text" name="replace" id="replace" />
</div>
<div class="ignoreCaseContainer">
<label id="ignoreLabel" for="ignoreCase" class="noCopy"
>Phân biệt in hoa / thường:</label
>
<input type="checkbox" name="ignoreCase" id="ignoreCase" />
</div>
<hr />
<div class="confirmContainer">
<input type="button" value="Tìm kiếm" id="findButton" />
<input type="button" value="Thay tất cả" id="replaceAllButton" />
<input type="button" value="Thay từng lần" id="replaceOneButton" />
<input type="button" value="<" id="backButton" />
<input type="button" value=">" id="nextButton" />
</div>
</div>
</div>
</div>
<div class="page"></div>
</body>
</html>