From edff1c9ebd89b851d63d5df9fa8d37532608dbb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Twoje=20Imi=C4=99=20Nazwisko?= Date: Mon, 20 May 2024 14:02:52 +0200 Subject: [PATCH] merge fix --- fetch.js | 27 --------------------------- index.html | 6 ------ styles.css | 8 -------- 3 files changed, 41 deletions(-) diff --git a/fetch.js b/fetch.js index 18af076..40abc5c 100644 --- a/fetch.js +++ b/fetch.js @@ -1,35 +1,9 @@ const url = "http://localhost/p20/get.php" -<<<<<<< HEAD let lista -======= ->>>>>>> dev2 fetch(url) .then(response => response.json()) .then(data => { -<<<<<<< HEAD - // console.log(data) - sortujSufiksy(data) - }) - -function sortujSufiksy(data) { - - data.forEach((element) => { console.log(element) }); - - // const slowo = document.getElementById('slowo').value; - // console.log("tetst" + slowo) - // const sufiksy = []; - // for (let i = 0; i < slowo.length; i++) { - // sufiksy.push(slowo.slice(i)); - // } - // document.getElementById('nieposortowane').textContent = formatSufiksy(sufiksy); - // sufiksy.sort(); - // document.getElementById('posortowane').textContent = formatSufiksy(sufiksy); -} - -function formatSufiksy(sufiksy) { - return sufiksy.map((sufiks, index) => `${index + 1} ${sufiks}`).join('\n'); -======= sortujSufiksy(data) }); @@ -49,5 +23,4 @@ function sortujSufiksy(data) { function formatSufiksy(sufiksy) { // console.log(sufiksy.map((sufiks, index) => `${index + 1} ${sufiks}`).join('\n')); ->>>>>>> dev2 } \ No newline at end of file diff --git a/index.html b/index.html index 5209562..9a261cd 100644 --- a/index.html +++ b/index.html @@ -14,15 +14,9 @@

Nieposortowane Sufiksy

-<<<<<<< HEAD -

-    

Posortowane Sufiksy

-

-=======
     

Posortowane Sufiksy

->>>>>>> dev2
  • diff --git a/styles.css b/styles.css index 4478f0f..e408fd3 100644 --- a/styles.css +++ b/styles.css @@ -45,9 +45,6 @@ h2 { margin-top: 20px; } -<<<<<<< HEAD -pre { -======= #nieposortowane { display: flex; flex-direction: column; @@ -55,14 +52,9 @@ pre { /* .pre { ->>>>>>> dev2 background-color: #fff; border: 1px solid #ccc; padding: 10px; border-radius: 4px; overflow-x: auto; -<<<<<<< HEAD -} -======= } */ ->>>>>>> dev2