-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (36 loc) · 1.93 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Calculator</title>
<link rel="stylesheet" type="text/css" href="style.css">
<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=Abril+Fatface&display=swap" rel="stylesheet">
</head>
<body>
<h1 class="title"> Welcome To Your Online Calculator</h1>
<div class="container">
<input id="screen" type="text" disabled="disabled">
<button onclick="EnterNumber(7)" class="zone seven">7</button>
<button onclick=EnterNumber(8) class="zone eight">8</button>
<button onclick=EnterNumber(9) class="zone nine">9</button>
<button onclick="clears()" class="zone2 Clear">C</button>
<button onclick=EnterNumber(4) class="zone four">4</button>
<button onclick=EnterNumber(5) class="zone five">5</button>
<button onclick=EnterNumber(6) class="zone six">6</button>
<button onclick=Add() class="zone Add">+</button>
<button onclick=Subtract() class="zone Subtract">-</button>
<button onclick=EnterNumber(3) class="zone two">3</button>
<button onclick=EnterNumber(2) class="zone three">2</button>
<button onclick=EnterNumber(1) class="zone one">1</button>
<button onclick=Multiply() class="zone Multipy">x</button>
<button onclick=Divide() class="zone Divide">/</button>
<button onclick=EnterNumber(0) class="zone zero">0</button>
<button id="disable" onclick=EnterNumber(encodeURI(decimal)) class="zone decimal">.</button>
<button id=toggle onclick="negOrPos()">+/-</button>
<button onclick=equal() class="zone2 Equal">=</button>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>