-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (47 loc) · 2.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Inconsolata:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./css/style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="shortcut icon" href="https://ci3.googleusercontent.com/mail-sig/AIorK4yIHFeEZXtK6rMLmukyB-1Inhds_yFBJmNtKaGnu0XMHjLcHaBaNLsWQR18Ib7Eae2_Nrom_os" type="image/x-icon">
<script src="./js/script.js" defer></script>
</head>
<body>
<header>
<h1>Javascript Calculator</h1>
</header>
<main>
<div class="container">
<div class="display" id="calculator-display" value="0"></div>
<button type="button" class="gray bigger-button" id="clear">C</button>
<button type="button" class="gray" id="change-signal">+/-</button>
<button type="button" class="orange operator" value="/">/</button>
<button type="button" value="7">7</button>
<button type="button" value="8">8</button>
<button type="button" value="9">9</button>
<button type="button" class="orange operator" value="*">*</button>
<button type="button" value="4">4</button>
<button type="button" value="5">5</button>
<button type="button" value="6">6</button>
<button type="button" class="orange operator" value="-">-</button>
<button type="button" value="1">1</button>
<button type="button" value="2">2</button>
<button type="button" value="3">3</button>
<button type="button" class="orange operator" value="+">+</button>
<button type="button" value="0">0</button>
<button type="button" id="decimal">.</button>
<button type="button" class="gray" id="backspace"><span class="material-symbols-outlined">backspace</span></button>
<button type="button" class="orange" id="operate">=</button>
</div>
</main>
<footer>
<p>© Copyright</p>
</footer>
</body>
</html>