Order Details
Course
Grade 6 Textbook and Workbook Book 2 Natural Sciences and Technology eBook
( function () {
let completed = false;
/**
* Initializes the LearnDash Breakpoints.
*
* @since 4.16.0
*/
function initBreakpoints() {
if ( completed ) {
// This was fired already and completed no need to attach to the event listener.
document.removeEventListener( 'DOMContentLoaded', initBreakpoints );
return;
}
if (
'undefined' === typeof window.learndash ||
'undefined' === typeof window.learndash.views ||
'undefined' === typeof window.learndash.views.breakpoints ||
'function' !== typeof (window.learndash.views.breakpoints.setup)
) {
return;
}
const container = document.querySelector(
'[data-learndash-breakpoint-pointer="ddee1bb4-034b-4e4c-b7bd-dc0ddb6458cc"]'
);
if ( ! container ) {
return;
}
window.learndash.views.breakpoints.setup( container );
completed = true;
// This was fired already and completed no need to attach to the event listener.
document.removeEventListener( 'DOMContentLoaded', initBreakpoints );
}
// Try to init the breakpoints right away.
initBreakpoints();
document.addEventListener( 'DOMContentLoaded', initBreakpoints );
})();