Compare commits

..

No commits in common. "c2c4d68837f5843282455a644fb5e9a4bfa17732" and "b89ee1e8b56bde589ad98392600b0d726fabf637" have entirely different histories.

3 changed files with 2 additions and 22 deletions

View File

@ -5,18 +5,8 @@ let lista
fetch(url)
.then(response => response.json())
.then(data => {
wyswietlSufiksy(data)
});
function wyswietlSufiksy(data) {
data.forEach((element) => document.querySelector('#nieposortowane').innerHTML += `<li> ${JSON.stringify(element.osoby)} </li>`);
}
document.getElementById("nieposortowane").onmouseover = function() {mouseOver()};
document.getElementById("nieposortowane").onmouseout = function() {mouseOut()};
function mouseOver() {
document.getElementById("nieposortowane").style.color = "red";
}
function mouseOut() {
document.getElementById("nieposortowane").style.color = "black";
}

View File

@ -10,9 +10,8 @@
</head>
<body>
<h1>Sortowanie Sufiksów</h1>
<button onclick="wyswietlSufiksy()">Wyswietl Sufiksy</button>
<button onclick="sortujSufiksy()">Sortuj Sufiksy</button>
<h2>Nieposortowane Sufiksy</h2>
<div class="pre" id="nieposortowane"></div>
<h2>Posortowane Sufiksy</h2>

View File

@ -50,15 +50,6 @@ h2 {
flex-direction: column;
}
/* li:hover {
color: red;
font-weight: bold;
}
#nieposortowane:hover {
background-color: white;
} */
/* .pre {
background-color: #fff;