Ostatnie szlify na dziś...chyba
This commit is contained in:
@@ -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 = "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user