Created
January 28, 2021 19:41
-
-
Save danielpox/89c053577913663b40cfbbe0f106daf4 to your computer and use it in GitHub Desktop.
Sum raised hands/attendance in Zoom WebSDK Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let sumVotes = () => Array.from(document.querySelector('.participants-ul').childNodes).filter(el => el.getAttribute('aria-label').includes('hand raised')).map(el => Number(el.getAttribute('aria-label').match(/\d+/)[0])).reduce((acc, curr) => acc + curr, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment