-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (131 loc) · 7.98 KB
/
index.html
File metadata and controls
160 lines (131 loc) · 7.98 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CALCULATOR APP</title>
<!-- add icon link -->
<link rel = "icon" href="Images/calculator.ico" type = "image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="simple.css">
<link href="https://fonts.googleapis.com/css2?family=Arvo&display=swap" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<img src="Images/calculator.png" alt="calculator Icon" width="50px" height="50px" style="margin-right: 30px;">
<a class="navbar-brand" href="#">CALCULATORS</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a style="color: blue;" class="nav-link" href="index.html">Home<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a style="color: blue;" class="nav-link" href="simple.html">Simple calculator</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button style="font-size: 23px;opacity: 3;" type="submit">Search</button>
</form>
</div>
</nav>
<div id="left">
<h1 style="color: rgb(240, 240, 240); background-color: transparent; width: fit-content; text-shadow: 2px 3px 3px blue;">About: </h1>
<p style="background-color: transparent; color: beige; text-shadow: 2px 3px 3px blue; font-size: 20px;">This is a simple calculator with the limited amount of functions of scientific calculations
</p>
</div>
<div class="container-sm" id="main">
<h1 style="color: aliceblue; box-shadow: 5px 5px 2px 2px lightblue;">CALCULATOR WEB APP</h1>`
<h1 style="font-family: 'Arvo', serif;color: rgb(54, 27, 129);font-weight: bolder; box-shadow: 3px 3px 5px 4px gold; background-color: antiquewhite;">Scientific Calculator</h1>
<button style="width: fit-content; font-size: 30px; background-color: black; color: white;" onclick="HideShow()"><a style="color: inherit; text-decoration: none; font-size: 20px;" href="#history">Double CLICK HERE TO VIEW HISTORY</a></button>
<div>
<p id="show"></p>
<input type="text" id="screen">
</div>
<div id="scientific">
<div>
<button style="color: red; opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getPercentage()">%</button>
<button style="color: rgb(230, 113, 3); opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="logFunction()">log</button>
<button style="color: rgb(181, 233, 235); opacity: 1; background-color: rgb(23, 3, 32);" class="btn" onclick="clearResult()">C</button>
<button style="background-color: rgb(3, 3, 3); opacity: 1;color: rgb(235, 233, 236);" class="btn" onclick="getBack()">CE</button>
</div>
<div>
<button style="color: red; opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getNLog()">ln</button>
<button style="color: red; opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getE()">e</button>
<button style="color: red; opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getsqrt()">√</button>
<button style="color: red; opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getNumber(')')">)</button>
</div>
<div>
<button style="color: red; opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getNumber('1/')">1/x</button>
<button style="color: rgb(36, 156, 32); opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getSquare()">x<sup>2</sup></button>
<button style="color: rgb(31, 180, 39); opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getCube()">x<sup>3</sup></button>
<button style="color: rgb(5, 25, 116); opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getNumber('/')">/</button>
</div>
<div>
<button style="color: red; opacity: 1; background-color: rgb(22, 6, 37);" class="btn" onclick="getSin()">sin</button>
<button style="color: red; opacity: 1; background-color: rgb(22, 6, 37);" class="btn" onclick="getCos()">cos</button>
<button style="color: red; opacity: 1; background-color: rgb(22, 6, 37);" class="btn" onclick="getTan()">tan</button>
<button style="color: red; opacity: 1; background-color: rgb(235, 233, 236);" class="btn" onclick="getNumber('(')">(</button>
</div>
</div>
<div id="simple">
<div>
<button class="btn" onclick="getNumber('7')">7</button>
<button class="btn" onclick="getNumber('8')">8</button>
<button class="btn" onclick="getNumber('9')">9</button>
<button style="background-color: aliceblue; color: black;" class="btn" onclick="getNumber('*')">X</button>
</div>
<div>
<button class="btn" onclick="getNumber('4')">4</button>
<button class="btn" onclick="getNumber('5')">5</button>
<button class="btn" onclick="getNumber('6')">6</button>
<button style="background-color: aliceblue; color: black; border: 0.5px solid black;" class="btn" onclick="getNumber('-')">-</button>
</div>
<div>
<button class="btn" onclick="getNumber('1')">1</button>
<button class="btn" onclick="getNumber('2')">2</button>
<button class="btn" onclick="getNumber('3')">3</button>
<button style="background-color: aliceblue; color: black; border: 0.5px solid black;" class="btn" onclick="getNumber('+')">+</button>
</div>
<div>
<button class="btn" onclick="getPI()">π</button>
<button class="btn" onclick="getNumber('0')">0</button>
<button class="btn" onclick="getNumber('.')">.</button>
<button class="btn" style="background-color: green;" onclick="getResult()">=</button>
</div>
</div>
<div id="history">
<table>
<tr>
<td style="margin: 10px;"><ol id="listinput"><span style="font-size: 40px;color: red;background-color: aliceblue;">Input</span></ol></td>
<td style="margin-left: 50px; color: black;"><ul style="list-style-type: circle;" id="list"><span style="font-size: 40px; color: rgb(34, 114, 27); background-color: aliceblue;">Output</span></ol></td>
<td style="margin-left: 50px; color: black;"><ul style="list-style-type: circle;" id="listtime"><span style="font-size: 40px; color: rgb(221, 243, 24); background-color: aliceblue;">Time</span></ol></td>
<hr>
</tr>
</table>
</div>
</div>
</div>
<div id="right">
<h1 style="font-weight: bolder; color: rgb(250, 250, 250); text-shadow: 2px 3px 3px red; width: fit-content;">Features: </h1>
<ul>
<li><a style="color:rgb(237, 239, 241); " href="index.html">Simple Calculator</a></li>
<li><a style="color:rgb(254, 254, 255); " href="scientific.html">Scientific Calculator</a></li>
<li style="color:rgb(2, 16, 27);" >About developer
<ul style="color:rgb(2, 16, 27);">
<li>Name: Muhammad Bilal</li>
<li>Student</li>
</ul>
</li>
</ul>
</div>
</body>
<script src="app.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</html>