Skip to content

Instantly share code, notes, and snippets.

@MCKLtech
Created July 23, 2024 17:02
Show Gist options
  • Save MCKLtech/7bfcd2584cb02ad4e2a0090aea8d2868 to your computer and use it in GitHub Desktop.
Save MCKLtech/7bfcd2584cb02ad4e2a0090aea8d2868 to your computer and use it in GitHub Desktop.
Hide Progress Bar in Thinkific Course Player
<script>
// Wait for the document to be ready
$(document).ready(function () {
//Check for course player
if (typeof (CoursePlayerV2) !== 'undefined') {
CoursePlayerV2.on('hooks:contentDidChange', function (data) {
try {
// Select elements with classes that match the pattern
var elements = $('[class*="_course-progress__actions-container"]');
// Check if any elements match the selector
if (elements.length > 0) {
elements.hide();
}
} catch (error) {
console.error("An error occurred while hiding the progress bar elements:", error);
}
});
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment