-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.html
58 lines (54 loc) · 3.37 KB
/
calculator.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
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<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=Oswald&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="calculator.css">
</head>
<body>
<div id="section">
<h1 class="display-5">Calculator</h1>
<div id="calculator" class="container">
<br>
<input class="form-control text-end" type="text" value="">
<br>
<button id="headerButtons" class="btn AC">AC</button>
<button id="headerButtons" class="btn backspace"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-backspace" viewBox="0 0 16 16">
<path d="M5.83 5.146a.5.5 0 0 0 0 .708L7.975 8l-2.147 2.146a.5.5 0 0 0 .707.708l2.147-2.147 2.146 2.147a.5.5 0 0 0 .707-.708L9.39 8l2.146-2.146a.5.5 0 0 0-.707-.708L8.683 7.293 6.536 5.146a.5.5 0 0 0-.707 0z"/>
<path d="M13.683 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7.08a2 2 0 0 1-1.519-.698L.241 8.65a1 1 0 0 1 0-1.302L5.084 1.7A2 2 0 0 1 6.603 1h7.08zm-7.08 1a1 1 0 0 0-.76.35L1 8l4.844 5.65a1 1 0 0 0 .759.35h7.08a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-7.08z"/>
</svg></button>
<button id="operations" class="btn divide">÷</button>
<button id="numbers" class="btn">7</button>
<button id="numbers" class="btn">8</button>
<button id="numbers" class="btn">9</button>
<button id="operations" class="btn x"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-x" viewBox="0 0 16 16">
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" />
</svg></button>
<button id="numbers" class="btn">4</button>
<button id="numbers" class="btn">5</button>
<button id="numbers" class="btn">6</button>
<button id="operations" class="btn">-</button>
<button id="numbers" class="btn">1</button>
<button id="numbers" class="btn">2</button>
<button id="numbers" class="btn">3</button>
<button id="operations" class="btn">+</button>
<button id="numbers" class="btn zero">0</button>
<button id="numbers" class="btn">.</button>
<button id="operations" class="btn equal">=</button>
</div>
<h2 style="font-size: 1em; text-align: right; margin-top: 0.5em; color: #b7323d">
- Developed by Kritika</h2>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<script src="calculator.js"></script>
<script src="math.js"></script>
</body>
</html>