From b89ee1e8b56bde589ad98392600b0d726fabf637 Mon Sep 17 00:00:00 2001 From: jakubk Date: Tue, 21 May 2024 10:05:17 +0200 Subject: [PATCH] fifth commit --- fetch.js | 6 ++---- index.html | 3 +-- qstack.php | 17 ----------------- styles.css | 2 +- 4 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 qstack.php diff --git a/fetch.js b/fetch.js index f839167..5b4daf6 100644 --- a/fetch.js +++ b/fetch.js @@ -5,10 +5,8 @@ let lista fetch(url) .then(response => response.json()) .then(data => { - sortujSufiksy(data) }); -function sortujSufiksy(data) { - +function wyswietlSufiksy(data) { data.forEach((element) => document.querySelector('#nieposortowane').innerHTML += `
  • ${JSON.stringify(element.osoby)}
  • `); -} +} \ No newline at end of file diff --git a/index.html b/index.html index 9a261cd..6cbaf6a 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,6 @@

    Sortowanie Sufiksów

    -

    Nieposortowane Sufiksy

    @@ -20,7 +19,7 @@
  • -
      +
      1. diff --git a/qstack.php b/qstack.php deleted file mode 100644 index 9fcfd11..0000000 --- a/qstack.php +++ /dev/null @@ -1,17 +0,0 @@ - \ No newline at end of file diff --git a/styles.css b/styles.css index e408fd3..d935820 100644 --- a/styles.css +++ b/styles.css @@ -1,6 +1,6 @@ body { font-family: Arial, sans-serif; - background-color: #f5f5f5; + background-color: #f7f7f7f5; color: #333; margin: 0; padding: 20px;