-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (55 loc) · 2.05 KB
/
index.html
File metadata and controls
59 lines (55 loc) · 2.05 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="calculatorBody">
<header class="head">Javascript Calculator</header>
<div class="screen">
<span id="output">0</span>
</div>
<div class="historyScreen">
<span id='historyOutput'>0</span>
</div>
<div class="buttons">
<div class="btnRow">
<button class='input'>(</button>
<button class='input'>)</button>
<button class='ac'>C</button>
<button class='operand'>/</button>
</div>
<div class="btnRow">
<button class='input'>7</button>
<button class='input'>8</button>
<button class='input'>9</button>
<button class='operand'>*</button>
</div>
<div class="btnRow">
<button class='input'>4</button>
<button class='input'>5</button>
<button class='input'>6</button>
<button class='operand'>-</button>
</div>
<div class="btnRow">
<button class='input'>1</button>
<button class='input'>2</button>
<button class='input'>3</button>
<button class='operand plus'>+</button>
</div>
<div class="btnRow">
<button class='input'>0</button>
<button class='decimal'>.</button>
<button class='equals'>=</button>
</div>
</div>
<footer class="btnRow">Designed and coded by <span class='me'> Greg Brewton</span></footer>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.8.1/math.min.js"></script>
<script src="js/script.js"></script>
</html>