-
Notifications
You must be signed in to change notification settings - Fork 0
/
Converter.html
695 lines (654 loc) Β· 25.6 KB
/
Converter.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
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Adsense link -->
<meta name="google-adsense-account" content="ca-pub-2873043143634833" />
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2873043143634833"
crossorigin="anonymous"
></script>
<!-- if user Blocks Ad -->
<script
async
src="https://fundingchoicesmessages.google.com/i/pub-2873043143634833?ers=1"
nonce="mQNh2AuWjjzaVy3OqfjziQ"
></script>
<script nonce="mQNh2AuWjjzaVy3OqfjziQ">
(function () {
function signalGooglefcPresent() {
if (!window.frames["googlefcPresent"]) {
if (document.body) {
const iframe = document.createElement("iframe");
iframe.style =
"width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;";
iframe.style.display = "none";
iframe.name = "googlefcPresent";
document.body.appendChild(iframe);
} else {
setTimeout(signalGooglefcPresent, 0);
}
}
}
signalGooglefcPresent();
})();
</script>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-7RX6XQG3YH"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-7RX6XQG3YH");
</script>
<meta charset="UTF-8" />
<meta name="theme-color" content="#f2f2f2" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Converter - GradeGenie</title>
<link rel="shortcut icon" href="./GradeGenius.png" type="image/x-icon" />
<meta
name="description"
content="Convert binary to all , octall to all , decimal to all and hexadecimall to all with ease and a beautifull UI β¨ here."
/>
<meta
name="keywords"
content="binary, octal, hexadecimal, conversion, calculator, GradeGenie,binary to hexa,binarytohexa,binary to octal,binarytooctal,binary to decimal,binarytodecimal,binarytoall,binary to all,octal to hexa,octaltohexa,octal to binary,octaltobinary,octal to decimal,octaltodecimal,octaltoall,octal to all,hexa to binary,hexatobinary,hexa to octal,hexatooctal,hexa to decimal,hexatodecimal,hexatoall,hexa to all,decimal to binary,decimaltobinary,decimal to octal,decimaltooctal,decimal to hexa,decimaltohexa,decimaltoall,decimal to all,binary calculator,binarycaluclator,octal calculator,octalcalculator,hexacalculator,hexa calculator,hexcalculator,calculator and fractions,convert time difference,bin ary,decimal as fractions,convert er,time converter,decimal hexadecimal,binary and decimal,binary numbers to decimal,hexadecimal to binary,binary number to hexadecimal,hexadecimal convert to binary,decimal number to binary,decimal to hexadecimal,decimal calculator,binary to hexadecimal,binary math,hexadecimal convert,calculate hexadecimal,hex calculator"
/>
<link rel="canonical" href="https://gradegenie.site/Converter.html" />
<meta
property="og:title"
content="GradeGenie - Calculate CGPA, SGPA, and GPA"
/>
<meta
property="og:description"
content="Convert binary to all , octall to all , decimal to all and hexadecimall to all with ease and a beautifull UI here."
/>
<meta property="og:type" content="website" />
<meta property="og:image" content="./Gradegenius.png" />
<meta property="og:url" content="https://gradegenie.site/Converter.html" />
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="GradeGenie - Calculate CGPA, SGPA, and GPA"
/>
<meta
name="twitter:description"
content="Convert binary to all , octall to all, decimal to all and hexadecimall to all with ease and a beautifull UI here."
/>
<meta name="robots" content="index, follow" />
<link rel="stylesheet" href="./OtherPages.css" />
<!-- PRE-FETCHING google fonts -->
<!-- Preconnect hint -->
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin />
<!-- DNS Prefetch hint -->
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
</head>
<body>
<div class="slideup-container">
<div class="slideup-bars-container">
<span class="slideup-bar"></span>
<span class="slideup-bar"></span>
<span class="slideup-bar"></span>
<span class="slideup-bar"></span>
<span class="slideup-bar"></span>
</div>
<span class="slideup-tittle">
<h3>GradeGenie</h3>
<h3>Tools</h3>
</span>
</div>
<div class="delayed-link-slide-down-container">
<span class="delayed-link-slidedown-bar"></span>
<span class="delayed-link-slidedown-bar"></span>
<span class="delayed-link-slidedown-bar"></span>
<span class="delayed-link-slidedown-bar"></span>
<span class="delayed-link-slidedown-bar"></span>
</div>
<div class="Menu-bar">
<div class="logo-section-container">
<span class="logo-section">
<img
src="./GradeGenius.png"
loading="lazy"
class="logo"
alt="Logo"
title="Gradegenie Logo"
/>
<h1 class="gradegenie">GradeGenie</h1>
</span>
<span class="menu-icon">
<i class="menu-icon-bar"></i>
<i class="menu-icon-bar"></i>
<i class="menu-icon-bar"></i>
</span>
</div>
<div class="Menu-links">
<a class="Menu-links-link delayed-link" href="https://gradegenie.site/"
>Home</a
>
<a class="Menu-links-link delayed-link active" href="./Converter.html"
>More Tools</a
>
<a class="Menu-links-link delayed-link" href="./About.html">About</a>
<a class="Menu-links-link delayed-link" href="./Contact.html"
>Contact</a
>
<a class="Menu-links-link delayed-link" href="./Terms&Conditions.html"
>Terms</a
>
<a class="Menu-links-link delayed-link" href="./PrivacyPolicy.html"
>PrivacyPolicy</a
>
</div>
</div>
<span class="theme-toggler"></span>
<section>
<div class="buttons-toggler-container">
<div class="buttons-toggler fade-in">
<button class="btn binarytoAllBtn activebtn">Binary to All</button>
<button class="btn octaltoAllBtn">Octal to All</button>
<button class="btn decimaltoAllBtn">Decimal to All</button>
<button class="btn hexatoAllBtn">Hexa to All</button>
</div>
</div>
<div class="converters_sections">
<section class="converter_section active fade-in" id="binarytoAll">
<div>
<label for="binary">Binary:</label>
<input
type="number"
id="binary"
placeholder="Enter binary number"
/>
</div>
<div class="result">
<figure>Result :</figure>
<label for="octal-output-from-binary">Octal : </label>
<input id="octal-output-from-binary" readonly />
<label for="decimal-output-from-binary">Decimal : </label>
<input id="decimal-output-from-binary" readonly />
<label for="hexa-output-from-binary">Hexadecimal : </label>
<input id="hexa-output-from-binary" readonly />
</div>
</section>
<section class="converter_section" id="octaltoAll">
<div>
<label for="octal">Octal:</label>
<input type="number" id="octal" placeholder="Enter octal number" />
</div>
<div class="result">
<figure>Result :</figure>
<label for="binary-output-from-octal">Binary : </label>
<input id="binary-output-from-octal" readonly />
<label for="decimal-output-from-octal">Decimal : </label>
<input id="decimal-output-from-octal" readonly />
<label for="hexa-output-from-octal">Hexadecimal : </label>
<input id="hexa-output-from-octal" readonly />
</div>
</section>
<section class="converter_section" id="decimaltoAll">
<div>
<label for="decimal">Decimal:</label>
<input
type="number"
id="decimal"
placeholder="Enter decimal number"
/>
</div>
<div class="result">
<figure>Result :</figure>
<label for="binary-output-from-decimal">Binary : </label>
<input id="binary-output-from-decimal" readonly />
<label for="octal-output-from-decimal">Octal : </label>
<input id="octal-output-from-decimal" readonly />
<label for="hexa-output-from-decimal">Hexadecimal : </label>
<input id="hexa-output-from-decimal" readonly />
</div>
</section>
<section class="converter_section" id="hexatoAll">
<div>
<label for="hexa">Hexadecimal:</label>
<input type="text" id="hexa" placeholder="Enter Hexa number" />
</div>
<div class="result">
<figure>Result :</figure>
<label for="binary-output-from-hexa">Binary : </label>
<input id="binary-output-from-hexa" readonly />
<label for="octal-output-from-hexa">Octal : </label>
<input id="octal-output-from-hexa" readonly />
<label for="decimal-output-from-hexa">Decimal : </label>
<input id="decimal-output-from-hexa" readonly />
</div>
</section>
</div>
</section>
<hr />
<!-- OPERATIONS SECTIONS -->
<section>
<section class="binary_operations_section">
<h1>Binary Operations</h1>
<div>
<label for="binary1">Binary Number 1:</label>
<input type="number" id="binary1" placeholder="Enter binary number" />
</div>
<div>
<label for="binary2">Binary Number 2:</label>
<input type="number" id="binary2" placeholder="Enter binary number" />
</div>
<div class="binary_operations">
<button class="Opbtn" onclick="performOperation('binary')">
Add
</button>
<button
class="Opbtn"
onclick="performOperation('binary', 'subtract')"
>
Subtract
</button>
<button
class="Opbtn"
onclick="performOperation('binary', 'multiply')"
>
Multiply
</button>
</div>
<div class="result">
<label for="binary-result">Result:</label>
<input type="text" id="binary-result" readonly />
</div>
</section>
<hr />
<section class="octal_operations_section">
<h1>Octal Operations</h1>
<div>
<label for="octal1">Octal Number 1:</label>
<input type="number" id="octal1" placeholder="Enter octal number" />
</div>
<div>
<label for="octal2">Octal Number 2:</label>
<input type="number" id="octal2" placeholder="Enter octal number" />
</div>
<div class="octal_operations">
<button class="Opbtn" onclick="performOperation('octal')">Add</button>
<button class="Opbtn" onclick="performOperation('octal', 'subtract')">
Subtract
</button>
<button class="Opbtn" onclick="performOperation('octal', 'multiply')">
Multiply
</button>
</div>
<div class="result">
<label for="octal-result">Result:</label>
<input type="text" id="octal-result" readonly />
</div>
</section>
<hr />
<section class="hexadecimal_operations_section">
<h1>Hexa Operations</h1>
<div>
<label for="hexadecimal1">Hexadecimal Number 1:</label>
<input
type="text"
id="hexadecimal1"
placeholder="Enter hexadecimal number"
/>
</div>
<div>
<label for="hexadecimal2">Hexadecimal Number 2:</label>
<input
type="text"
id="hexadecimal2"
placeholder="Enter hexadecimal number"
/>
</div>
<div class="hexadecimal_operations">
<button class="Opbtn" onclick="performOperation('hexadecimal')">
Add
</button>
<button
class="Opbtn"
onclick="performOperation('hexadecimal', 'subtract')"
>
Subtract
</button>
<button
class="Opbtn"
onclick="performOperation('hexadecimal', 'multiply')"
>
Multiply
</button>
</div>
<div class="result">
<label for="hexadecimal-result">Result:</label>
<input type="text" id="hexadecimal-result" readonly />
</div>
</section>
</section>
<main>
<h2>Introducing GradeGenie:</h2>
<h4>Your Ultimate Conversion and Calculation Tool</h4>
<p>
Your Ultimate Conversion and Calculation Tool In today's digital age,
the ability to effortlessly convert between different number systems and
perform complex calculations is essential for students, professionals,
and enthusiasts alike. Whether you're working with binary, decimal,
hexadecimal, or octal numbers, having a reliable and efficient tool at
your disposal can make all the difference. This is where GradeGenie
comes in. GradeGenie is a powerful online tool designed to simplify the
process of converting between various number systems and performing
arithmetic operations on binary, hexadecimal, and octal numbers. With
its user-friendly interface and robust functionality, GradeGenie is set
to become your go-to solution for all your conversion and calculation
needs. Conversions Made Easy With GradeGenie, you can seamlessly convert
numbers between binary, decimal, hexadecimal, and octal formats with
just a few clicks.
</p>
<p>
Whether you need to convert a binary number to its decimal equivalent or
an octal number to its hexadecimal representation, GradeGenie has got
you covered. The intuitive interface ensures that you can perform these
conversions quickly and accurately, saving you valuable time and effort.
</p>
<p>
Arithmetic Operations on Different Number Systems In addition to its
conversion capabilities, GradeGenie also enables you to perform
arithmetic operations on binary, hexadecimal, and octal numbers. Whether
you need to add, subtract, or multiply numbers in these different
formats, GradeGenie provides a convenient platform to carry out these
calculations with precision. This feature is particularly valuable for
students and professionals working in fields such as computer science,
engineering, and mathematics.
</p>
<h2>User-Friendly Interface</h2>
<p>
GradeGenie boasts a clean and intuitive interface that makes it easy for
users to navigate and utilize its features. Whether you're a seasoned
professional or a student just beginning to explore the world of number
systems, GradeGenie's user-friendly design ensures that you can access
its functionalities with ease. The tool is accessible from any device
with an internet connection, making it a versatile and convenient
resource for users on the go.
</p>
<h2>Why Choose GradeGenie?</h2>
<p>
GradeGenie stands out as a comprehensive and reliable tool for all your
conversion and calculation needs. Whether you're a student tackling
complex math problems or a professional working with different number
systems, GradeGenie offers a seamless and efficient solution. By
simplifying the process of converting between number systems and
performing arithmetic operations, GradeGenie empowers users to focus on
their core tasks without getting bogged down by tedious calculations. In
conclusion, GradeGenie is a game-changing tool that simplifies the
process of converting between different number systems and performing
arithmetic operations on binary, hexadecimal, and octal numbers. With
its user-friendly interface and robust functionality, GradeGenie is
poised to become an indispensable resource for students, professionals,
and enthusiasts across various fields. Experience the convenience and
efficiency of GradeGenie for yourself and elevate your conversion and
calculation capabilities to new heights.
</p>
</main>
<footer>
© 2024 Grade Genie. All rights reserved.
<span
>Download App π
<a download="./Gradegenie.apk" href="./Gradegenie.apk"
>Gradegenie</a
></span
>
<span>It will show some warning but it's 100% Safe.</span>
</footer>
<script>
//FOR OPERATIONS SECTIONS
function performOperation(type, operation = "add") {
const input1 = document.getElementById(`${type}1`).value;
const input2 = document.getElementById(`${type}2`).value;
if (
!isValidInput(input1, getTypeBase(type)) ||
!isValidInput(input2, getTypeBase(type))
) {
alert("Please enter valid numbers for the operation.");
return;
}
let result;
switch (operation) {
case "add":
result = (
parseInt(input1, getTypeBase(type)) +
parseInt(input2, getTypeBase(type))
).toString(getTypeBase(type));
break;
case "subtract":
result = (
parseInt(input1, getTypeBase(type)) -
parseInt(input2, getTypeBase(type))
)
.toString(getTypeBase(type))
.toUpperCase();
break;
case "multiply":
result = (
parseInt(input1, getTypeBase(type)) *
parseInt(input2, getTypeBase(type))
).toString(getTypeBase(type));
break;
}
document.getElementById(`${type}-result`).value = result;
}
function getTypeBase(type) {
switch (type) {
case "binary":
return 2;
case "octal":
return 8;
case "hexadecimal":
return 16;
default:
return 10;
}
}
function isValidInput(input, base) {
switch (base) {
case 2:
return /^[01]+$/.test(input);
case 8:
return /^[0-7]+$/.test(input);
case 16:
return /^[0-9A-Fa-f]+$/.test(input);
default:
return /^\d+$/.test(input);
}
}
</script>
<script defer src="Otherpages.js"></script>
<script>
//BINARY TO ALL :
var binaryInput = document.getElementById("binary");
let octal_output_from_binary = document.getElementById(
"octal-output-from-binary"
);
let decimal_output_from_binary = document.getElementById(
"decimal-output-from-binary"
);
let hexa_output_from_binary = document.getElementById(
"hexa-output-from-binary"
);
binaryInput.addEventListener("input", (e) => {
let binaryValue = binaryInput.value;
if (binaryValue !== "") {
if (/^[01]+$/.test(binaryValue)) {
binaryInput.style.background = "transparent";
octal_output_from_binary.value = parseInt(binaryValue, 2).toString(
8
);
decimal_output_from_binary.value = parseInt(
binaryValue,
2
).toString(10);
hexa_output_from_binary.value = parseInt(binaryValue, 2)
.toString(16)
.toUpperCase();
} else {
binaryInput.style.background = "crimson";
}
} else {
octal_output_from_binary.value = "";
decimal_output_from_binary.value = "";
hexa_output_from_binary.value = "";
}
});
//OCTAL TO ALL :
let octalInput = document.getElementById("octal");
let binary_output_from_octal = document.getElementById(
"binary-output-from-octal"
);
let decimal_output_from_octal = document.getElementById(
"decimal-output-from-octal"
);
let hexa_output_from_octal = document.getElementById(
"hexa-output-from-octal"
);
octalInput.addEventListener("input", () => {
let octalValue = octalInput.value;
if (octalValue !== "") {
if (/^[0-7]+$/.test(octalValue)) {
octalInput.style.background = "transparent";
binary_output_from_octal.value = parseInt(octalValue, 8).toString(
2
);
decimal_output_from_octal.value = parseInt(octalValue, 8).toString(
10
);
hexa_output_from_octal.value = parseInt(octalValue, 8)
.toString(16)
.toUpperCase();
} else {
octalInput.style.background = "crimson";
}
} else {
binary_output_from_octal.value = "";
decimal_output_from_octal.value = "";
hexa_output_from_octal.value = "";
}
});
//DECIMAL TO ALL :
let decimalInput = document.getElementById("decimal");
let binary_output_from_decimal = document.getElementById(
"binary-output-from-decimal"
);
let octal_output_from_decimal = document.getElementById(
"octal-output-from-decimal"
);
let hexa_output_from_decimal = document.getElementById(
"hexa-output-from-decimal"
);
decimalInput.addEventListener("input", () => {
let decimalValue = decimalInput.value;
if (decimalValue !== "") {
if (/^\d+$/.test(decimalValue)) {
decimalInput.style.background = "transparent";
binary_output_from_decimal.value = parseInt(
decimalValue,
10
).toString(2);
octal_output_from_decimal.value = parseInt(
decimalValue,
10
).toString(8);
hexa_output_from_decimal.value = parseInt(decimalValue, 10)
.toString(16)
.toUpperCase();
} else {
decimalInput.style.background = "crimson";
}
} else {
binary_output_from_decimal.value = "";
octal_output_from_decimal.value = "";
hexa_output_from_decimal.value = "";
}
});
//HEXA TO ALL:
let hexaInput = document.getElementById("hexa");
let binary_output_from_hexa = document.getElementById(
"binary-output-from-hexa"
);
let octal_output_from_hexa = document.getElementById(
"octal-output-from-hexa"
);
let decimal_output_from_hexa = document.getElementById(
"decimal-output-from-hexa"
);
hexaInput.addEventListener("input", () => {
let hexaValue = hexaInput.value;
if (hexaValue !== "") {
if (/^[0-9A-Fa-f]+$/.test(hexaValue)) {
hexaInput.style.background = "transparent";
binary_output_from_hexa.value = parseInt(hexaValue, 16).toString(2);
octal_output_from_hexa.value = parseInt(hexaValue, 16).toString(8);
decimal_output_from_hexa.value = parseInt(hexaValue, 16).toString(
10
);
} else {
hexaInput.style.background = "crimson";
}
} else {
binary_output_from_hexa.value = "";
octal_output_from_hexa.value = "";
decimal_output_from_hexa.value = "";
}
});
let converter_sections = document.querySelectorAll(".converter_section");
let binarytoallsection = document.getElementById("binarytoAll");
let octaltoallsection = document.getElementById("octaltoAll");
let hexatoallsection = document.getElementById("hexatoAll");
let decimaltoallsection = document.getElementById("decimaltoAll");
let buttons = document.querySelectorAll(".btn");
buttons.forEach((btn) => {
//ADDING ACTIVE CLASS TO THE CLICKED BUTTON
btn.addEventListener("click", (event) => {
buttons.forEach((btn) => {
btn.classList.remove("activebtn");
});
event.target.classList.add("activebtn");
//ADDING / REMOVING ACTIVE CLASS FROM SECTIONS BASED ON BUTTON CLICKED
converter_sections.forEach((section) => {
section.classList.remove("active");
});
const clickedButton = event.target;
if (clickedButton.classList.contains("binarytoAllBtn")) {
binarytoallsection.classList.add("active");
} else if (clickedButton.classList.contains("octaltoAllBtn")) {
octaltoallsection.classList.add("active");
} else if (clickedButton.classList.contains("hexatoAllBtn")) {
hexatoallsection.classList.add("active");
} else if (clickedButton.classList.contains("decimaltoAllBtn")) {
decimaltoallsection.classList.add("active");
}
});
});
</script>
<script src="https://unpkg.com/@studio-freight/lenis@1.0.42/dist/lenis.min.js"></script>
<script>
const lenis = new Lenis();
function raf(time) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);
</script>
</body>
</html>
<style>
label {
display: block;
margin-bottom: 5px;
}
.result {
margin-top: 20px;
}
</style>