-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (43 loc) · 2.04 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
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<html lang="en-US">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="calculator.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" href="">
<link rel="icon" href="icons/fevicon.png">
</head>
<body>
<div class="calculatorContainer">
<div class="screen">
<p class="log"></p>
<p class="input" maxlength="10"></p>
</div>
<div class="buttons">
<button class="reset" id="reset" onclick="getValue('C')">C</button>
<button class="operator" id="leftBracket" >(</button>
<button class="operator" id="rightBracket" >)</button>
<button class="operator" id="back" onclick="back('<')">⌫</button>
<button class="number" id="seven" onclick="getValue('7')">7</button>
<button class="number" id="eight" onclick="getValue('8')">8</button>
<button class="number" id="nine" onclick="getValue('9')">9</button>
<button class="operator" id="division" onclick="getValue('/')">/</button>
<button class="number" id="four" onclick="getValue('4')">4</button>
<button class="number" id="five" onclick="getValue('5')">5</button>
<button class="number" id="six" onclick="getValue('6')">6</button>
<button class="operator" id="multiplication" onclick="getValue('*')">×</button>
<button class="number" id="one" onclick="getValue('1')">1</button>
<button class="number" id="two" onclick="getValue('2')">2</button>
<button class="number" id="three" onclick="getValue('3')">3</button>
<button class="operator" id="subtraction" onclick="getValue('-')">-</button>
<button class="number" id="zero" onclick="getValue('0')">0</button>
<button class="number" id="point" onclick="getValue('.')">.</button>
<button class="equals" id="equals" onclick="result('')">=</button>
<button class="operator" id="addition" onclick="getValue('+')">+</button>
</div>
</div>
</body>
<script type="text/javascript" src="calculator.js"></script>
</html>