-
Notifications
You must be signed in to change notification settings - Fork 0
/
and.html
211 lines (184 loc) · 10.3 KB
/
and.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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AND Calculator</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="bitwise.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="head">
<nav class="navbar navbar-expand-lg bg-primary navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Calculator</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-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 me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<!-- <a class="nav-link active" href="about.html">About</a> -->
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle active" href="#" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
Operations
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="xor.html">XOR</a></li>
<li><a class="dropdown-item" href="and.html">AND</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="or.html">OR</a></li>
</ul>
</li>
<li class="nav-item">
<!-- <a class="nav-link disabled">Disabled</a> -->
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-danger" type="submit">Search</button>
</form>
<!-- <div class="mx-2">
<button class="btn btn-danger ms-5 px-3" data-bs-toggle="modal"
data-bs-target="#LoginModal">Login</button>
<button class="btn btn-danger" data-bs-toggle="modal"
data-bs-target="#SignupModal">Signup</button>
</div> -->
</div>
</div>
</nav>
<!--Login Modal -->
<div class="modal fade" id="LoginModal" tabindex="-1" aria-labelledby="LoginModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="LoginModalLabel">LogIn to Calculator</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!--SignUp Modal -->
<div class="modal fade" id="SignupModal" tabindex="-1" aria-labelledby="SignupModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="SignupModalLabel">SignUp to Calculator</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</header>
<main>
<div class="container-fluid row mt-4">
<div class="col-3 sidebar">
<ul>
<strong>Bitwise operation</strong>
<li><a href="xor.html" target="_blank">XOR</a></li>
<li><a href="and.html" target="_blank">AND</a></li>
<li><a href="or.html" target="_blank">OR</a></li>
<strong>Conversion</strong>
<li><a href="convert.html">Decimal to Binary</a></li>
<li><a href="convert.html">Decimal to Octal</a></li>
<li><a href="convert.html">Decimal to Hexadecimal</a></li>
<li><a href="convert.html">Binary to Decimal</a></li>
<li><a href="convert.html">Binary to Octal</a></li>
<li><a href="convert.html">Binary to Hexadecimal</a></li>
<li><a href="convert.html">Octal to Decimal</a></li>
<li><a href="convert.html">Octal to Binary</a></li>
<li><a href="convert.html">Octal to Hexadecimal</a></li>
<li><a href="convert.html">Hexadecimal to Decimal</a></li>
<li><a href="convert.html">Hexadecimal to Binary</a></li>
<li><a href="convert.html">Hexadecimal to Octal</a></li>
</ul>
</div>
<div class="col-3">
</div>
<div class="col-9 sidebar-2">
<h1 class="text-center">AND Calculator</h1>
<h5 class="text-center bg-warning m-4">Provide two inputs, select input and output types, then Calculate
AND</h5>
<div class="bich">
<div class="box bich">
<div>
<form action="">
<label for="first">Input 1 :</label>
<input type="text" id="first" name="first" placeholder="Enter First Number"
class="mt-4">
<select name="type1" title="Data type of input 1" class="t">
<option value="2" selected="selected">Binary (base 2)</option>
<option value="8">Octal (base 8)</option>
<option value="10">Decimal (base 10)</option>
<option value="16">Hexadecimal (base 16)</option>
</select>
<br>
<label for="second">Input 2 :</label>
<input type="text" id="second" name="second" placeholder="Enter Second Number"
class="mt-4">
<select name="type1" title="Data type of input 1" class="t">
<option value="2" selected="selected">Binary (base 2)</option>
<option value="8">Octal (base 8)</option>
<option value="10">Decimal (base 10)</option>
<option value="16">Hexadecimal (base 16)</option>
</select>
</form>
</div>
<div>
<button type="button" id="calculate"
class="btn btn-outline-success px-5 my-5">Calculate</button>
</div>
<form action="">
<label for="output">Output :</label>
<input type="text" id="output" name="second" placeholder="output" class="mt-2">
<select name="type1" title="Data type of input 1" class="t">
<option value="2" selected="selected">Binary (base 2)</option>
<option value="8">Octal (base 8)</option>
<option value="10">Decimal (base 10)</option>
<option value="16">Hexadecimal (base 16)</option>
</select> <br>
</form>
</div>
<aside>
<p class="text-center">The form calculates the bitwise exclusive. At the bit level, there are
four possibilities, <br>0 <abbr title="AND">&</abbr> 0 = 0 <br>0 <abbr title="AND">&</abbr>
1 = 0 <br>1 <abbr title="AND">&</abbr> 0 = 0 <br>1 <abbr title="AND">&</abbr> 1 =
1<br>Non-binary inputs are converted into their binary equivalents.. View the <a
href="index.html">Home</a> page for more information.</p>
</aside>
</div>
</div>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
crossorigin="anonymous"></script>
<script src="and.js"></script>
</body>
</html>