-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (34 loc) · 1.29 KB
/
index.html
File metadata and controls
48 lines (34 loc) · 1.29 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
<!DOCTYPE HTML>
<html>
<head>
<title>Calculator</title>
<link rel="stylesheet" type="text/css" href="calculator.css">
<script src="calculator.js"></script>
</head>
<body>
<div id="calci">
<input type="text" id="screen" style="text-align: right;"><br><br>
<button onclick="one()">1</button>
<button onclick="two()">2</button>
<button onclick="three()">3</button>
<button onclick="minus()">-</button><br><br>
<button onclick="four()">4</button>
<button onclick="five()">5</button>
<button onclick="six()">6</button>
<button onclick="plus()">+</button><br><br>
<button onclick="seven()">7</button>
<button onclick="eight()">8</button>
<button onclick="nine()">9</button>
<button onclick="document.getElementById('screen').value = ''">CLR</button><br><br>
<button onclick="equal()">=</button>
<button onclick="zero()">0</button>
<button onclick="multiply()">*</button>
<button onclick="divide()">/</button><br><br>
</div>
<button onclick="document.write('All The Best !')" id="down" style="margin-left:20px; margin-top: 30px;">I can calculate on my own</button><br><br>
</body>
<script>
//this is for future scripting purposes
console.log("calculator");
</script>
</html>