6 commit
This commit is contained in:
parent
d87b07ad38
commit
c2c4d68837
11
fetch.js
11
fetch.js
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Sortowanie Sufiksów</h1>
|
||||
<button onclick="wyswietlSufiksy()">Wyswietl Sufiksy</button>
|
||||
<h2>Nieposortowane Sufiksy</h2>
|
||||
|
|
|
@ -50,13 +50,14 @@ h2 {
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
li:hover {
|
||||
/* li:hover {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#nieposortowane:hover {
|
||||
background-color: white;
|
||||
}
|
||||
} */
|
||||
|
||||
|
||||
/* .pre {
|
||||
|
|
Loading…
Reference in New Issue