///// INSIGHTS ///// const TENANT_ID = "bakersfield"; /** * Adds a script to the document body. * @returns {Promise} A promise that resolves when the script is loaded successfully, or rejects with an error if the script fails to load. */ function addScript() { const s3ScriptUrl = `https://s3.us-west-1.amazonaws.com/ddl.public/${TENANT_ID}/gradeExportButton.js`; return new Promise((resolve, reject) => { const script = document.createElement("script"); script.setAttribute("charset", "UTF-8"); script.setAttribute("src", s3ScriptUrl); script.onload = () => resolve(); script.onerror = (error) => reject(error); document.body.appendChild(script); }); } document.addEventListener("DOMContentLoaded", () => { addScript() .then(() => { if (window.addScript) { console.log("Loaded Insights script successfully"); } else { console.error("Insights script did not load correctly"); } }) .catch((error) => console.error("Error loading Insights script:", error)); }); ///// END INSIGHTS ///// //////////////////////////////////////////////////// // Evaluation Kit // //////////////////////////////////////////////////// /*EvaluationKIT START*/var evalkit_jshosted = document.createElement('script');evalkit_jshosted.setAttribute('type', 'text/javascript');evalkit_jshosted.setAttribute('src', 'https://bakersfieldcollege.evaluationkit.com/CanvasScripts/bakersfieldcollege.js?v=1');document.getElementsByTagName('head')[0].appendChild(evalkit_jshosted);/*EvaluationKIT END*/ //////////////////////////////////////////////////// // DESIGNPLUS CONFIG // //////////////////////////////////////////////////// // Legacy var DT_variables = { iframeID: '', // Path to the hosted USU Design Tools path: 'https://designtools.ciditools.com/', templateCourse: '24081', // OPTIONAL: Button will be hidden from view until launched using shortcut keys hideButton: false, // OPTIONAL: Limit by course format limitByFormat: false, // Change to true to limit by format // adjust the formats as needed. Format must be set for the course and in this array for tools to load formatArray: [ 'online', 'on-campus', 'blended' ], // OPTIONAL: Limit tools loading by users role limitByRole: false, // set to true to limit to roles in the roleArray // adjust roles as needed roleArray: [ 'admin' ], // OPTIONAL: Limit tools to an array of Canvas user IDs limitByUser: false, // Change to true to limit by user // add users to array (Canvas user ID not SIS user ID) userArray: [ '1234', '987654', //081120 Canvas Templates Workshop '79823', //Doug Burdick '28569', //Elisabeth Sundby '6251', //Gurpreet Grewal '68609', //Hsin-Neh '6750', //Jaclyn Krause '119012', //Jennifer Craig '20783', //Jennifer Garrett '115084', //Jenny Grohol '21965', //Karin Young-Gomez '78725', //Keturah Hunte '28843', //Kim Arbolante '9362', //Kurt Klopstein '10002', //Lindsay Ono '54', //Lisa Harding '22846', //Lupe Perez '78042', //Marlene sanchez '23973', //Michael Larson '11579', //Myra McArthur '391', //Nicky Damania '399', //Pat Smith '12967', //Rebecca Monks '25730', //Susan Pinza '14696', //Theresa Ramirez '55496', //Victor Huerta '15390', //William Rector //080720 Canvas Templates Workshop '141121', //Ambar Carlisle '66525', //Brent Wilson '127979', //Carol Wolf '28431', //Christy haycock '17632', //Dr. C. Matthews '28569', //Elisabeth Sundby '19855', //Gina Herrera '68609', //Hsin-Neh Rogers '21878', //Janet Tarjan '112059', //Keith Wolaridge '61782', //Kelley Taylor '23424', //Kendall Maria Moya '118017', //Kevin Ruiz '67023', //Laura luiz '63960', //Lourdes Aboytes '76795', //Maria Diego-Rozum '24457', //Pamela Davis '54104', //Rebecka Zepeda '12641', //Roy Allard '13628', //Sara Palasch '14821', //Tim Painton '26037', //Tom Greenwood //080520 Canvas Templates Workshop '58', //Chris McCraw '18870', //Denise Mitchell '21878', //Janet Tarjan '21097', //John giertz '9494', //Kimberly '22321', //Krista Morleand '41', //Leah Carter '65694', //Leah Elliott '28916', //Lynnette Mello '76795', //Maria Diego-Rozum '23593', //Maritza Salgueiro-Carlisle '117890', //Martha Rivera de Gomez '61', //Oliver Rosales '24544', //Pam Boyles '12512', //Pam kelley '121048', //Rebecca Ramos '24983', //Rosa Garza '38916', //Sabrina Sherrill '25477', //Scott Dirkse '34460', //Shae Flores '120575', //Suzanne Oesch '15103', //Vayron Martinez '26553', //William Mitchell //072920 Canvas Templates Workshop '2510', //Beth-Anne Mulder '4020', //Carol Shertzer '18108', //Cecilia Noyes '93376', //Darrell Thompson '64482', //Erin Auerbach '20783', //Jen Garrett '119884', //jennifer wisnoff '8932', //Katherine Arias '9117', //Kellie Smith '77889', //Lucas Choate '11705', //Manuel Rosas '133205', //Marah Meek '24544', //Pam Boyles '24616', //Paula Parks '29034', //Pearl Urena '24771', //Rick Carmona '24929', //Robert Stewart '25471', //Steve Bsharah '14696', //Theresa Ramirez //072720 Canvas Templates Workshop '118469', //Andrea Maciel '16934', //Ann Tatum '36881', //Brad verrell '102131', //clayton wright '28566', //Evette Lara '52', //Faith Bradham '57', //Gabi Martin '21096', //John Gerhold '9083', //K. Chin '144800', //Kathryn Wright '22761', //Laura Peet '22858', //Laurie Wallace '22762', //Lonnie Stockton '28898', //Lynn Knaggs '11705', //Manuel Rosas '10649', //Marilynn Sanchez Avila '145506', //maryam biganeh '28990', //Mike Medeiros '23670', //Mindy Wilmot '121778', //Omar Gonzalez '95082', //Rodolfo Casarez '14612', //Teresa McAllister '23422', //Kendall Moya '21878', //Janet Tarjan //072320 '9494', //Kimberly Bligh //072220 Canvas Templates Workshop '32251', //Eleonora Hicks '53584', //Glenn Hammett '6149', //Grace Commiso '145765', //Joel Hoffman '79801', //Michael Huerta Jr '391', //Nicky Damania '29034', //Pearl Urena '102963', //Raquel Fore '134596', //Teresa L Pickens //072020 Canvas Templates Workshop '36881', // Brad Verrell '37027', // Catherine Jones '73004', // Cherilyn Haworth '19632', // Francisco Llamas '5674', // Fabiola Butcher '118363', // Gabriel Searcy '5941', // Glen Andersen '6251', // Gurpreet Grewal '20484', // Jamee Eaton '79100', // Janie Yadon '7504', // Jeorgina Alfaro '42025', // Juan Carlos Cruz '94', // Karimeh Amin '9471', // Kris Tiner '117890', // Martha Rivera de Gomez '392', // mike daniel '61', // Oliver Rosales '24668', // Rae Ann Kumelos '40945', // Sara Cipriano '25412', // sarah o'connor //071720 Design Tools Workshop '44873', //Allison Burch '141121', //Ambar Carlisle '81489', //Cynthia Randall '80556', //Hilario Lopez '398', //Joe Saldivar '9363', //Kailani Knutson '94', //Karimeh Amin '118017', //Kevin Ruiz '28843', //Kim Arbolante '223', //Laura Miller '22858', //Laurie Wallace '63960', //Lourdes Aboytes '28916', //Lynnette Mello '23593', //Maritza Salgueiro-Carlisle '23420', //Martha Rivera de Gomez '36722', //Milena Lilles '24075', //Murad Zikri '11579', //Myra McArthut '61', //Oliver Rosales '24544', //Pam Boyles '399', //Pam Boyles '91', //Richard Marquez '63280', //Shawn Newsom '15405', //Ximena Da Silva Tavares '23424', //Kendall Moya //071520 Canvas Templates Training '36682 ', // blake bastain '28387', // brynn schock '68785', // catherine starling '20307', // isabel stierle '115084', // jennfer grohol '118174', //Jerry Mathes '143467', //journi eno '9363', //kailani knutson '49', //kenward vaughan '36659', //naomi rutuku '90277', // pierre peasha '12967', // rebecca monks '91', //richard marquez '24983', // rosa garza '14405', // suzanne tangeman '14651', // timothy heasley '14770', // tom moran '119480', // thelma akins //060820 Design Tools Training '133820', //alex mitts '274', //anna collins '2364', //becky beed '17632', //carol matthews '68785', //catherine starling '115867', //charles daramola '18648', //deborah tinoco '43', //gloria dumler '63100', //james mcgarrah '68618', //jennifer rachal '115084', //jennifer grohol '78725', //keturah hunte '67023', //laura luiz '41', //leah carter '9752', //lianna tran '67131', //malissa buggs '22972', //Marcelyn Esther '396', //maribel montelongo '44', //michael ivey '28955', //michele bresso '24075', //mudra zikri '121778', //omar gonzales '24616', //paula parks '13628', //sara palasch '15531', //yuki takeuchi //Di and Kren Training '22337', //Kren Campbell '18841', //Dianthe Hoffman //Course Design Pt.1 Design Tools '53', //Chris Dison '145', //Dana HeinsGelder '28547', //David Teasdale '17632', //Carol Matthews '6430', //Heidi Forsythe '20484',//Jamee Eaton '20522', //Jana Wong '94', //Karimeh Amin '42610', //Mandelyn Hobbs '11579', //Myra McArthur '29086', //Rhea Lyons '91', //Richard Marquez '25328', //Sandra David '13628', //Sara Palasch '15531', //Yuki Takeuchi '102627', //Yvonne Cavanagh //CTE Program Course Leads '73', //Bernadette Towns //CTE Instructional Designers '135053', //Ipek Ataman '133820', //Alex Mitts '134077', //Jack Chen //CTE Program Training '54698', //LeAnn Riley '10002', //Lindsay Ono '42', //Gregory Cluff '69', //Lillian Pimentel-Stratton //Begin Design Tools Spring 2020 Flex Week '73004', //Cherilyn Haworth '6113', //Ginger LeBlanc '9362', //Kurt Klopstein '10880', //Maryam JalaliFarahani '23973', //Michael Larson '392', //Michael Daniel '117675', //Paul Murray '102112', //Tonja Gnacke //Begin Angelica Vasquez and Vanessa Bell '16637', //Angelica Vasquez '29272', //Vanessa Bell //Begin 1209 Special Request Design Tools Training '77231', // Ashley Choate '17482', // Brenda Valadez '99938', // Daniel Hentschel '302', // Deborah Rosenthal '69299', // Gilbert Ayuk //Begin 1127 Counseling Design Tools Training '22483', //Laurel Mourtzanos '55', //Fabiola Johnson '25873', //Sarah Villasenor '22230', //Kerri Kennedy //Begin 1101 Design Tools Attendees '18108', //Ceclia Noyes '103283', //Gregg Wilkerson '63883', //Jana Richardson '21965', //Karin Young-Gomez '42610', //Mandelyn Hobbes '85329', //Maurice Muller '13642',// Sara Wallace '14305', //Stephen Tavoni '67176', //Tony Huffaker //Begin 1004 Design Tools Attendees '3793', //Chad Newton '5674', // Fabiola Butcher '116717', //Gian Mettifogo '66508', //Heather Silvis '7323', //Jeff Eagan '115092', //Joseph Tipay '118129', // Metin Eroglu '117855', //Michael Muhme '11420', //Michelle Hart '115643', //Renaldo Arroyo '114540', //Sara Manuel '25730', //Susan Pinza '102947', //Lauren Vazquez '68', //Erica Menchaca //Begin Fall Flex 2019 Attendees 2 '99891', //David Greenfield '28798', //Justin Bell '390', //Wayne Wilson Cooper '73004', //Cherliyn Haworth '4448', //Malissa Buggs '67131', //Malissa Buggs '102112', //Tonja Gnacke '81580', //Rebecca Colaw '226', //Erin Miller '56', //Li Kang Liu '15922', //Alex Gomez '79', //Andrew Bond '16673', //Anna Melby '29564', //Charles Truvillion '3606', //Christine Holland '94007', //David Rohac '18919', //Duane Anderson '4919', //Dylan Nasiatka '5674' , //Fabiola Butcher '20083', //Heather Barajas '6621', //Isaac Sanchez '118174', //Jerry Mathes '73008', //Kathleen Hicks '9117', //Kellie Smith '42610', //Mandelyn Hobbs '77781', //Nancy Mai '118094', //Richard Range '68738', //T Silva '53385', //Travis Steele //Begin Fall Flex 2019 Attendees 1 '54786', //Alicia Skipper '49285', // Arlene Velis '18108', // Cecilia Noyes '87', // Charles Kim '18106', //Creighton Magers '18796', //Diana Cason '19684', //Gayle Anderson '118019', //James Baker '7053', //Janet Yakoub '94', //Karimeh Amin '22062', //Katherine Ganster '22632', //Linda McLaughlin '73520', //Mychael Phillips '12199', //Olivia Garcia '29088', //Ricardo Garza '91', //Richard Marquez '35752', //Ronnie Wrest '63280', //Shawn Newsom '14405', //Suzanne Tangeman '14822', //Talita Pruett '35816', //Tracie Grimes '26491', //Valerie Robinson '15405', //Ximena da Silva Tavares //Begin attendees for 42619 Design Tools '101381', //Brenda Anaya '3260', // Carl Dean '78027', //Carolyn Lane '3606', //Christine Holland '103283', //Gregg Wilkerson '73008', //Kathleen Hicks '65694', //Leah Elliot '54', //Lisa Harding '9982', //Lora Larkin '26664', //Qui Jimenez '44087', //Rodrigo Alvarez //end attendees for 42619 Design Tools '63960', //Lourdes Aboytes '64', // Helen Acosta '12641', //Roy Allard '44807', //Rodrigo Alvarez '93995', //Allison Ament '101381', //Brenda Anaya// '25445', //Savanna Andrasian '20082', //Heather Baltis '25394', //Sarah Baron '1757', //Angela Bono '24544', //Pamela Boyles '52', // Faith Bradham '227', //Don Brady '41', //Leah Carter '25473', //Sean Caras '27619', //Alexander Clark '77231', //Ashley Choate '40945', //Sara Cipriano '356', //Scott Dameron '24457', //Pam Davis '99627', //Skye Dent '53', // Chris Dison '7323', //Jeff Eagan '10297', //Manuel Fernandez '20778', //Jennifer Flenner '12199', //Olivia Garcia '7060', //Janice Green '35816', //Tracie Grimes '96942', //Daniel Hall '36747', //Bonnie Hammond '54', // Lisa Harding '11420', //Michelle Hart '307', //Neeley Hatridge '52573', //Craig Hayward '98225', //Margaret Hill Crim '145', //Dana Heins-Gelder '67797', //Christina Howell '67176',//Anthony Huffaker '78725', //Keturah Hunte '99891', //David Greenfield '29011', //Nicole Hernandez '3685', //Cindy Hubble '45', //Jennifer Jett '37027', //Catherine Jones '25703', //Sondra Keckley '87', // Charles Kim '46', //Lynn Krausse '23973', //Michael Lawson '6113', //Ginger LeBlanc '8004',//Joshua Lewis '3648', //Christopher Lessley '13632', //Francisco LLamas '24', //Tracy Lovelace '91', //Richard Marquez '14612', // Teresa McAllister '11579', //Myra Mcarthur '58', //Chris McCraw '63100', //James McGarrah '22632', //Linda McLaughlin '28916', //Lynnette Mello '68', // Erica Menchaca '71934', //Rudy Menjivar '21132', //John Menzies '48', //Richard Miles '223', // Laura Miller '18870', //Denise Mitchell '26553', //William Mitchell '36', //Bill Moseley '18618', //Dawn Mosley '51', //Scott Peat '22761',//Laura Peet '25730', //Susan Pinza '14822', //Talita Pruett '18308', //Cynthia Powell '99253', //Mariane Reyes '63883', //Jana Richardson '22340', //Klint Rigby '64753', //Pamela Rivers '91898', //William Rockey '29241', //Thomas Rush '36659', //Naomi Rutuku '23593', //Maritza Salgueiro-Carlisle '6621', //Isaac Sanchez '59627', //Heather Shaffstall '24305', //Nigie Shi '24522', //Patrick Shreffler '15405', //Ximena Da Silva Tavares '54786', //Alicia Skipper '9117', //Kellie Smith '68785',//Catherine Starling '28442', //Christina Touchstone '6625', //Isaac Vannasone '13642', //Sara Wallace '92487', //Kimberly Watkin '63157', //Michael Westwood '50', //Phil Whitney '4364', //Darren Willis '8695', //Julie Willis '23670', //Mindy Wilmot '66525', //Brent Wilson '54104', //Rebecka Zepeda '26' //matt jones ] }; // New DpPrimary = { lms: 'canvas', templateCourse: '95886', hideButton: false, hideLti: false, extendedCourse: '', // added in sub-account theme sharedCourse: '', // added from localStorage courseFormats: [], canvasRoles: [], canvasUsers: [], canvasCourseIds: [], plugins: [], excludedModules: [], includedModules: [], lang: 'en', defaultToLegacy: true, enableVersionSwitching: true, hideSwitching: false, } // merge with extended/shared customizations config DpConfig = { ...DpPrimary, ...(window.DpConfig ?? {}) } $(function () { const uriPrefix = (location.href.includes('.beta.')) ? 'beta.' : ''; const toolsUri = (DpConfig.toolsUri) ? DpConfig.toolsUri : `https://${uriPrefix}designplus.ciditools.com/`; $.getScript(`${toolsUri}js/controller.js`); }); //////////////////////////////////////////////////// // END DESIGNPLUS CONFIG // //////////////////////////////////////////////////// $(function() { console.log("CANVABADGES: Loaded!"); // NOTE: if pasting this code into another script, you'll need to manually change the // next line. Instead of assigning the value null, you need to assign the value of // the Canvabadges domain, i.e. "https://www.canvabadges.org". If you have a custom // domain configured then it'll be something like "https://kccd.instructure.com/" // instead. var protocol_and_host = "https://www.canvabadges.org"; if(!protocol_and_host) { var $scripts = $("script"); $("script").each(function() { var src = $(this).attr('src'); if(src && src.match(/canvas_profile_badges/)) { var splits = src.split(/\//); protocol_and_host = splits[0] + "//" + splits[2]; } var prefix = src && src.match(/\?path_prefix=\/(\w+)/); if(prefix && prefix[1]) { protocol_and_host = protocol_and_host + "/" + prefix[1]; } }); } if(!protocol_and_host) { console.log("CANVABADGES: Couldn't find a valid protocol and host. Canvabadges will not appear on profile pages until this is fixed."); } var match = location.href.match(/\/(users|about)\/(\d+)$/); if(match && protocol_and_host) { console.log("CANVABADGES: This page shows badges! Loading..."); var user_id = match[2]; var domain = location.host; var url = protocol_and_host + "/api/v1/badges/public/" + user_id + "/" + encodeURIComponent(domain) + ".json"; $.ajax({ type: 'GET', dataType: 'jsonp', url: url, success: function(data) { console.log("CANVABADGES: Data retrieved!"); if(data.objects && data.objects.length > 0) { console.log("CANVABADGES: Badges found! Adding to the page..."); var $box = $("
", {style: 'margin-bottom: 20px;'}); $box.append("

