Add select_all.

This commit is contained in:
voussoir 2020-09-29 10:55:04 -07:00
parent ede7eab80b
commit fb1d5d3e6e

View file

@ -386,6 +386,15 @@ function toggle_embed_video(video_id)
}
}
function select_all()
{
video_card_first_selected = null;
for (const video_card of document.getElementsByClassName("video_card"))
{
video_card.classList.add("video_card_selected");
}
}
function deselect_all()
{
video_card_first_selected = null;