summaryrefslogtreecommitdiff
path: root/JS/binary.js
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@simplelittledream.com>2021-01-16 21:21:22 -0500
committerJacob McDonnell <jacob@simplelittledream.com>2021-01-16 21:21:22 -0500
commitfcd16bc0fc2ffd457d2f085395f97af752f1093d (patch)
treeb4a3e982a4c4e0deb1afbd58057be08004e6dcc3 /JS/binary.js
parent3cbd1a5ec7f333b1837ecc0072daa56de7afa596 (diff)
New Version of the website
Diffstat (limited to 'JS/binary.js')
-rwxr-xr-xJS/binary.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/JS/binary.js b/JS/binary.js
deleted file mode 100755
index d0b8d21..0000000
--- a/JS/binary.js
+++ /dev/null
@@ -1,15 +0,0 @@
-//binary code convertor
-function convertBinary() {
- var output = document.getElementById("outputBinary");
- var input = document.getElementById("inputBinary").value;
- output.value = "";
- for (i=0; i < input.length; i++) {var e=input[i].charCodeAt(0);var s = "";
- do{
- var a =e%2;
- e=(e-a)/2;
- s=a+s;
- }while(e!=0);
- while(s.length<8){s="0"+s;}
- output.value+=s;
- }
-} \ No newline at end of file