projects
/
xogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8022d54
)
Fix typo element.id --> element
author
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 14 Nov 2021 23:02:24 +0000
(
00:02
+0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 14 Nov 2021 23:02:24 +0000
(
00:02
+0100)
app.js
patch
|
blob
|
blame
|
history
diff --git
a/app.js
b/app.js
index
a011513
..
592d2a9
100644
(file)
--- a/
app.js
+++ b/
app.js
@@
-59,7
+59,7
@@
function toggleVisible(element) {
if (elt.id != element) elt.style.display = "none";
else elt.style.display = "block";
}
if (elt.id != element) elt.style.display = "none";
else elt.style.display = "block";
}
- if (element
.id
== "boardContainer") {
+ if (element == "boardContainer") {
// Avoid smartphone scrolling effects (TODO?)
document.querySelector("html").style.overflow = "hidden";
document.body.style.overflow = "hidden";
// Avoid smartphone scrolling effects (TODO?)
document.querySelector("html").style.overflow = "hidden";
document.body.style.overflow = "hidden";
@@
-67,7
+67,7
@@
function toggleVisible(element) {
else {
document.querySelector("html").style.overflow = "visible";
document.body.style.overflow = "visible";
else {
document.querySelector("html").style.overflow = "visible";
document.body.style.overflow = "visible";
- if (element
.id
== "newGame") {
+ if (element == "newGame") {
// Workaround "superposed texts" effect
inputName.focus();
inputName.blur();
// Workaround "superposed texts" effect
inputName.focus();
inputName.blur();