From 9350d6acdcf9baa84729d60b669d2dd5e6942da0 Mon Sep 17 00:00:00 2001 From: amarcel Date: Tue, 21 May 2024 08:31:48 +0000 Subject: [PATCH] Delete fetch.js --- fetch.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 fetch.js 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)}
  • `); -}