-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
119 lines (60 loc) · 2.78 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
<!doctype html>
<html lang="en">
<head>
<title>JavaScript Calculator</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="calculator.png" />
<link rel="stylesheet" href="styles/reset.css">
<link rel="stylesheet" href="styles/normalize.css">
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<div id="calculator">
<div id="calculator-content">
<h1 class="title">JS Calculator</h1>
<textarea id="input-screen" disabled ></textarea>
<div id="clear-buttons-group">
<button id="ac" class="button clear-button" type="button" title="clears the screen" value="AC">AC</button>
<button id="ce" class="button clear-button" type="button" title="erases the last part of the equation" value="CE">CE</button>
</div>
<div id="number-buttons-group">
<div >
<button id="button-7" class="button" type="button" value="7">7</button>
<button id="button-8" class="button" type="button" value="8">8</button>
<button id="button-9" class="button" type="button" value="9">9</button>
</div>
<div>
<button id="button-4" class="button" type="button" value="4">4</button>
<button id="button-5" class="button" type="button" value="5">5</button>
<button id="button-6" class="button" type="button" value="6">6</button>
</div>
<div >
<button id="button-1" class="button" type="button" value="1">1</button>
<button id="button-2" class="button" type="button" value="2">2</button>
<button id="button-3" class="button" type="button" value="3">3</button>
</div>
<div >
<button id="button-0" class="button" type="button" value="0">0</button>
<button id="button-decimal" class="button" type="button" value=".">.</button>
</div>
</div> <!-- end of #number-buttons-group -->
<div id="operator-buttons-group">
<div >
<button id="multiply" class="button operator-button" type="button" value="x">×</button>
<button id="divide" class="button operator-button" type="button" value="%">÷</button>
</div>
<div >
<button id="subtract" class="button operator-button" type="button" value="-">-</button>
<button id="add" class="button operator-button" type="button" value="+">+</button>
</div>
<div >
<button id="equal" class="button operator-button" type="button" value="=">=</button>
</div>
</div> <!-- end of #operator-buttons-group -->
</div> <!-- end of #calculator-content -->
</div> <!-- end of #calculator -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="main.js"></script>
</body>
</html>