-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (36 loc) · 1.72 KB
/
Copy pathindex.html
File metadata and controls
47 lines (36 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Average Cost Calculator</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
</head>
<body>
<div class="container">
<div class="card">
<h1 id="title">Average Price Calculator</h1>
<div class="add_data">
<input type="number" placeholder="Quantity" min="0" step="0.1" class="numb_input">
<input type="number" placeholder="Price" min="0" step="0.1" class="price_input">
<div class="del" onclick="delBoxes(this)">X</div>
</div>
<div class="add_data">
<input type="number" placeholder="Quantity" min="0" step="0.1" class="numb_input">
<input type="number" placeholder="Price" min="0" step="0.1" class="price_input">
<div class="del" onclick="delBoxes(this)">X</div>
</div>
<button type="button" id="btn">Add row <i class="fa-solid fa-plus"></i></button>
<div class="change_mode dark">
<i class="fa-regular fa-moon"></i>
<i class="fa-regular fa-sun"></i>
</div>
<p class="average_text">Average price: <span class="average_amount">$0.00</span></p>
<p class="total_bought_text">Total quantity: <span class="total_bought_amount">0</span></p>
<p class="total_spent_text">Total spent: <span class="total_spent_amount">$0.00</span></p>
</div>
</div>
</body>
</html>