diff --git a/assets/css/liczby.css b/assets/css/liczby.css
index cc38125..04817e5 100644
--- a/assets/css/liczby.css
+++ b/assets/css/liczby.css
@@ -7,6 +7,7 @@ html {
header {
padding: 1rem 1.5rem;
+ height: 1.5rem;
border-bottom: solid 3px var(--colorBase);
}
@@ -26,9 +27,9 @@ a:hover {
flex-direction: column;
justify-content: space-between;
position: fixed;
- top: 0rem;
+ top: 2rem;
width: 100vw;
- height: 100vh;
+ height: calc(100vh - 2rem);
text-align: center;
background: linear-gradient(180deg,
@@ -219,15 +220,19 @@ input[type="number"] {
max-height: calc(100vh - 4rem);
}
+#gra table {
+ margin: auto;
+ border-radius: .3rem;
+ background: var(--colorBase);
+}
+
#gra aside {
- display: none;
border-radius: .3rem;
background: var(--colorBase);
position: fixed;
- right: 1rem;
margin: 1rem;
padding: 1rem;
- width: 18rem;
+ width: 15rem;
}
#gra aside div {
@@ -251,7 +256,7 @@ input[type="number"] {
#gra button {
width: 3.5rem;
- height: 5rem;
+ height: 3.5rem;
}
#gra button:hover {
diff --git a/assets/js/liczby.js b/assets/js/liczby.js
index ac699e1..b8f5ac3 100644
--- a/assets/js/liczby.js
+++ b/assets/js/liczby.js
@@ -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 = "";
}
diff --git a/assets/js/nawigacja.js b/assets/js/nawigacja.js
index cd22857..81d5ad0 100644
--- a/assets/js/nawigacja.js
+++ b/assets/js/nawigacja.js
@@ -57,7 +57,17 @@ class Footer extends HTMLElement {
Strona © Dark Steveneq, 2025; Nazwę wymyślił Youpiter #GradientySąSuper
-
+
+