Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dist/easier/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ <h1 class="text-2xl md:text-4xl">Easier Bingo Challenge</h1>
<th class="bingo-header font-light"><button onclick="selectCol('3')" class="drop-btn"><i class="material-icons">expand_more</i></button></th>
<th class="bingo-header font-light"><button onclick="selectCol('4')" class="drop-btn"><i class="material-icons">expand_more</i></button></th>
<th class="bingo-header font-light"><button onclick="selectCol('5')" class="drop-btn"><i class="material-icons">expand_more</i></button></th>
<th class="bingo-header"><button onclick="selectDiag('right')" class="drop-btn"><i class="material-icons rotate-45">expand_more</i></button></th>
</tr>
</table>
</main>
Expand Down
25 changes: 25 additions & 0 deletions dist/js/route-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,31 @@ const appendRow = (selector) => (row) => {

document.addEventListener("DOMContentLoaded", () => {
cards.map(toCardRow).forEach(appendRow("#bingo-container"));
document
.querySelector("#bingo-container")
.appendChild(
el(
"tr",
"",
{},
el(
"td",
"pr-2",
{},
el(
"h2",
"",
{},
el(
"button",
"drop-btn",
{ onclick: `selectDiag("right")` },
el("i", "material-icons -rotate-45", {}, t("chevron_right"))
)
)
)
)
);
[...document.querySelectorAll(".bingo-card")].forEach((el) =>
el.addEventListener("click", imgPopup(el.getAttribute("img")))
);
Expand Down
1 change: 0 additions & 1 deletion src/easier/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ <h1 class="text-2xl md:text-4xl">Easier Bingo Challenge</h1>
<th class="bingo-header font-light"><button onclick="selectCol('3')" class="drop-btn"><i class="material-icons">expand_more</i></button></th>
<th class="bingo-header font-light"><button onclick="selectCol('4')" class="drop-btn"><i class="material-icons">expand_more</i></button></th>
<th class="bingo-header font-light"><button onclick="selectCol('5')" class="drop-btn"><i class="material-icons">expand_more</i></button></th>
<th class="bingo-header"><button onclick="selectDiag('right')" class="drop-btn"><i class="material-icons rotate-45">expand_more</i></button></th>
</tr>
</table>
</main>
Expand Down
25 changes: 25 additions & 0 deletions src/js/route-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,31 @@ const appendRow = (selector) => (row) => {

document.addEventListener("DOMContentLoaded", () => {
cards.map(toCardRow).forEach(appendRow("#bingo-container"));
document
.querySelector("#bingo-container")
.appendChild(
el(
"tr",
"",
{},
el(
"td",
"pr-2",
{},
el(
"h2",
"",
{},
el(
"button",
"drop-btn",
{ onclick: `selectDiag("right")` },
el("i", "material-icons -rotate-45", {}, t("chevron_right"))
)
)
)
)
);
[...document.querySelectorAll(".bingo-card")].forEach((el) =>
el.addEventListener("click", imgPopup(el.getAttribute("img")))
);
Expand Down