mirror of
https://github.com/hexahigh/bitlong.git
synced 2025-12-11 20:15:10 +01:00
i wonder if this is too long
This commit is contained in:
parent
f105d0b85d
commit
503db4a754
@ -25,6 +25,8 @@ function createMethod() {
|
||||
out2 = btoa(stringToBinary(urlInput.value))
|
||||
} else if (method.value == "b64_binary_double") {
|
||||
out2 = btoa(stringToBinary(btoa(stringToBinary(urlInput.value))))
|
||||
} else if (method.value == "b64_binary_quadruple") {
|
||||
out2 = btoa(stringToBinary(btoa(stringToBinary(btoa(stringToBinary(btoa(stringToBinary(urlInput.value))))))))
|
||||
}
|
||||
return out2
|
||||
}
|
||||
@ -25,6 +25,7 @@
|
||||
<option value="binary">Binary</option>
|
||||
<option value="b64_binary">Binary + Base64</option>
|
||||
<option value="b64_binary_double">Binary + Base64 * 2</option>
|
||||
<option value="b64_binary_double">Binary + Base64 * 4</option>
|
||||
</select>
|
||||
<br>
|
||||
<button id="createButton">Create url</button>
|
||||
|
||||
2
index.js
2
index.js
@ -41,6 +41,8 @@ function checkType() {
|
||||
c = atob(binaryToString(c))
|
||||
} else if (t == "b64_binary_double") {
|
||||
c = binaryToString(atob(binaryToString(atob(c))))
|
||||
} else if (t == "b64_binary_quadruple") {
|
||||
c = binaryToString(atob(binaryToString(atob(binaryToString(atob(binaryToString(atob(c))))))))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user