-
Notifications
You must be signed in to change notification settings - Fork 4
/
cal.html
71 lines (67 loc) · 1.91 KB
/
cal.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
<title>Calculator</title>
<link rel="stylesheet" href="calc.css">
<link rel="stylesheet" href="navigator.css">
<script src="calculator.js"></script>
</head>
<body>
<!--navigation menu-->
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<i class="fas fa-bars"></i>
</label>
<label class="logo">CALCULATOR</label>
<ul>
<li><a class="active" href="index.php">Home</a></li>
<li><a href="account.php">Back</a></li>
</ul>
</nav>
<section>
<div class="space">
</div>
<div>
<header id="screen"></header>
<table>
<tbody>
<tr class="orange">
<td onclick="clearScr()">AC</td>
<td onclick="sendNum('*0.01')">%</td>
<td onclick="sendNum('/')">/</td>
</tr>
<tr class="orange">
<td onclick="sendNum('+')">+</td>
<td onclick="sendNum('-')">-</td>
<td onclick="sendNum('*')">x</td>
</tr>
<tr>
<td onclick="sendNum('7')">7</td>
<td onclick="sendNum('8')">8</td>
<td onclick="sendNum('9')">9</td>
</tr>
<tr>
<td onclick="sendNum('4')">4</td>
<td onclick="sendNum('5')">5</td>
<td onclick="sendNum('6')">6</td>
</tr>
<tr>
<td onclick="sendNum('1')">1</td>
<td onclick="sendNum('2')">2</td>
<td onclick="sendNum('3')">3</td>
</tr>
<tr>
<td onclick="sendNum('.')">.</td>
<td onclick="sendNum('0')">0</td>
<td onclick="equalTo()">=</td>
</tr>
</tbody>
</table>
</div>
</section>
</body>
</html>