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) {
|
function wyswietlSufiksy(data) {
|
||||||
data.forEach((element) => document.querySelector('#nieposortowane').innerHTML += `<li> ${JSON.stringify(element.osoby)} </li>`);
|
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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1>Sortowanie Sufiksów</h1>
|
<h1>Sortowanie Sufiksów</h1>
|
||||||
<button onclick="wyswietlSufiksy()">Wyswietl Sufiksy</button>
|
<button onclick="wyswietlSufiksy()">Wyswietl Sufiksy</button>
|
||||||
<h2>Nieposortowane Sufiksy</h2>
|
<h2>Nieposortowane Sufiksy</h2>
|
||||||
|
|
|
@ -50,13 +50,14 @@ h2 {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
li:hover {
|
/* li:hover {
|
||||||
color: red;
|
color: red;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#nieposortowane:hover {
|
#nieposortowane:hover {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
} */
|
||||||
|
|
||||||
|
|
||||||
/* .pre {
|
/* .pre {
|
||||||
|
|
Loading…
Reference in New Issue