-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (86 loc) · 4.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Calculator</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="main">
<form action="" name="Calculator">
<p class="calculatorName">Cas<span class="calculatorNamepart">IO</span></p>
<div class="screen">
<input type="text" class="result" id="result1" name="screen">
<hr class="line">
<input type="text" id="displayScreen" class="displayInput" name="displayScreen">
</div>
<div class="key">
<div class="button">
<input type="button" class="num leftBracket" id="leftBracket" value="(" name="btn(" onclick="cal('(')">
</div>
<div class="button">
<input type="button" class="num rightBracket" id="rightBracket" value=")" name="btn)" onclick="cal(')')">
</div>
<div class="button">
<input type="button" class="num rightBracket" id="cancel" value="CE" name="btn)" onclick="clearScreen()">
</div>
<div class="button">
<input type="button" class="num" id="nine" value="9" name="btn9" onclick="cal(9)">
</div>
<div class="button">
<input type="button" class="num" id="eight" value="8" name="btn8" onclick="cal(8)">
</div>
<div class="button">
<input type="button" class="num" id="seven" value="7" name="btn7" onclick="cal(7)">
</div>
<div class="button">
<input type="button" class="num" id="six" value="6" name="btn6" onclick="cal(6)">
</div>
<div class="button">
<input type="button" class="num" id="five" value="5" name="btn5" onclick="cal(5)" >
</div>
<div class="button">
<input type="button" class="num" id="four" value="4" name="btn4" onclick="cal(4)">
</div>
<div class="button">
<input type="button" class="num" id="three" value="3" name="btn3" onclick="cal(3)">
</div>
<div class="button">
<input type="button" class="num" id="two" value="2" name="btn2" onclick="cal(2)" >
</div>
<div class="button">
<input type="button" class="num" id="one" value="1" name="btn1" onclick="cal(1)">
</div>
<div class="button double00">
<input type="button" class="num" id="zero" value="0" name="btnZero" onclick="cal(0)">
</div>
<div class="button">
<input type="button" class="num dot" id="stop" value="." name="btnDot" onclick="cal('.')">
</div>
<div class="button">
<input type="button" class="num" id="percent" value="%" name="btn1" onclick="cal('%')">
</div>
</div>
<div class="control">
<div class="button1">
<input type="button" class="num1 divide" id="division" value="/" name="dividBtn" onclick="cal('/')" >
</div>
<div class="button1">
<input type="button" class="num1 multiply"id="multiplication" value="*" name="multiplyBtn" onclick="cal('*')" >
</div>
<div class="button1">
<input type="button" class="num1 minus" id="sub" value="-" name="minusBtn" onclick="cal('-')">
</div>
<div class="button1">
<input type="button" class="num1 plus" id="add" value="+" name="addBtn" onclick="cal('+')">
</div>
<div class="button1">
<input type="button" class="num1" id="sol" value="=" name="equal" onclick="equalFunc()">
</div>
</div>
</form>
</div>
<script src="js.js"></script>
</body>
</html>