forked from 0xvashishth/CalcHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (141 loc) · 4.81 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
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
<!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" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
/>
<link rel="stylesheet" href="./style.css" />
<script src="./app.js"></script>
<title>BaseX Calculator</title>
</head>
<body>
<!--Title-->
<section
class="container justify-content-center bg-white text-primary p-3 rounded-2 w-75"
>
<div class="container">
<div class="justify-content-between text-center">
<h3 class="mb-1 mb-md-0">BaseX-Calculator</h3>
</div>
</div>
</section>
<!--Calculator & About Cards-->
<section class="p-5">
<div class="container">
<div class="row text-center g-4">
<div class="col-md">
<div class="card bg-white text-light">
<div class="card-body text-center">
<div class="h1 mb-4">
<i class="bi bi-calculator ps-2 pe-2 bg-primary pb-2"></i>
</div>
<h3 class="card-title mb-3 dark text-dark">Input</h3>
<input
name="to_convert"
id="to_convert"
type="text"
class="form-control"
placeholder="Enter Number to Convert"
/>
<br />
<input
name="x"
id="x"
type="text"
class="form-control"
placeholder="Enter Base_X"
/>
<br />
<input
name="y"
id="y"
type="text"
class="form-control"
placeholder="Enter Base_Y"
/>
<br />
<a href="#" onclick="convert()" class="btn btn-primary"
>Calculate</a
>
<br /><br />
<div class="input-group news-input">
<input
readonly
id="res"
type="text"
class="form-control"
placeholder="Result"
/>
<button
class="btn btn-success btn-lg"
type="button"
onclick="copyres()"
>
Copy
</button>
</div>
</div>
</div>
</div>
<div class="col-md">
<div class="card bg-white text-light">
<div class="card-body text-center">
<div class="h1 mb-4">
<i class="bi bi-info-circle pb-2 ps-2 pe-2 bg-primary"></i>
</div>
<h3 class="card-title mb-3 text-dark">About</h3>
<ul
class="entry-content text-start text-dark"
style="list-style-type: square"
>
<li>
A calculator that can convert numbers from base-X to base-Y
</li>
<li>
Convert from & to decimal, binary, hexadecimal, octal etc.
</li>
<li>
User can go beyond than the known bases and convert from &
to other bases such as base-15.
</li>
</ul>
<a
href="https://drive.google.com/file/d/19hk7j-5EjiTlxYCXNz8pRKqNv7f1LyaB/view?usp=sharing"
target="_blank"
class="btn btn-danger me-5"
>Tutorial</a
>
<a
href="https://github.com/vasu-1/CalcHub/tree/main/Calculators/BaseX_Calculator#readme"
target="_blank"
class="btn btn-primary ms-5"
>Read More</a
>
<br />
<br />
<h3 class="card-title mb-2 text-dark">
Thank You For Visiting!
</h3>
</div>
</div>
</div>
</div>
</div>
</section>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"
></script>
</body>
</html>