add commandline tasks

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

View file

@ -482,4 +482,13 @@ el_id_winnerPlayAgain.addEventListener("click", (x) => {
getFollowers(true); getFollowers(true);
else else
getFollowing(true); 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));
}