From fb1d5d3e6e1537c73a7b3524f611e79b21a5f563 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 29 Sep 2020 10:55:04 -0700 Subject: [PATCH] Add select_all. --- frontends/ycdl_flask/templates/channel.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index f25d40b..3cc9829 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -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;