fixed website errors

This commit is contained in:
Kenneth Jao 2017-10-01 09:07:20 -04:00
parent a8f10450b9
commit 475919fb2c

View File

@ -11,10 +11,10 @@ function hexToRGB(hex) {
} }
function convertData(text, base){ function convertData(text, base){
if(text.length < 150) { // if(text.length < 150) {
website = ""; // website = "";
return; // return;
} // }
var output = ""; var output = "";
for (var i = 0; i < text.length; i++) for (var i = 0; i < text.length; i++)
{ {
@ -131,7 +131,12 @@ function getWebsite(url) {
} }
} }
xhr.send(); xhr.send();
console.log(xhr.status);
if (xhr.status === 200) {
return xhr.responseText; return xhr.responseText;
} else {
return undefined;
}
} }
function animate(n , input) { function animate(n , input) {