dynamic rescalzing
This commit is contained in:
parent
31c4c21944
commit
da4f5afbe9
4 changed files with 31 additions and 37 deletions
|
@ -81,7 +81,7 @@ TileManager.prototype.loadSet = function (namespace, tiles) {
|
|||
this.row2.appendChild(elem2);
|
||||
|
||||
elem.onclick = function (e) {
|
||||
document.querySelectorAll("#game .selected-group").forEach(function (e) { e.classList.remove("selected-group") })
|
||||
document.querySelectorAll(".selected-group").forEach(function (e) { e.classList.remove("selected-group") })
|
||||
e.target.classList.add("selected-group");
|
||||
elem2.classList.add("selected-group");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue