Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
m-casanova authored Aug 18, 2024
1 parent 3ae8f05 commit 2a65602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,16 @@ Promise.all(fileCaricati)

/* struttura HTML */
let htmlOutput = document.createElement('div');
htmlOutput.className = "elenco";
let htmlDiv;

/* crea titolo */
let testa = document.createElement('h3');
if (cerca.z == 1) {
htmlOutput.className = "elencoz";
testa.className = 'z';
testa.innerHTML = `&#xE320; <span>${cerca.n}</span> [non esistente]`;
} else {
htmlOutput.className = "elenco";
testa.innerHTML = `&#xE3C1; <span>${cerca.n}</span> [esistente]`;
}
mostra.appendChild(testa);
Expand Down

0 comments on commit 2a65602

Please sign in to comment.