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