From b1cfe20523c7cf272fb189ef9e825644cfb98ac6 Mon Sep 17 00:00:00 2001 From: BlockArchitech Date: Sat, 19 Mar 2022 20:11:13 -0400 Subject: [PATCH] Add Web App --- WebAPP/index.html | 50 ++++++++++++++++++++++++++++++++++++++++++++++ WebAPP/main.js | 19 ++++++++++++++++++ WebAPP/md5.js | 2 ++ WebAPP/rainbow.css | 45 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 WebAPP/index.html create mode 100644 WebAPP/main.js create mode 100644 WebAPP/md5.js create mode 100644 WebAPP/rainbow.css diff --git a/WebAPP/index.html b/WebAPP/index.html new file mode 100644 index 0000000..ea1a2d5 --- /dev/null +++ b/WebAPP/index.html @@ -0,0 +1,50 @@ + + + + + + + MDJSON + + + + + + + + + + +
+
+

MDJSON

+

+

Create an MD5 hash and JSON string with ease

+

+ + +

+ + +
+ + + + + \ No newline at end of file diff --git a/WebAPP/main.js b/WebAPP/main.js new file mode 100644 index 0000000..30810dc --- /dev/null +++ b/WebAPP/main.js @@ -0,0 +1,19 @@ +$(document).ready(function(){ + $("#enter").click(function(){ + if (document.getElementById('input').value.length === 0) { + document.getElementById('output').innerHTML = '
Please enter a string!
'; + return + } + document.getElementById('output').innerHTML = "" + const split = document.getElementById('input').value.split(' ') + const length = split.length; + const list = [] + for (let l = 0; l < length; l++) { + list.push(`{"${l + 1}": { + "split": "${split[l]}", + "md5": "${md5(split[l])}" + }`) // l + 1 bc who the hell wants to use arrays that begin at 0 lets be honest + document.getElementById('output').innerHTML = `
${list.join(',')}
` + } + }) +}) \ No newline at end of file diff --git a/WebAPP/md5.js b/WebAPP/md5.js new file mode 100644 index 0000000..89d3026 --- /dev/null +++ b/WebAPP/md5.js @@ -0,0 +1,2 @@ +!function(n){"use strict";function d(n,t){var r=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(r>>16)<<16|65535&r}function f(n,t,r,e,o,u){return d((c=d(d(t,n),d(e,u)))<<(f=o)|c>>>32-f,r);var c,f}function l(n,t,r,e,o,u,c){return f(t&r|~t&e,n,t,o,u,c)}function v(n,t,r,e,o,u,c){return f(t&e|r&~e,n,t,o,u,c)}function g(n,t,r,e,o,u,c){return f(t^r^e,n,t,o,u,c)}function m(n,t,r,e,o,u,c){return f(r^(t|~e),n,t,o,u,c)}function i(n,t){var r,e,o,u;n[t>>5]|=128<>>9<<4)]=t;for(var c=1732584193,f=-271733879,i=-1732584194,a=271733878,h=0;h>5]>>>e%32&255);return t}function h(n){var t=[];for(t[(n.length>>2)-1]=void 0,e=0;e>5]|=(255&n.charCodeAt(e/8))<>>4&15)+r.charAt(15&t);return e}function r(n){return unescape(encodeURIComponent(n))}function o(n){return a(i(h(t=r(n)),8*t.length));var t}function u(n,t){return function(n,t){var r,e,o=h(n),u=[],c=[];for(u[15]=c[15]=void 0,16