-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (53 loc) · 2.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta property="og:title" content="StackCalc" />
<meta property="og:description" content="A Calculator Application using HTML,CSS,Javascript" />
<meta property="og:image" content="/StackCalc/calculator.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link rel="icon" type="image/png" href="./calculator.png">
<title>StackCalc</title>
</head>
<body>
<div class="alert">
<span class="closebtn" onclick="closeAlert()">×</span>
You can Use Your Keyboard Buttons to control the calculator
</div>
<section class="calculator-container">
<span class="info">StackCalc</span>
<input readonly type="text" class="exp">
<input readonly type="text" class="display-box">
<div class="btn btn-ce" onclick="ce()">ce</div>
<div class="btn btn-c" onclick="c()">c</div>
<div class="btn btn-x" onclick="erase()">x</div>
<div class="btn btn-1/x" onclick="inverse()">1/x</div>
<div class="btn btn-x**2" onclick="sqr()">x<sup>2</sup></div>
<div class="btn btn-sqrt(x)" onclick="sqRoot()">rootx</div>
<div class="btn btn-^" onclick="pow()">^</div>
<div class="btn btn-%" onclick="perc()">%</div>
<div class="btn btn-7" onclick="add7()">7</div>
<div class="btn btn-8" onclick="add8()">8</div>
<div class="btn btn-9" onclick="add9()">9</div>
<div class="btn btn-*" onclick="mul()">*</div>
<div class="btn btn-/" onclick="div()">/</div>
<div class="btn btn-4" onclick="add4()">4</div>
<div class="btn btn-5" onclick="add5()">5</div>
<div class="btn btn-6" onclick="add6()">6</div>
<div class="btn btn-+" onclick="plus()">+</div>
<div class="btn btn--" onclick="minus()">-</div>
<div class="btn btn-1" onclick="add1()">1</div>
<div class="btn btn-2" onclick="add2()">2</div>
<div class="btn btn-3" onclick="add3()">3</div>
<div class="btn btn-rem" onclick="rem()">rem</div>
<div class="btn-equal" onclick="equal()"> =</div>
<div class="btn btn-+/-" onclick="negate()">+/-</div>
<div class="btn btn-0" onclick="addZero()">0</div>
<div class="btn btn-." onclick="addDec()">.</div>
<div class="btn btn-mod" onclick="absolute()">mod</div>
</section>
<script src="script.js"></script>
</body>
</html>