-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (74 loc) · 2.66 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
<!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" />
<script src="script.js" defer></script>
<script
src="https://kit.fontawesome.com/4c536a6bd5.js"
crossorigin="anonymous"
></script>
<link
href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="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=Ubuntu:ital,wght@0,500;1,300&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="shortcut icon" href="favicon.ico" />
<title>Calculator</title>
</head>
<body>
<h2>Calculator</h2>
<div class="cal-container">
<div class="screen"></div>
<button id="clear" class="btn other">AC</button>
<button id="undo" class="btn other">
<i class="fa-solid fa-delete-left"></i>
</button>
<button id="div" class="btn operator">÷</button>
<button id="sub" class="btn operator">-</button>
<button id="seven" class="btn int">7</button>
<button id="eight" class="btn int">8</button>
<button id="nine" class="btn int">9</button>
<button id="mul" class="btn operator">x</button>
<button id="four" class="btn int">4</button>
<button id="five" class="btn int">5</button>
<button id="six" class="btn int">6</button>
<button id="add" class="btn operator">+</button>
<button id="one" class="btn int">1</button>
<button id="two" class="btn int">2</button>
<button id="three" class="btn int">3</button>
<button id="zero" class="btn int">0</button>
<button id="decimal" class="btn">.</button>
<button id="equal" class="btn other">=</button>
</div>
<footer class="footer">
<p>
Copyright ©
<script>
document.write(new Date().getFullYear());
</script>
karti
</p>
<a href="https://github.com/karti16" target="_blank">
<i class="fab fa-github"></i
></a>
|<a href="https://github.com/karti16/calculator" target="_blank"
>Source code</a
>
</footer>
</body>
</html>