From e57c4f4bcd3ed6c1121339c245f5a601009aa14a Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 14 Jan 2021 13:02:28 -0800 Subject: [PATCH] Adds focus control javascript --- bookwyrm/static/js/shared.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bookwyrm/static/js/shared.js b/bookwyrm/static/js/shared.js index b99459b2..60e78052 100644 --- a/bookwyrm/static/js/shared.js +++ b/bookwyrm/static/js/shared.js @@ -1,3 +1,20 @@ +window.onload = function() { + var toggles = document.getElementsByClassName('toggle-control'); + // .forEach(t => t.onclick = toggle_action); + for (var i=0; i