-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (137 loc) · 6.25 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>JS UI/UX</title>
<link rel="stylesheet" href="/css/assets/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="line"></div>
</div>
<!-- Tab content -->
<div class="tab-content">
<div class="tab-pane active">
<i class="fa-solid fa-sack-dollar"></i><h2>Tính tiền lương nhân viên</h2>
<form action="" class="row algin-item-center px-2">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập lương một ngày" value="salary" id="inputNum1" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Số ngày làm" value="days" id="inputNum2" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnSalary" onclick="salary()">Tính lương</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtSalary"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-calculator"></i><h2>Tính trung bình</h2>
<form action="" class="row algin-item-center px-2 bai2">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 1" value="salary" id="Num1" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 2" value="days" id="Num2" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 3" value="days" id="Num3" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 4" value="days" id="Num4" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập số thứ 5" value="days" id="Num5" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnAverage" onclick="average()">Tính trung bình</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtAverage"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-dollar-sign"></i><h2>Đổi tiền tệ</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ố tiền USD" value="currency" id="currencyUSD" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnCurrency" onclick="exchangeCurrency()">Đổi tiền</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtCurrency"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-ruler"></i><h2>Tính diện tích, chu vi hình chữ nhật</h2>
<form action="" class="row algin-item-center px-2 bai4">
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập chiều dài" value="height" id="height" class="formInput">
</div>
<div class="col-12 col-lg-4">
<input type="number" placeholder="Nhập chiều rộng" value="width" id="width" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnCal" onclick="calcRectangle()">Tính</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtCalc"></span>
</div>
</form>
</div>
<div class="tab-pane">
<i class="fa-solid fa-calculator"></i><h2>Tính 2 ký số</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ố có 2 chữ số" value="sum" id="sumTens" class="formInput">
</div>
<div class="col-12">
<button class="btn mb-4 mt-4" type="button" id="btnSum" onclick="sumOfTens()">Tính tổng</button>
</div>
<div class="alert alert-success" role="alert">
👉<span id="txtSum"></span>
</div>
</form>
</div>
</div>
</div>
<!-- partial -->
<script src="./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>