-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (65 loc) · 3.29 KB
/
index.html
File metadata and controls
73 lines (65 loc) · 3.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Calculator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale= 1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- google font -->
<!-- <link href="https://fonts.googleapis.com/css?family=Titillium+Web:300,400,600,700&display=swap" rel="stylesheet"> -->
<!-- css link -->
<link href="css/style.css" rel="stylesheet" type="text/css">
<!-- <link href="css/responsive.css" rel="stylesheet" type="text/css"> -->
</head>
<body>
<br>
<div class="main">
<div class="calTitle">
<h1>Calculator</h1>
</div>
<div class="calculate">
<div class="calHead">
<input type="text" id="result" maxlength="10">
</div>
<div class="calBody">
<div>
<input type="button" class="btn btnC" value="C" onclick="clearResult()">
<input type="button" class="btn" value="+/-" onclick="plusMinus('-')">
<input type="button" class="btn" value="%">
<input type="button" class="btn btnColor1" value="/" onclick="insertNum('/')">
</div>
<div>
<input type="button" class="btn" value="7" onclick="insertNum(7)">
<input type="button" class="btn" value="8" onclick="insertNum(8)">
<input type="button" class="btn" value="9" onclick="insertNum(9)">
<input type="button" class="btn btnColor2" value="*" onclick="insertNum('*')">
</div>
<div>
<input type="button" class="btn" value="4" onclick="insertNum(4)">
<input type="button" class="btn" value="5*" onclick="insertNum(5)">
<input type="button" class="btn" value="6" onclick="insertNum(6)">
<input type="button" class="btn btnColor3" value="-" onclick="insertNum('-')">
</div>
<div>
<input type="button" class="btn" value="1" onclick="insertNum(1)">
<input type="button" class="btn" value="2" onclick="insertNum(2)">
<input type="button" class="btn" value="3" onclick="insertNum(3)">
<input type="button" class="btn btnColor4" value="+" onclick="insertNum('+')">
</div>
<div>
<input type="button" class="btn" value="0" onclick="insertNum(0)">
<input type="button" class="btn" value="." onclick="insertNum('.')">
<input type="button" class="btn" value="DEL" onclick="deleteNumbers()">
<input type="button" class="btn btnColor5" value="=" onclick="equal()">
</div>
</div>
</div>
</div>
<!-- JS SCRIPT -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- <script src="js/jquery-3.4.1.min.js" type="text/javascript"></script> -->
<!-- <script src="https://kit.fontawesome.com/c08e606212.js" crossorigin="anonymous"></script> -->
<!-- <script src="js/popper.min.js" type="text/javascript"></script> -->
<script src="main.js" type="text/javascript"></script>
</body>
</html>