diff --git a/fetch.js b/fetch.js deleted file mode 100644 index a0097fb..0000000 --- a/fetch.js +++ /dev/null @@ -1,14 +0,0 @@ -const url = "http://localhost/a1/get.php" -//const url = "http://qstack.pl:8080/z1/get.php" -let lista - -fetch(url) - .then(response => response.json()) - .then(data => { - sortujSufiksy(data) - }); - -function sortujSufiksy(data) { - - data.forEach((element) => document.querySelector('#nieposortowane').innerHTML += `
  • ${JSON.stringify(element.osoby)}
  • `); -}