2024-05-21 06:57:17 +00:00
|
|
|
//const url = "http://localhost/p20/get.php"
|
|
|
|
const url = "http://qstack.pl:8080/z1/get.php"
|
2024-05-20 08:32:10 +00:00
|
|
|
let lista
|
2024-05-15 10:24:25 +00:00
|
|
|
|
2024-05-20 05:14:55 +00:00
|
|
|
fetch(url)
|
2024-05-15 10:24:25 +00:00
|
|
|
.then(response => response.json())
|
2024-05-20 05:14:55 +00:00
|
|
|
.then(data => {
|
2024-05-20 09:38:56 +00:00
|
|
|
sortujSufiksy(data)
|
|
|
|
});
|
|
|
|
|
|
|
|
function sortujSufiksy(data) {
|
|
|
|
|
|
|
|
data.forEach((element) => document.querySelector('#nieposortowane').innerHTML += `<li> ${JSON.stringify(element.osoby)} </li>`);
|
2024-05-21 06:57:17 +00:00
|
|
|
}
|