mirror of
https://github.com/t404owo/t404null.git
synced 2026-11-05 09:50:27 +00:00
Smol loop reduction
This commit is contained in:
1 parent
b0a642cb63
commit
5dd9fde4f4
1 file changed
+3
-5
+3
-5
@@ -130,15 +130,13 @@ function pg_ctrl() {
|
||||
let n = i;
|
||||
button.textContent = "•"; //• not ·
|
||||
pgctrl.appendChild(button);
|
||||
}
|
||||
if (pgctrl)
|
||||
[].slice.call(pgctrl.children).forEach((m, n) =>
|
||||
m.addEventListener("click", function () {
|
||||
|
||||
if (pgctrl) button.addEventListener("click", function () {
|
||||
reset();
|
||||
slider_index = n;
|
||||
set();
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function set() {
|
||||
|
||||
Reference in new issue
Block a user