forked from LoneLombax1/Calculator1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Calculator.html
36 lines (32 loc) · 1.35 KB
/
Calculator.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="Calculator.css" />
</head>
<body>
<script src="Calculator.js"></script>
<div>
<div class="screen" id="screen">Screen</div>
<div class="btn">
<button id="1" onclick="number('1')">1</button>
<button id="2" onclick="number('2')">2</button>
<button id="3" onclick="number('3')">3</button>
<button id="+" onclick="operator1('+')">+</button>
<button id="4" onclick="number('4')">4</button>
<button id="5" onclick="number('5')">5</button>
<button id="6" onclick="number('6')">6</button>
<button id="-" onclick="operator1('-')">-</button>
<button id="7" onclick="number('7')">7</button>
<button id="8" onclick="number('8')">8</button>
<button id="9" onclick="number('9')">9</button>
<button id="*" onclick="operator1('*')">*</button>
<button id="0" onclick="number('0')">0</button>
<button id="." onclick="decim()">.</button>
<button id="^" onclick="operator1('^')">^</button>
<button id="/" onclick="operator1('/')">/</button>
<button id="clear" onclick="cleared()">CLEAR</button>
<button id="enter" onclick="enter()">ENTER</button>
</div>
</div>
</body>
</html>