Ostatnie szlify na dziś...chyba

This commit is contained in:
Dark Steveneq
2025-09-22 22:46:30 +02:00
parent fed06b2f13
commit 47159a92c8
4 changed files with 38 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ class Liczby {
for (let i = 1; i <= 100; i++) {
/** @type {HTMLButtonElement} */
const przycisk = document.getElementById(i);
const przycisk = document.querySelector("button[id=\"" + i + "\"");;
przycisk.onclick = ev => {
this.#strzal(ev);
}
@@ -94,7 +94,7 @@ class Liczby {
}
for (let i = 1; i <= 100; i++) {
/** @type {HTMLButtonElement} */
const przycisk = document.getElementById(i);
const przycisk = document.querySelector("button[id=\"" + i + "\"");
przycisk.className = "";
}
this.#elementy.wygrana.className = "dialog dialog-ukryj";
@@ -133,7 +133,7 @@ class Liczby {
for (let i = 1; i <= 100; i++) {
/** @type {HTMLButtonElement} */
const przycisk = document.getElementById(i);
const przycisk = document.querySelector("button[id=\"" + i + "\"");;
przycisk.className = "";
}