add commandline tasks

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

View file

@ -483,3 +483,12 @@ el_id_winnerPlayAgain.addEventListener("click", (x) => {
else
getFollowing(true);
})
function generateFollowersCode() {
return Array.from(document.querySelectorAll(".follower_checkbox")).reduce((p,x)=>p+(x.checked?"1":"0"),"");
}
function readFollowersCode(c) {
const array = Array.from(document.querySelectorAll(".follower_checkbox"));
c.split("").forEach((x, i) => selectboxes[i].checked = parseInt(x));
}