diff --git a/mcdu.html b/mcdu.html index 526d43e5..5487fe9d 100644 --- a/mcdu.html +++ b/mcdu.html @@ -50,8 +50,7 @@ tds = document.querySelectorAll('.enter td'); for (const td of tds) { td.addEventListener('click', function () { - press_button(td.nextSibling ? "lskbutton" : "rskbutton", td.getAttribute("button-id")); - console.log(td.getAttribute("button-id")); + press_button(td.getAttribute("button-side") == "l" ? "lskbutton" : "rskbutton", td.getAttribute("button-id")); }, true); } tds = document.querySelectorAll('.menu td'); @@ -157,28 +156,28 @@
- — - — + — + — - — - — + — + — - — - — + — + — - — - — + — + — - — - — + — + — - — - — + — + —