$(document).ready(function(){
// stops the check mark label for blueprint courses from extending the entire span of page
if (/^\/accounts\/[0-9]+\??$/.test(window.location.pathname)) {
console.log('on courses page!');
stopAnnoyingBlueprintCourseBehavior();
}
});
Just a simple jQuery, then a regex to see if you're on the page. The console.log message shows in the console, so I know it's passing the regex test.
Now here's the odd thing. Console on beta:
on courses page! canvas_script.js:14:11
target = [object HTMLCollection] canvas_script.js:73:10
HTMLCollection { 0: span.yyQPt_bGBk.yyQPt_ycrn, 1: span.yyQPt_bGBk.yyQPt_ycrn, 2: span.yyQPt_bGBk.yyQPt_ycrn, length: 3 } canvas_script.js:74:10
target length = 2 canvas_script.js:75:10
created span
Console on production:
on courses page! canvas_script.js:14:11
target = [object HTMLCollection] canvas_script.js:73:10
HTMLCollection { 0: span.yyQPt_bGBk.yyQPt_ycrn, 1: span.yyQPt_bGBk.yyQPt_ycrn, length: 2 } canvas_script.js:74:10
target length = 0 canvas_script.js:75:10
created span
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.