-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (56 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CALCULATOR</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="heading">
<h1 onclick="showhelp(1)" style="height: auto; width: auto;">CALCULATOR</h1>
<p id="help" style="color: rgb(106, 216, 174); visibility: hidden;"></p>
</div>
<div class="body">
<div class="calculator">
<input type="text" id="expin" class="expin" title="expin" value="" placeholder="0000" readonly />
<input type="text" id="result" class="result" value="" title="expin" placeholder="0000" onclick="outputToInput()" readonly />
<div class="buttons">
<button onclick="clearInput('AC')">AC</button>
<button onclick="clearInput('C')">C</button>
<button onclick="appendChar('^')">^</button>
<button onclick="submit()">=</button>
<button onclick="appendChar('1')">1</button>
<button onclick="appendChar('2')">2</button>
<button onclick="appendChar('3')">3</button>
<button onclick="appendChar('+')">+</button>
<button onclick="appendChar('4')">4</button>
<button onclick="appendChar('5')">5</button>
<button onclick="appendChar('6')">6</button>
<button onclick="appendChar('-')">-</button>
<button onclick="appendChar('7')">7</button>
<button onclick="appendChar('8')">8</button>
<button onclick="appendChar('9')">9</button>
<button onclick="appendChar('*')">*</button>
<button onclick="appendChar('.')">.</button>
<button onclick="appendChar('0')">0</button>
<button onclick="appendChar('/')">/</button>
<button onclick="appendChar('%')">%</button>
</div>
</div>
<div class="cli-container">
<div class="cli-output">
<h3 class="history">History</h3>
<pre id="last-command"></pre>
</div>
<div class="cli-input">
<p>Enter expression using your keyboard</p>
<input type="text" oninput="inputChanged()" id="user-input" placeholder="Enter infix expression" />
</br>
<!-- <button id="submit-button" onclick="submit()">Submit</button> -->
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>