-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
157 lines (138 loc) · 7.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CalcLand</title>
<!--for Animation -->
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<!-- custom CSS added here -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Navbar -->
<section>
<div class="container-fluid">
<nav class="navbar navbar-expand-lg z-3 px-xl-3 shadow-sm bg-primary fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="index.html"><img src="css/images/logo.png" alt=""
style="height:5vh;"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse d-flex justify-content-end" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item mx-2">
<a class="nav-link text-light" href="about.html">About</a>
</li>
</ul>
</div>
</div>
</nav>
<div>
</section>
<section class=" d-flex align-items-center min-vh-100 calculator-section">
<div class="row w-100 d-flex align-items-center justify-content-around" style="min-height: 80vh;">
<!-- Calculator -->
<div class="col-md-6 pb-5">
<div data-aos="fade-right" class="calculator z-3 border rounded px-3 py-4 mx-auto">
<!-- Display -->
<div class="display-input bg-secondary bg-opacity-25 rounded p-2">
<input id="display-input" placeholder="0" class="p-2 shadow-sm z-3 form-control" value=""
type="text">
</div>
<!--All Buttons here -->
<div>
<!--delete Btn-->
<div class=" mt-3 mb-2">
<button id="btn-action-C" class="btn btn-danger mb-1 py-1 px-3">C</button>
</div>
<!-- 7, 8, 9, / -->
<div class="row row-cols-4">
<div class="col"><button id="btn-7" value="7"
class="btn btn-secondary shadow px-3">7</button></div>
<div class="col"><button id="btn-8" value="8"
class="btn btn-secondary shadow px-3">8</button></div>
<div class="col"><button id="btn-9" value="9" class="btn btn-secondary px-3">9</button>
</div>
<div class="col"><button id="btn-action-divide" value=" / "
class="btn-success btn px-3">/</button>
</div>
</div>
<!-- 4, 5, 6, X -->
<div class="row row-cols-4 my-2">
<div class="col"><button id="btn-4" value="4" class="btn btn-secondary px-3 ">4</button>
</div>
<div class="col"><button id="btn-5" value="5" class="btn btn-secondary px-3">5</button>
</div>
<div class="col"><button id="btn-6" value="6" class="btn btn-secondary px-3">6</button>
</div>
<div class="col"><button id="btn-action-multiply" value=" * "
class="btn btn-success px-3">x</button>
</div>
</div>
<!-- 1, 2, 3, - -->
<div class="row row-cols-4">
<div class="col"><button id="btn-1" value="1" class="btn btn-secondary px-3 ">1</button>
</div>
<div class="col"><button id="btn-2" value="2" class="btn btn-secondary px-3">2</button>
</div>
<div class="col"><button id="btn-3" value="3" class="btn btn-secondary px-3">3</button>
</div>
<div class="col"><button id="btn-action-minus" value=" - "
class="btn btn-success px-3">–</button>
</div>
</div>
<!-- 0, (.), +, = -->
<div class="row row-cols-4 my-3">
<div class="col"><button id="btn-0" value="0" class="btn btn-secondary px-3">0</button>
</div>
<div class="col"><button id="btn-point" value="." class="btn btn-secondary px-3">•</button>
</div>
<div class="col"><button id="btn-action-plus" value=" + "
class="btn btn-success px-3">+</button>
</div>
<div class="col"><button id="btn-action-equal" class="btn btn-secondary px-3">=</button>
</div>
</div>
</div>
</div>
</div>
<!--Side Nav bar -->
<div class=" col-md-6 p-md-0 pb-5">
<div data-aos="fade-left" class="row navbar w-75 shadow mx-auto rounded ">
<nav class="p-0 bg-white">
<div class="py-3 ">
<h4 class="text-center text-primary">More calculators</h4>
</div>
<div class="border-top p-3 nav-list-item">
<a class="nav-link" href="base-calc.html">Base Converter</a>
</div>
<div class=" p-3 border-top nav-list-item">
<a class="nav-link" href="age-calc.html">Age Calculator</a>
</div>
<div class="border-top p-3 nav-list-item">
<a class="nav-link" href="area-calc.html">Area Calculator</a>
</div>
</nav>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer id="footer">
<script src="js/footer.js"></script>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!--for Animation -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<!-- Custom JS added here -->
<script src="js/app.js"></script>
</body>
</html>