diff --git a/fetch.js b/fetch.js
index 2517123..18af076 100644
--- a/fetch.js
+++ b/fetch.js
@@ -1,9 +1,13 @@
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)
})
@@ -25,4 +29,25 @@ function sortujSufiksy(data) {
function formatSufiksy(sufiksy) {
return sufiksy.map((sufiks, index) => `${index + 1} ${sufiks}`).join('\n');
+=======
+ sortujSufiksy(data)
+ });
+
+function sortujSufiksy(data) {
+ 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));
+ }
+
+ data.forEach((element) => document.querySelector('#nieposortowane').innerHTML += `
${JSON.stringify(element.osoby)} `);
+ // console.log(formatSufiksy(sufiksy));
+ // sufiksy.sort();
+ // document.querySelector('#posortowane').innerHTML += formatSufiksy(sufiksy);
+}
+
+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 1efd15e..5209562 100644
--- a/index.html
+++ b/index.html
@@ -14,9 +14,15 @@
Nieposortowane Sufiksy
+<<<<<<< HEAD
Posortowane Sufiksy
+=======
+
+ Posortowane Sufiksy
+
+>>>>>>> dev2
diff --git a/qstack.php b/qstack.php
new file mode 100644
index 0000000..9fcfd11
--- /dev/null
+++ b/qstack.php
@@ -0,0 +1,17 @@
+
\ No newline at end of file
diff --git a/styles.css b/styles.css
index e2265d7..4478f0f 100644
--- a/styles.css
+++ b/styles.css
@@ -45,10 +45,24 @@ h2 {
margin-top: 20px;
}
+<<<<<<< HEAD
pre {
+=======
+#nieposortowane {
+ display: flex;
+ flex-direction: column;
+}
+
+
+/* .pre {
+>>>>>>> dev2
background-color: #fff;
border: 1px solid #ccc;
padding: 10px;
border-radius: 4px;
overflow-x: auto;
-}
\ No newline at end of file
+<<<<<<< HEAD
+}
+=======
+} */
+>>>>>>> dev2