Skip to content

Instantly share code, notes, and snippets.

@danielpox
Created January 28, 2021 19:41
Show Gist options
  • Save danielpox/89c053577913663b40cfbbe0f106daf4 to your computer and use it in GitHub Desktop.
Save danielpox/89c053577913663b40cfbbe0f106daf4 to your computer and use it in GitHub Desktop.
Sum raised hands/attendance in Zoom WebSDK Client
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