add offset

This commit is contained in:
MeowcaTheoRange 2024-03-18 23:18:17 -05:00
parent 54b1b6236c
commit a21bbd9a0a

View file

@ -488,7 +488,7 @@ function generateFollowersCode() {
return Array.from(document.querySelectorAll(".follower_checkbox")).reduce((p,x)=>p+(x.checked?"1":"0"),""); return Array.from(document.querySelectorAll(".follower_checkbox")).reduce((p,x)=>p+(x.checked?"1":"0"),"");
} }
function readFollowersCode(c) { function readFollowersCode(c, o = 0) {
const array = Array.from(document.querySelectorAll(".follower_checkbox")); const array = Array.from(document.querySelectorAll(".follower_checkbox"));
c.split("").forEach((x, i) => selectboxes[i].checked = parseInt(x)); c.split("").forEach((x, i) => selectboxes[i + o].checked = parseInt(x));
} }