main
joak 11 months ago
parent 9169a94a34
commit ed2ab8505d

@ -17,7 +17,7 @@
<td></td>
<td><a href="https://hub.xpub.nl/chopchop/">chopchop</a></td>
<td><a href="https://issue.xpub.nl/23/">SI23</a></td>
<td><a href="">test</a></td>
<td><a href="http://localhost:8000/index.html</a>">test</a></td>
<td></td>
</tr>
<tr>

@ -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

Loading…
Cancel
Save