From c6b8abe2de1a6a37b8691163a9c16f195013decb Mon Sep 17 00:00:00 2001 From: joak Date: Tue, 16 Jan 2024 10:18:27 +0100 Subject: [PATCH] update --- web/quilt/quilt.html | 3 ++- web/quilt/quilt.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/quilt/quilt.html b/web/quilt/quilt.html index 0d7744e..1bc353e 100644 --- a/web/quilt/quilt.html +++ b/web/quilt/quilt.html @@ -1,3 +1,4 @@ + @@ -17,7 +18,7 @@ - + diff --git a/web/quilt/quilt.js b/web/quilt/quilt.js index 01d7348..a778407 100644 --- a/web/quilt/quilt.js +++ b/web/quilt/quilt.js @@ -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("
chopchop SI23testtest
",""); 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