-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase64.html
59 lines (59 loc) · 1.89 KB
/
base64.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
<!DOCTYPE html>
<head>
<title>base64 decoder</title>
<script>
window.addEventListener('input', function (e) {
document.getElementsByName("insert").forEach(function(value) {
value.innerHTML = btoa(document.getElementById("userInput").value);
})
}, false);
</script>
<script>
window.addEventListener('input', function (e) {
document.getElementsByName("insert2").forEach(function(value) {
value.innerHTML = atob(document.getElementById("userInput").value);
})
}, false);
</script>
<script>
window.addEventListener('input', function (e) {
document.getElementsByName("insert3").forEach(function(value) {
value.innerHTML = btoa(document.getElementById("fileinput").value);
})
}, false);
</script>
<script>
window.addEventListener('input', function (e) {
document.getElementsByName("insert4").forEach(function(value) {
value.innerHTML = atob(document.getElementById("fileinput").value);
})
}, false);
</script>
<link rel="icon" type="image/x-icon" href="/robux.ico">
<style>
body {font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;}
h1 {font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;}
p {font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;}
a {font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;}
</style>
</head>
<body style="background-color:BlueViolet;">
<header id="header">
<h1>base64 decoder</h1>
<br> </br>
<a href=https://github.com/mr2meowsYT/mr2meowsYT.github.io/raw/main/fortnite.mp3>example file</a>
<br> </br>
<input type="text" id="userInput" value="I Love Balls!1!!1!!!1!!"></input><a> </a>
<input type="file" id="fileinput"></input>
</header>
<main>
<p><b name="insert">encoded text</b>
</p>
<p><b name="insert2">decoded text</b>
</p>
<p><b name="insert3">encoded file</b>
</p>
<p><b name="insert4">decoded file</b>
</p>
</main>
</body>