var breeze_prefetch = {"local_url":"https:\/\/awakenpittsburgh.org","ignore_remote_prefetch":"1","ignore_list":["http:\/\/awakenpittsburgh.org\/","http:\/\/awakenpittsburgh.org\/support\/","http:\/\/awakenpittsburgh.org\/about\/team\/","http:\/\/awakenpittsburgh.org\/why\/","http:\/\/awakenpittsburgh.org\/programs\/teams-organizations\/public-safety\/","wp-admin","wp-login.php"]};
( function () {
var completed = false;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.tribe ) {
return;
}if ( 'undefined' === typeof window.tribe.events ) {
return;
}if ( 'undefined' === typeof window.tribe.events.views ) {
return;
}if ( 'undefined' === typeof window.tribe.events.views.breakpoints ) {
return;
}if ( 'function' !== typeof (window.tribe.events.views.breakpoints.setup) ) {
return;
}var container = document.querySelectorAll( '[data-view-breakpoint-pointer="e0741c99-614a-4a7f-ae84-c80c1c2cac9b"]' );
if ( ! container ) {
return;
}window.tribe.events.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 );
})();
jQuery(function(){
// Images
//begin updates to alternate text, title, and aria-label if needed only
var imgCnt = 1;
jQuery('img').each(function () {
var curAlt = jQuery(this).attr('alt');
var curTitle = jQuery(this).attr('title');
var curAriaLbl = jQuery(this).attr('aria-label');
var curImgPrnts = jQuery(this).parents().map(function () {
return this.tagName;
})
.get()
.join(', ');
//no alt text or empty alt text or undefined
if (!curAlt || curAlt === '' || curAlt === 'undefined') {
jQuery(this).attr('alt', ''); //decorative
if (curImgPrnts.includes('A,') || curImgPrnts.includes(' A ')) {
jQuery(this).attr('alt', 'Image link #' + imgCnt);
if (!curTitle || curTitle === '' || curTitle === 'undefined') {
} else {
jQuery(this).attr('title', curTitle);
}
if (!curAriaLbl || curAriaLbl === '' || curAriaLbl === 'undefined') {
if (!curTitle || curTitle === '' || curTitle === 'undefined') {
} else {
jQuery(this).attr('aria-label', curTitle);
}
} else {
/*add it back in*/
jQuery(this).attr('aria-label', curAriaLbl);
}
} else {
//if empty then should not contain title or aria-label
jQuery(this).removeAttr('aria-label');
jQuery(this).removeAttr('title');
}
} else {
//alt present so we should leave alt alone
jQuery(this).attr('alt', curAlt);
//if title present add an aria-label as well
if (!curTitle || curTitle === '' || curTitle === 'undefined') {
}
else {
/*Add title back in*/
jQuery(this).attr('title', curTitle);
//first check to make sure it doesn't already have aria-label
if (!curAriaLbl || curAriaLbl === '' || curAriaLbl === 'undefined') {
jQuery(this).attr('aria-label', curTitle);
} else {
/*add it back in*/
jQuery(this).attr('aria-label', curAriaLbl);
}
}
}
imgCnt++;
});
//end updates to alternate text, title, and aria-label if needed only
var h1Cnt = 0;
jQuery("h1").each(function () {
h1Cnt++;
});
if(h1Cnt == 0){
jQuery("#main").prepend('<div role="region" aria-label="Main Heading"><h1 class="sr-only">' + jQuery("title").html() + '</h1></div>');
}
/*shortcut not contained within previous navigation container - setup for unique landmark*/
jQuery("#wp-toolbar").removeAttr("role").removeAttr("aria-label");
jQuery("#wpadminbar").attr("role", "navigation");
jQuery("#wpadminbar").attr("aria-label", "Toolbar");
var navCnt = 1;
jQuery("nav").each( function(){
jQuery(this).attr("aria-label","Navigation Menu #"+navCnt);
navCnt++;
});
//location map
jQuery('iframe').each(function(){
var curTarget = String(jQuery(this).attr('src'));
if(curTarget.includes('google') && curTarget.includes('map')){
jQuery(this).attr('aria-label','Google Map');
}
});
//remove role from ul, li, buttons, and a = you can't change the default purpose on these without changing all the others
setTimeout(function(){
jQuery('#menu-desktop-menu').removeAttr('role');
jQuery('#menu-desktop-menu').find('a').each(function(){
var curRole = String(jQuery(this).attr('role'));
if(curRole.includes('menuitem')){
jQuery(this).removeAttr('role');
}
});
jQuery('#menu-desktop-menu').find('button').each(function(){
var curRole = String(jQuery(this).attr('role'));
if(curRole.includes('menuitem')){
jQuery(this).removeAttr('role');
}
});
jQuery('#menu-desktop-menu').find('li').each(function(){
var curRole = String(jQuery(this).attr('role'));
if(curRole.includes('none')){
jQuery(this).removeAttr('role');
}
});
},1200);
//fix discernible links
var curCnt = 1;
jQuery('body').find('a').each(function(){
var curContent = String(jQuery(this).html());
var curhref = String(jQuery(this).attr('href'));
if(curContent === ''){
if(curhref === ''){
jQuery(this).append('<span class="sr-only">Link #'+curCnt+'</span>');
}else{
jQuery(this).append('<span class="sr-only">Link: '+curhref+'</span>');
}
}
});
setTimeout(function(){
jQuery('a[data-brz-link-type="external"]').each(function(){
jQuery(this).attr('aria-label','opens in new window or tab').attr('role','button');
});
}, 1500);
});
( function ( body ) {
'use strict';
body.className = body.className.replace( /\btribe-no-js\b/, 'tribe-js' );
} )( document.body );
var tribe_l10n_datatables = {"aria":{"sort_ascending":": activate to sort column ascending","sort_descending":": activate to sort column descending"},"length_menu":"Show _MENU_ entries","empty_table":"No data available in table","info":"Showing _START_ to _END_ of _TOTAL_ entries","info_empty":"Showing 0 to 0 of 0 entries","info_filtered":"(filtered from _MAX_ total entries)","zero_records":"No matching records found","search":"Search:","all_selected_text":"All items on this page were selected. ","select_all_link":"Select all pages","clear_selection":"Clear Selection.","pagination":{"all":"All","next":"Next","previous":"Previous"},"select":{"rows":{"0":"","_":": Selected %d rows","1":": Selected 1 row"}},"datepicker":{"dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesMin":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Prev","currentText":"Today","closeText":"Done","today":"Today","clear":"Clear"}};