-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
425 lines (406 loc) · 21.5 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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Atlas | Web Converter</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css">
<link href="design.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="/MultiConverter">Converter</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto">
<li class="nav-item"> <!-- JAVASCRIPT:VOID(0) TO HIDE # AS HREF -->
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('metric')">Metric</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('imperial')">Imperial</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('currency')">Currency</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('decimal-to-binary')">Binary</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('youtube')">Youtube</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('qr')">QR Maker</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('color-pal')">Color Code</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('emojis')">Emojis</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('password-gen')">Password Gen</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="openConverter('gamertag')">Gamer Tag</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- METRIC CONVERSION MENU -->
<div class="container mt-5" id="metric">
<h1 class="mb-4 text-center text-success">Metric to Imperial Converter</h1>
<h3 class="mb-4 text-center">Select A Value To Convert</h3>
<div class="row">
<div class="col">
<select class="form-select mb-3" id="metric-selection" onchange="switchMetric()">
<optgroup label="Area">
<option value="hectares-acres">Hectares to Acres</option>
<option value="m2-ft2">Square Meter (m2) to Square Feet (ft2)</option>
</optgroup>
<optgroup label="Length">
<option value="km-mi">Kilometers <label class="fw-bold">(KM)</label> to Miles (mi)</option>
<option value="km-m">Kilometers (KM) to Meters (M)</option>
<option value="m-ft">Meters (M) to Feet (ft)</option>
<option value="m-yd">Meters (M) to Yards (yd)</option>
<option value="m-km">Meters (M) to Kilometers (KM)</option>
<option value="m-cm">Meters (M) to Centimeters (CM)</option>
<option value="m-mm">Meters (M) to Millimeters (MM)</option>
<option value="cm-mm">Centimeters (CM) to Millimeters (MM)</option>
<option value="cm-in">Centimeters (CM) to Inches (in)</option>
<option value="mm-in">Millimeters (MM) to Inches (in)</option>
<option value="mm-cm">Millimeters (MM) to Centimeters (CM)</option>
</optgroup>
<optgroup label="Speed">
<option value="kph-mph">Kilometers Per Hour (KPH) to Miles Per Hour (MPH)</option>
<option value="kpl-mpg">Kilometers Per Liter (KPL) to Miles Per Gallon (MPG)</option>
</optgroup>
<optgroup label="Temperature">
<option value="c-f">Celsius (C) to Farenheit (F)</option>
</optgroup>
<optgroup label="Volume">
<option value="cl-fl">Centiliters (cL) to Fluid Ounces (fl oz.)</option>
<option value="kl-gal">Kiloliters (KL) to Gallons (gal)</option>
<option value="l-fl">Liters (L) to Fluid Ounces (fl oz.)</option>
<option value="l-gal">Liters (L) to Gallons (gal)</option>
<option value="ml-fl">Milliliters (mL) to Fluid Ounces (fl oz.)</option>
<option value="ml-l">Milliliters (mL) to Liters (L)</option>
<option value="cl-l">Centiliters (cl) to Liters (L)</option>
<option value="kl-l">Kiloliters (KL) to Liters (L)</option>
<option value="kl-ml">Kiloliters (KL) to Milliliters (mL)</option>
<option value="l-ml">Liter (L) to Milliliters (mL)</option>
<option value="l-cl">Liter (L) to Centiliters (cL)</option>
<option value="l-kl">Liter (L) to Kiloliters (KL)</option>
</optgroup>
<optgroup label="Weight">
<option value="g-oz">Grams (G) to Ounces (oz)</option>
<option value="kg-lb">Kilograms (KG) to Pounds (lbs)</option>
<option value="kg-st">Kilograms (KG) to Stone (st)</option>
<option value="mg-oz">Milligrams (MG) to Ounces (oz)</option>
<option value="ton-lb">Metric Tons (TON) to Pounds (lbs)</option>
<option value="ton-st">Metric Tons (TON) to Stone (st)</option>
<option value="g-kg">Grams (G) to Kilograms (KG)</option>
<option value="mg-g">Milligrams (MG) to Grams (G)</option>
<option value="mg-kg">Milligrams (MG) to Kilograms (KG)</option>
<option value="kg-g">Kilograms (KG) to Grams (G)</option>
<option value="g-mg">Grams (G) to Milligrams (MG)</option>
<option value="kg-mg">Kilograms (KG) to Milligrams (MG)</option>
</optgroup>
</select>
<input type="number" class="form-control mb-3" id="valueInputMetric" placeholder="Enter value" value="0">
<button class="btn btn-success d-block mx-auto mb-3" onclick="convertMetric()">Convert</button>
<div class="card mt-4" id="resultCardMetric" style="display:none;">
<div class="card-body bg-success text-white text-center">
<h5 class="card-title">Result</h5>
<hr>
<p class="card-text display-4" id="resultLabelMetric"></p>
</div>
</div>
</div>
</div>
</div>
<!-- IMPERIAL CONVERSION MENU -->
<div class="container mt-5" id="imperial" style="display:none;">
<h1 class="mb-4 text-center text-primary">Imperial to Metric Converter</h1>
<h3 class="mb-4 text-center">Select A Value To Convert</h3>
<div class="row">
<div class="col">
<select class="form-select mb-3" id="imperial-selection" onchange="switchImperial()">
<optgroup label="Area">
<option value="ft2-m2">Square Feet (ft2) to Square Meter (m2)</option>
<option value="acres-hectares">Acres to Hectares</option>
</optgroup>
<optgroup label="Length">
<option value="in-mm">Inches (in.) to Millimeters (MM)</option>
<option value="in-cm">Inches (in.) to Centimeters (CM)</option>
<option value="ft-m">Feet (ft.) to Meters (M)</option>
<option value="yd-m">Yards (yd) to Meters (M)</option>
<option value="mi-km">Miles (mi) to Kilometers (KM)</option>
</optgroup>
<optgroup label="Speed">
<option value="mph-kph">Miles Per Hour (MPH) to Kilometers Per Hour (KPH)</option>
</optgroup>
<optgroup label="Volume">
<option value="fl-ml">Fluid Ounces (fl oz.) to Milliliters (mL)</option>
<option value="fl-l">Fluid Ounces (fl oz.) to Liters (L)</option>
<option value="gal-l">Gallons (gal) to Liters (L)</option>
</optgroup>
<optgroup label="Weight">
<option value="oz-mg">Ounces (oz) to Milligrams (MG)</option>
<option value="oz-g">Ounces (oz) to Grams (G)</option>
<option value="lb-g">Pounds (lbs) to Grams (G)</option>
<option value="st-kg">Stone (st) to Kilograms (KG)</option>
<option value="st-ton">Stone (st) to Metric Tons (TON)</option>
</optgroup>
<optgroup label="Temperature">
<option value="f-c">Fahrenheit (F) to Celsius (C)</option>
</optgroup>
</select>
<input type="number" class="form-control mb-3" id="valueInputImperial" placeholder="Enter value" value="0">
<button class="btn btn-primary d-block mx-auto mb-3" onclick="convertImperial()">Convert</button>
<div class="card" id="resultCardImperial" style="display:none;">
<div class="card-body bg-primary text-white text-center">
<h5 class="card-title">Result</h5>
<hr>
<p class="card-text display-4" id="resultLabelImperial"></p>
</div>
</div>
</div>
</div>
</div>
<!-- CURRENCY -->
<div class="container mt-5" id="currency" style="display:none;">
<h1 class="mb-4 text-center text-warning">Currency Converter</h1>
<h3 class="mb-4 text-center">Select Currencies</h3>
<div class="row">
<div class="col">
<select class="form-select mb-3" id="currency-from-selection">
<option value="USD">USD (United States Dollar)</option>
<option value="EUR">EUR (Euro)</option>
<option value="GBP">GBP (British Pound Sterling)</option>
<option value="JPY">JPY (Japanese Yen)</option>
<option value="AUD">AUD (Australian Dollar)</option>
<option value="CAD">CAD (Canadian Dollar)</option>
<option value="CHF">CHF (Swiss Franc)</option>
<option value="CNY">CNY (Chinese Yuan Renminbi)</option>
<option value="SEK">SEK (Swedish Krona)</option>
<option value="NZD">NZD (New Zealand Dollar)</option>
<option value="KRW">KRW (South Korean Won)</option>
<option value="SGD">SGD (Singapore Dollar)</option>
<option value="NOK">NOK (Norwegian Krone)</option>
<option value="MXN">MXN (Mexican Peso)</option>
<option value="INR">INR (Indian Rupee)</option>
<option value="BRL">BRL (Brazilian Real)</option>
<option value="RUB">RUB (Russian Ruble)</option>
<option value="ZAR">ZAR (South African Rand)</option>
</select>
<div class="text-center">
<label class="mb-3"><strong>TO</strong></label>
</div>
<select class="form-select mb-3" id="currency-to-selection">
<option value="USD">USD (United States Dollar)</option>
<option value="EUR">EUR (Euro)</option>
<option value="GBP">GBP (British Pound Sterling)</option>
<option value="JPY">JPY (Japanese Yen)</option>
<option value="AUD">AUD (Australian Dollar)</option>
<option value="CAD">CAD (Canadian Dollar)</option>
<option value="CHF">CHF (Swiss Franc)</option>
<option value="CNY">CNY (Chinese Yuan Renminbi)</option>
<option value="SEK">SEK (Swedish Krona)</option>
<option value="NZD">NZD (New Zealand Dollar)</option>
<option value="KRW">KRW (South Korean Won)</option>
<option value="SGD">SGD (Singapore Dollar)</option>
<option value="NOK">NOK (Norwegian Krone)</option>
<option value="MXN">MXN (Mexican Peso)</option>
<option value="INR">INR (Indian Rupee)</option>
<option value="BRL">BRL (Brazilian Real)</option>
<option value="RUB">RUB (Russian Ruble)</option>
<option value="ZAR">ZAR (South African Rand)</option>
</select>
<input type="number" class="form-control mb-3" id="valueInputCurrency" placeholder="Enter value" value="0">
<button class="btn btn-warning d-block text-white mx-auto mb-3" onclick="convertCurrency()">Convert</button>
<div class="card" id="resultCardCurrency" style="display:none;">
<div class="card-body bg-warning text-white text-center">
<h5 class="card-title">Result</h5>
<hr>
<p class="card-text display-4" id="resultLabelCurrency"></p>
</div>
</div>
<div class="text-center">
<p>Exchange rates provided by <a href="https://www.exchangerate-api.com">Exchange Rate API</a></p>
</div>
</div>
</div>
</div>
<!-- DECIMAL TO BINARY -->
<div class="container mt-5" id="decimal-to-binary" style="display:none;">
<h1 class="mb-4 text-center text-danger">Decimal to Binary Converter</h1>
<div class="text-center mb-3">
<button class="btn btn-danger" onclick="openConverter('binary-to-decimal')">⇄</button>
</div>
<h3 class="mb-4 text-center">Enter Decimal Number</h3>
<div class="row">
<div class="col">
<input type="number" class="form-control mb-3" id="decimalInput" placeholder="Enter decimal number">
<button class="btn btn-danger d-block mx-auto mb-3" onclick="convertDecimalToBinary()">Convert</button>
<div class="card" id="resultCardDecimalToBinary" style="display:none;">
<div class="card-body bg-danger text-white text-center">
<h5 class="card-title">Binary Representation</h5>
<hr>
<text>BINARY</text>
<p class="card-text display-4" id="resultLabelDecimalToBinary"></p>
<hr>
<text>16 BIT</text>
<p class="card-text display-4" id="resultLabelDecimalToBinary16Bits"></p>
<hr>
<text>8 BIT</text>
<p class="card-text display-4" id="resultLabelDecimalToBinary8Bits"></p>
</div>
</div>
</div>
</div>
</div>
<!-- BINARY TO DECIMAL -->
<div class="container mt-5" id="binary-to-decimal" style="display:none;">
<h1 class="mb-4 text-center text-danger">Binary to Decimal Converter</h1>
<div class="text-center mb-3">
<button class="btn btn-danger" onclick="openConverter('decimal-to-binary')">⇄</button>
</div>
<h3 class="mb-4 text-center">Enter Binary Number</h3>
<div class="row">
<div class="col">
<input type="number" class="form-control mb-3" id="binaryInput" placeholder="Enter binary number">
<button class="btn btn-danger d-block mx-auto mb-3" onclick="convertBinaryToDecimal()">Convert</button>
<div class="card" id="resultCardBinaryToDecimal" style="display:none;">
<div class="card-body bg-danger text-white text-center">
<h5 class="card-title">Decimal Representation</h5>
<hr>
<p class="card-text display-4" id="resultLabelBinaryToDecimal"></p>
</div>
</div>
</div>
</div>
</div>
<!-- YOUTUBE -->
<div class="container mt-5" id="youtube" style="display:none;">
<h1 class="mb-4 text-center text-primary">YouTube Video Downloader</h1>
<div class="row">
<div class="col-md-6 offset-md-3">
<h2 class="text-center mb-4">Link</h2>
<div class="input-group mb-3">
<input type="text" id="videoUrl" class="form-control" placeholder="Enter YouTube video URL">
<div class="input-group-append">
<button class="btn btn-primary" type="button" onclick="downloadVideo()">Download</button>
</div>
</div>
<div class="text-center">
<label>🎵 Powered by <a href="https://www.y2mate.com/">y2mate</a> 🎵</label>
</div>
</div>
</div>
</div>
<!-- QR CODE MAKER -->
<div class="container mt-5" id="qr" style="display:none;">
<h1 class="mb-4 text-center text-primary">QR Code Creator</h1>
<div class="justify-content-center">
<h3 class="mb-4 text-center">Enter text or url to generate QR</h3>
<div class="col text-center">
<input type="text" class="form-control mb-3" id="textInput" placeholder="Enter URL or Text" min="1" maxlength="300">
<button type="button" class="btn btn-primary mb-3" onclick="generateQR()">Generate QR Code</button>
</div>
</div>
<div class="qr-container d-flex flex-wrap justify-content-center">
</div>
</div>
<!-- Color Picker -->
<div class="container mt-5" id="color-pal" style="display:none;">
<h1 class="mb-4 text-center text-primary">Color Code Lookup</h1>
<div class="row justify-content-center">
<div class="col-md-6">
<h1 class="text-center mb-4">Select Color</h1>
<div class="form-group mb-3 text-center">
<label for="colorPicker">Pick</label>
<div id="colorPicker" class="form-control"></div>
</div>
<div class="input-group mb-3">
<label for="hexInput" class="input-group-text">Hex</label>
<input type="text" id="hexInput" class="form-control" readonly />
<button class="btn btn-primary" onclick="copyToClipboard('hexInput')">Copy</button>
</div>
<div class="input-group mb-3">
<label for="rgbInput" class="input-group-text">RGB</label>
<input type="text" id="rgbInput" class="form-control" readonly />
<button class="btn btn-primary" onclick="copyToClipboard('rgbInput')">Copy</button>
</div>
<div class="input-group mb-3">
<label for="hslInput" class="input-group-text">HSL</label>
<input type="text" id="hslInput" class="form-control" readonly />
<button class="btn btn-primary" onclick="copyToClipboard('hslInput')">Copy</button>
</div>
</div>
</div>
</div>
<!-- EMOJIS -->
<div class="container mt-5" id="emojis" style="display:none;">
<h1 class="mb-4 text-center">Emoji List</h1>
<input type="text" id="searchInput" class="form-control mb-4" placeholder="Search emojis by name...">
<div id="emojiContainer" class="row row-cols-1 row-cols-md-4 g-4">
<!-- Emojis here -->
</div>
</div>
<!-- password gen -->
<div class="container mt-5" id="password-gen" style="display:none;">
<h1 class="mb-4">Password Generator</h1>
<div class="mb-3">
<label for="lengthInput" class="form-label">Password Length</label>
<input type="number" id="lengthInput" class="form-control" max="256">
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="includeUppercase">
<label class="form-check-label" for="includeUppercase">Include Uppercase Letters</label>
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="includeLowercase">
<label class="form-check-label" for="includeLowercase">Include Lowercase Letters</label>
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="includeNumbers">
<label class="form-check-label" for="includeNumbers">Include Numbers</label>
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="includeSymbols">
<label class="form-check-label" for="includeSymbols">Include Symbols</label>
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="excludeAmbiguous">
<label class="form-check-label" for="excludeAmbiguous">Exclude Characters (e.g., 'l', '1', 'O', '0')</label>
</div>
<button id="generateButton" class="btn btn-primary">Generate Password</button>
<div id="passwordDisplay" class="mt-3 text-center bg-light p-3 rounded"></div>
</div>
<!--gamer tag-->
<div class="container py-5" style="display:none;" id="gamertag">
<h1 class="text-center mb-4">Gamer Tag Generator</h1>
<div class="text-center mb-4">
<button id="genButton" class="btn btn-lg btn-success">Generate Gamer Tag</button>
</div>
<div id="nameDisplay" class="text-center display-4 fw-bold"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simonwep/pickr"></script>
<script src="emojis.js"></script>
<script src="color.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="qrcode.min.js"></script>
<script src="main.js"></script>
</body>
<footer class="text-center mt-5">
<p>Written By <strong>cFunkz</strong>!</p>
</footer>
</html>