-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
267 lines (263 loc) · 11.8 KB
/
index.html
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Bai Tap If Else</title>
<link rel="stylesheet" href="/assest/css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Work+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
</head>
<body>
<div>
<h1>BC42 - Nguyen Cong Vinh</h1>
<!-- Tab items -->
<div class="tabs">
<div class="tab-item active">
<i class="fa-solid fa-book"></i>
Bài 1
</div>
<div class="tab-item">
<i class="fa-solid fa-book"></i>
Bài 2
</div>
<div class="tab-item">
<i class="fa-solid fa-book"></i>
Bài 3
</div>
<div class="tab-item">
<i class="fa-solid fa-book"></i>
Bài 4
</div>
<div class="tab-item">
<i class="fa-solid fa-book"></i>
Bài 5
</div>
<div class="tab-item ">
<i class="fa-solid fa-book"></i>
Bài 6
</div>
<div class="tab-item">
<i class="fa-solid fa-book"></i>
Bài 7
</div>
<div class="tab-item">
<i class="fa-solid fa-book"></i>
Bài 8
</div>
<div class="line"></div>
</div>
<!-- Tab content -->
<div class="tab-content">
<div class="tab-pane active">
<i class="fa-solid fa-calculator"></i><h2>Xuất 3 số theo thứ tự tăng dần</h2>
<form action="" class="row algin-item-center px-2">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 1" value="increase" id="inputNum1" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 2" value="increase" id="inputNum2" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 3" value="increase" id="inputNum3" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnIncrease" onclick="sort()">Sắp xếp</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtSort"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-hands"></i><h2>Chương trình "Chào hỏi"</h2>
<form action="" class="row algin-item-center px-2">
<div class="form-group col-12 col-lg-4">
<select name="" id="selectUser" class="form-control form-input mt-3">
<option value="select">Chọn thành viên</option>
<option value="O">Ông</option>
<option value="B">Bà</option>
<option value="F">Ba</option>
<option value="M">Mẹ</option>
<option value="BR">Anh Trai</option>
<option value="S">Em Gái</option>
</select>
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnUser" onclick="wave()">Gửi lời chào</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtUser"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-calculator"></i><h2>Đếm số chẵn lẻ</h2>
<form action="" class="row algin-item-center px-2 bai3">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 1" value="count" id="inputCount1" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 2" value="count" id="inputCount2" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 3" value="count" id="inputCount3" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnCount" onclick="countNumber()">Đếm</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtCount"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-ruler"></i><h2>Đoán hình tam giác</h2>
<form action="" class="row algin-item-center px-2">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập độ dài cạnh 1" value="length" id="inputEdge1" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập độ dài cạnh 2" value="length" id="inputEdge2" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập độ dài cạnh 3" value="length" id="inputEdge3" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnGuess" onclick="guessTriangle()">Đoán</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtGuess"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-calendar-days"></i><h2>Tính ngày tháng năm</h2>
<form action="" class="row algin-item-center px-2">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập ngày" id="inputDate" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập tháng" id="inputMonth" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập năm" id="inputYear" class="formInput">
</div>
<div class="col-12 col-lg-4">
<button class="btn mb-4 mt-4" type="button" id="btnYesterday" onclick="calcYesterday()" >Ngày hôm qua</button>
</div>
<div class="col-12 col-lg-4">
<button class="btn mb-4 mt-4" type="button" id="btnTomorrow" onclick="calcTomorrow()">Ngày mai</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtDay"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-calendar-days"></i><h2>Tính ngày</h2>
<form action="" class="row algin-item-center px-2">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập tháng" id="inputMonth2" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập năm" id="inputYear2" class="formInput">
</div>
<div class="col-12 col-lg-4">
<button class="btn mb-4 mt-4" type="button" id="btnDay" onclick="calcDay()" >Tính ngày</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtCalcDay"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-arrow-up-9-1"></i><h2>Đọc số</h2>
<form action="" class="row algin-item-center px-2">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số 3 chữ số" id="inputNum4" class="formInput">
</div>
<div class="col-12 col-lg-4">
<button class="btn mb-4 mt-4" type="button" id="btnRead" onclick="readNumber()" >Đọc số</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtNum4"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-magnifying-glass"></i><h2>Tìm sinh viên xa trường nhất</h2>
<form action="" class="row algin-item-center px-2">
<div class="col-12">
<h5>Sinh Viên 1</h5>
</div>
<div class="col-12 col-lg-4">
<input type="text" class="form-control form__input" id="inputName1"
placeholder="Nhập tên">
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputX1"
placeholder="Nhập tọa độ x">
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputY1"
placeholder="Nhập tọa độ y">
</div>
<div class="col-12">
<h5>Sinh Viên 2</h5>
</div>
<div class="col-12 col-lg-4">
<input type="text" class="form-control form__input" id="inputName2"
placeholder="Nhập tên">
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputX2"
placeholder="Nhập tọa độ x">
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputY2"
placeholder="Nhập tọa độ y">
</div>
<div class="col-12">
<h5>Sinh Viên 3</h5>
</div>
<div class="col-12 col-lg-4">
<input type="text" class="form-control form__input" id="inputName3"
placeholder="Nhập tên">
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputX3"
placeholder="Nhập tọa độ x">
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputY3"
placeholder="Nhập tọa độ y">
</div>
<div class="col-12">
<h5>Trường học</h5>
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputX4"
placeholder="Nhập tọa độ x">
</div>
<div class="col-12 col-lg-4">
<input type="number" class="form-control form__input" id="inputY4"
placeholder="Nhập tọa độ y">
</div>
<div class="col-12 col-lg-4">
<button class="btn mb-4 mt-4" type="button" id="btnRead" onclick="searchLocation()" >Tìm</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtSearch"></span>
</div>
</form>
</div>
</div>
<!-- partial -->
<script src="./javascript/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
</body>
</html>