Badges

"); for(idx in data.objects) { var badge = data.objects[idx]; var $badge = $("
", {style: 'float: left;'}); var link = protocol_and_host + "/badges/criteria/" + badge.config_id + "/" + badge.config_nonce + "?user=" + badge.nonce; var $a = $("", {href: link}); $a.append($("", {src: badge.image_url, style: 'width: 72px; height: 72px; padding-right: 10px;'})); $badge.append($a); $box.append($badge); } $box.append($("
", {style: 'clear: left'})); $("#edit_profile_form,fieldset#courses,.more_user_information + div").after($box); } else { console.log("CANVABADGES: No badges found for the user: " + user_id + " at " + domain); } }, error: function(err) { console.log("CANVABADGES: Badges failed to load, API error response"); console.log(err); }, timeout: 5000 }); } else { console.log("CANVABADGES: This page doesn't show badges"); } }); //*********************** DE UTILITIES 1.0 Justin Witt ******************************************* var DE_UTILITIES= (function($){ var utilities={excludePage: function(pageNameArray, callback){ var str = window.location.href; var isPagePresent = false; $(pageNameArray).each(function(){ var foundStr = str.search(this) if(foundStr != -1){ isPagePresent = true; return isPagePresent; } }); if(isPagePresent == false){ return callback(); } }, checkState:function(moduleStateCheck, data, callback){ if( $('#'+ moduleStateCheck, data).html()== "On"){ callback(); }//else{console.log("module off")} }, checkContext:function(context_name,callback){ if(window.location.pathname.split('/')[1] == context_name){ callback() }}, checkForTeacher:function(){ var roleBoolean =false; ENV.current_user_roles.find(function(element) { if( element == 'teacher'){ //callback(); roleBoolean = true; return; } }); return roleBoolean; } } return utilities; }(jQuery)); $(function() { console.log("CANVABADGES: Loaded!"); // NOTE: if pasting this code into another script, you'll need to manually change the // next line. Instead of assigning the value null, you need to assign the value of // the Canvabadges domain, i.e. "https://www.canvabadges.org". If you have a custom // domain configured then it'll be something like "https://kccd.instructure.com/" // instead. var protocol_and_host = "https://www.canvabadges.org"; if(!protocol_and_host) { var $scripts = $("script"); $("script").each(function() { var src = $(this).attr('src'); if(src && src.match(/canvas_profile_badges/)) { var splits = src.split(/\//); protocol_and_host = splits[0] + "//" + splits[2]; } var prefix = src && src.match(/\?path_prefix=\/(\w+)/); if(prefix && prefix[1]) { protocol_and_host = protocol_and_host + "/" + prefix[1]; } }); } if(!protocol_and_host) { console.log("CANVABADGES: Couldn't find a valid protocol and host. Canvabadges will not appear on profile pages until this is fixed."); } var match = location.href.match(/\/(users|about)\/(\d+)$/); if(match && protocol_and_host) { console.log("CANVABADGES: This page shows badges! Loading..."); var user_id = match[2]; var domain = location.host; var url = protocol_and_host + "/api/v1/badges/public/" + user_id + "/" + encodeURIComponent(domain) + ".json"; $.ajax({ type: 'GET', dataType: 'jsonp', url: url, success: function(data) { console.log("CANVABADGES: Data retrieved!"); if(data.objects && data.objects.length > 0) { console.log("CANVABADGES: Badges found! Adding to the page..."); var $box = $("
", {style: 'margin-bottom: 20px;'}); $box.append("

