fixed website errors
This commit is contained in:
parent
a8f10450b9
commit
475919fb2c
@ -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();
|
||||||
return xhr.responseText;
|
console.log(xhr.status);
|
||||||
|
if (xhr.status === 200) {
|
||||||
|
return xhr.responseText;
|
||||||
|
} else {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function animate(n , input) {
|
function animate(n , input) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user