-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (55 loc) · 2.64 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="base64 coding">
<meta name="keywords" content="base64,encoding,decoding">
<meta name="author" content="Sandeep Sala">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Base64</title>
<link rel="icon" href="https://i.postimg.cc/NF3M4ryF/circle-cropped.png" type="image/icon type">
<link rel="stylesheet" type="text/css" href="src/css/app.css">
</head>
<body>
<h3>Base64 Encode/Decode</h3>
<section class="main-container">
<div class="tab">
<button class="tablinks" onclick="openTabs(event, 'Tab1')" id="defaultOpen">String</button>
<button class="tablinks" onclick="openTabs(event, 'Tab2')">Image</button>
</div>
<div id="Tab1" class="tabcontent">
<section class="main-contain">
<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" id="input1"></textarea>
<div>
<select id="code_type">
<option value="1">Encode</option>
<option value="2">Decode</option>
</select>
<button onclick="base64()" id="code_submit">GO!</button>
</div>
<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" id="output1"></textarea>
</section>
</div>
<div id="Tab2" class="tabcontent">
<section class="main-contain">
<div style="display: flex;justify-content: space-between;">
<input type="file" id="image_input1" accept="image/*" />
<button onclick="encodeImageFileAsURL()" id="code_image_submit">Encode</button>
</div>
<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" id="image_output1"></textarea>
</section>
<hr>
<section class="main-contain">
<div id="img_contineer">
<textarea autocomplete="off" autocorrect="off" style="width: 50%;" autocapitalize="off" spellcheck="false" id="encode_input01"></textarea>
<a href="#" id="image_display" style="height: 12.5em;width: 48%;">
</a>
</div>
<button onclick="decodeImage()" id="code_image_submit">Decode</button>
</section>
</div>
</section>
<footer class="main-div_footer">Made With ❤️ ~ <b>Sandeep Sala</b></footer>
<script src="src/js/app.js"></script>
</body>
</html>