Badges

"); for(idx in data.objects) { var badge = data.objects[idx]; var $badge = $("
", {style: 'float: left;'}); var link = protocol_and_host + "/badges/criteria/" + badge.config_id + "/" + badge.config_nonce + "?user=" + badge.nonce; var $a = $("", {href: link}); $a.append($("", {src: badge.image_url, style: 'width: 72px; height: 72px; padding-right: 10px;'})); $badge.append($a); $box.append($badge); } $box.append($("
", {style: 'clear: left'})); $("#edit_profile_form,fieldset#courses,.more_user_information + div").after($box); } else { console.log("CANVABADGES: No badges found for the user: " + user_id + " at " + domain); } }, error: function(err) { console.log("CANVABADGES: Badges failed to load, API error response"); console.log(err); }, timeout: 5000 }); } else { console.log("CANVABADGES: This page doesn't show badges"); } }); // ******************************************* pop 2.1 Justin Witt ********************************** (function($){ var settingsPage = '/courses/24968/assignments/syllabus'; var dialogTitle = 'Message from Bakersfield College'; var collegeInitials = 'bc'; $.get(window.location.origin + settingsPage).done(function (data) { DE_UTILITIES.checkState('popMessageState', data, function(){ var popNumber = $('#usePopMessage', data).html() - 1; var popMessageArray = $('.de_popMessage', data); //console.log(popMessageArray); var roleLimiterArray = $(popMessageArray[popNumber]).attr('class').split(' '); var roleClass = roleLimiterArray.filter(function(x){ return x !== 'de_popMessage' }) // set repeat time in milisecons (currently set to 21 days) //var repeatTime = 300000 // five minutes testing only var repeatTime = 1814400000 //21 days //create new date object var dateObject = new Date() var currentTime = dateObject.getTime() // compare two dates if dates are > 21 days apart return true else return false function compairDates(d1, d2){ var dateDifference = d2 - d1; if(dateDifference > repeatTime){ return true; }else{return false} } var popAndSave = function(){ //set localStorage.dePopHasRun to current date localStorage[collegeInitials+'PopHasRun'] = currentTime; localStorage[collegeInitials+'PopMessageNumber'] = popNumber; // run pop up script var popupMessageDialog = $('
' + $(popMessageArray[popNumber]).html() +'
').dialog(); $($('#de_inbox_body').parent()[0]).attr('tabindex',1); $('div.ui-dialog').focus(); } //check if pop has run if (localStorage[collegeInitials+'PopHasRun'] != null ){ //check how long ago it ran if > 21 day difference run pop. if(compairDates(localStorage[collegeInitials+'PopHasRun'], currentTime) || popNumber != localStorage[collegeInitials+'PopMessageNumber'] ){ popAndSave() } }else{ popAndSave(); } }); }) }(jQuery)); // Start Pope Tech Accessibility Guide var popeTechKey='GVkaVOuFhVHxoRv4QqraplV2dyRlmscN';(function(a){function b(a,b){var c=document.createElement("script");c.type="text/javascript",c.readyState?c.onreadystatechange=function(){("loaded"===c.readyState||"complete"===c.readyState)&&(c.onreadystatechange=null,b())}:c.onload=function(){b()},c.src=a,document.getElementsByTagName("head")[0].appendChild(c)}function c(a){return a&&("TeacherEnrollment"===a||"TaEnrollment"===a||"DesignerEnrollment"===a)}function d(){var a=window.location.pathname;return!!(-1!==a.indexOf("/edit")||-1!==a.indexOf("/new")||-1!==a.indexOf("/syllabus")||a.match(/\/courses\/[0-9]+\/pages\/?$/)||a.match(/\/courses\/[0-9]+\/?$/))}function e(){return f()||g()}function f(){var a=/\/courses\/[0-9]+\/pages\/?$/,b=window.location.pathname;return console.log("Check for pages url",window.location.pathname),console.log(a.test(b)),a.test(b)}function g(){var a=window.location.pathname;return console.log("Check for courses url",window.location.pathname),console.log("/courses"===a),"/courses"===a}function h(){var a=/\/accounts\/[0-9]+\/external_tools\/[0-9]+\/?$/,b=/\/courses\/[0-9]+\/external_tools\/[0-9]+\/?$/,c=window.location.pathname;return console.log("Check for external tool url",window.location.pathname),console.log(a.test(c)||b.test(c)),a.test(c)||b.test(c)}function i(f){for(var g=0;g