Delete fetch.js
This commit is contained in:
parent
3cc3e92d8b
commit
9ed28d7f46
14
fetch.js
14
fetch.js
|
@ -1,14 +0,0 @@
|
||||||
//const url = "http://localhost/p20/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 += `<li> ${JSON.stringify(element.osoby)} </li>`);
|
|
||||||
}
|
|
Loading…
Reference in New Issue