main
joak 8 months ago
parent e7e52c8b0b
commit c6b8abe2de

@ -1,3 +1,4 @@
<table>
<tbody>
<tr>
<td></td>
@ -17,7 +18,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="http://localhost:8000/index.html</a>">test</a></td>
<td><a href="http://localhost:8000/index.html">test</a></td>
<td></td>
</tr>
<tr>

@ -28,12 +28,14 @@ console.log(cutFileName);
var table;
let xhr = new XMLHttpRequest();
xhr.open('GET', 'https://issue.xpub.nl/23/quilt/quilt.html');
//xhr.open('GET', '/quilt/quilt.html');
xhr.send();
xhr.onload = function() {
if (xhr.status != 200) { //what its not a 200 :D
console.log(`Error ${xhr.status}: ${xhr.statusText}`); // what is the error
} else { // its a 200
table = document.createElement('table'); //create a table
var response = xhr.response.replace("<table>","");
table.innerHTML = xhr.response; //add the response to the table
var grid = tableToARRAY(table); //convert to a ARRAY
var myUrl = window.location.href; //get current url

Loading…
Cancel
Save