This commit is contained in:
james 2024-05-21 10:30:06 +02:00
parent d87b07ad38
commit c2c4d68837
3 changed files with 14 additions and 3 deletions

View File

@ -10,4 +10,13 @@ fetch(url)
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,6 +10,7 @@
</head>
<body>
<h1>Sortowanie Sufiksów</h1>
<button onclick="wyswietlSufiksy()">Wyswietl Sufiksy</button>
<h2>Nieposortowane Sufiksy</h2>

View File

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