-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (69 loc) · 5.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="bootstrap.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="container mt-5">
<div class="row">
<div class="col-12 col-md-4 mx-auto">
<div class="main-div px-4 pt-3 ">
<!-- Calculator display -->
<div class="text-end d-flex flex-column row-gap-2">
<div class="d-flex justify-content-between align-item-center">
<p id="time" class="fw-bold"><p>
<div class="d-flex justify-content-end align-item-center gap-2">
<i class="fa-solid fa-wifi"></i>
<i class="fa-solid fa-battery-half fs-5"></i>
</div>
</div>
<input type="text" name="input" id="input" class=" w-100 fw-bolder py-4 px-2 mb-3 input-shadow text-end fs-2 " placeholder="0">
</div>
<!-- Calculator buttons -->
<div class="d-flex flex-column column-gap-3 row-gap-3 pb-5 pt-2">
<div class="row">
<div class="col-3"><button class="btn btn-border-shadow fw-bolder w-100 font py-2 px-1 text-info" onclick="deleteOp(this)">DEL</button></div>
<div class="col-3"><button class="btn btn-border-shadow w-100 fw-bolder font py-2 px-2 text-info" onclick="clearOp(this)">AC</button></div>
<div class="col-3"><button class="btn btn-border-shadow w-100 fw-bolder font py-2 px-2 text-info" onclick="operator(this)">%</button></div>
<div class="col-3"><button class="btn btn-border-shadow w-100 fw-bolder font py-2 px-2 text-warning" onclick="operator(this)">/</button></div>
</div>
<div class="row">
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)"onclick="element(this)"> 7 </button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)">8</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)">9</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font text-warning" onclick="operator(this)">*</button></div>
</div>
<div class="row">
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font " onclick="element(this)">4</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)">5</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)">6</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font text-warning" onclick="operator(this)">-</button></div>
</div>
<div class="row">
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)">1</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)">2</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font" onclick="element(this)">3</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder text-warning" onclick="operator(this)">+</button></div>
</div>
<div class="row">
<div class="col-6 "><button class="btn btn-border-shadow fw-bold dark-fonts w-100 fw-bolder font zero-btn " onclick="element(this)">0</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder font"onclick="element(this)">.</button></div>
<div class="col-3"><button class="btn btn-border-shadow fw-bold w-100 fw-bolder text-warning"onclick="result(this)">=</button></div>
</div>
<!-- Add more rows for other buttons -->
</div>
</div>
</div>
</div>
</div>
<script src="app.js"></script>
<script src="bootstrap.js"></script>
</body>
</html>