Created
July 23, 2024 17:02
-
-
Save MCKLtech/7bfcd2584cb02ad4e2a0090aea8d2868 to your computer and use it in GitHub Desktop.
Hide Progress Bar in Thinkific Course Player
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
<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