mirror of
https://github.com/t404owo/t404null.git
synced 2025-12-12 18:08:47 +00:00
Smol loop reduction
This commit is contained in:
@@ -130,15 +130,13 @@ function pg_ctrl() {
|
|||||||
let n = i;
|
let n = i;
|
||||||
button.textContent = "•"; //• not ·
|
button.textContent = "•"; //• not ·
|
||||||
pgctrl.appendChild(button);
|
pgctrl.appendChild(button);
|
||||||
}
|
|
||||||
if (pgctrl)
|
if (pgctrl) button.addEventListener("click", function () {
|
||||||
[].slice.call(pgctrl.children).forEach((m, n) =>
|
|
||||||
m.addEventListener("click", function () {
|
|
||||||
reset();
|
reset();
|
||||||
slider_index = n;
|
slider_index = n;
|
||||||
set();
|
set();
|
||||||
})
|
})
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function set() {
|
function set() {
|
||||||
|
|||||||
Reference in New Issue
Block a user