|
|
|
@ -31,7 +31,7 @@ xhr.open('GET', 'https://issue.xpub.nl/23/quilt/quilt.html');
|
|
|
|
|
xhr.send();
|
|
|
|
|
xhr.onload = function() {
|
|
|
|
|
if (xhr.status != 200) { //what its not a 200 :D
|
|
|
|
|
alert(`Error ${xhr.status}: ${xhr.statusText}`); // what is the error
|
|
|
|
|
console.log(`Error ${xhr.status}: ${xhr.statusText}`); // what is the error
|
|
|
|
|
} else { // its a 200
|
|
|
|
|
table = document.createElement('table'); //create a table
|
|
|
|
|
table.innerHTML = xhr.response; //add the response to the table
|
|
|
|
|