Skip to content

Instantly share code, notes, and snippets.

@davidbwaters
Last active December 28, 2020 16:47
Show Gist options
  • Save davidbwaters/3992a4b1cde59c3964d6bb10d8dc8ec6 to your computer and use it in GitHub Desktop.
Save davidbwaters/3992a4b1cde59c3964d6bb10d8dc8ec6 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$('.lecture_complete_button').click((evt) => {
const progBar = document.querySelector('.progressbar')
if (progBar.style.minWidth !== '50%') {
progBar.style.minWidth = '50%'
document.querySelector('span.percentage').innerText = '50%'
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment