// GLOBAL JAVASCRIPT RESOURCES // AUTHOR BRENTON KELLY - WEB DEVELOPMENT MANAGER - BLACKBOARD, INC. // VERSION 11.21.19 var csGlobalJs={OpenInNewWindowWarning:function(){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),$("a[target*='_blank']").each(function(){$(this).attr("aria-label")&&!$(this).attr("aria-label").includes("Opens a new window")?$(this).attr("aria-label",$(this).attr("aria-label")+" - Opens a new window"):!$(this).attr("aria-label")&&""==$.trim($(this).text())&&$("> img",this).length?$(this).attr("aria-label",$("> img",this).attr("alt")+" - Opens a new window"):$(this).attr("aria-label")||$(this).text().toLowerCase().includes("new")||$(this).text().toLowerCase().includes("window")||$(this).attr("aria-label",$(this).text()+" - Opens a new window")}),$(document).off("touchend mouseenter mouseleave focus blur","a[target*='_blank']").on("touchend mouseenter mouseleave focus blur","a[target*='_blank']",function(e){if(/iPad|iPhone|iPod/.test(window.navigator.userAgent)){if("touchend"==e.type)return window.open($(this).attr("href"),"_blank"),!1}else"mouseenter"==e.type||"focusin"==e.type?$("body").append('