In celebration of Disability Awareness Month, Amerigroup, Disability:IN Central Texas and Texas Center for Disability Studies are hosting a job and resource fair for the Austin community. We are seeking employers, community resources and adults with different abilities to come join us for a morning of speakers, awards, and networking opportunities.
ele.outerFind(‘#site-navigation ul#menu-primary-menu’).attr(‘data-ae-site-menu-link’, ‘true’);
});
(function () {
var rem = function (ele, api) {
//—– 1. Social Menu ——
ele.outerFind(‘aside#custom_html-3’).each(function(){
$ae(‘footer’).after(”);
$ae(this).find(‘a.social-wrap’).each(function(){
$ae(‘ul.ae_disability_in_social_menu_clone’).append(‘
‘);
});
});
//—– 2. Contact Us Menu ——
ele.outerFind(‘aside#custom_html-4’).each(function(){
$ae(‘footer’).after(‘
‘);
$ae(this).find(‘a’).each(function(){
$ae(‘ul.ae_disability_in_contact_menu_clone’).append(‘
‘);
});
});
};
rem.id = 40388;
rem.title = “Clone Menu”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Clone_Menu.js
(function () {
var rem = function (ele, api) {
//—– 1. Add Context to Vague Links ——
//https://disabilityin.org/what-we-do/committees/procurement-council/
ele.outerFind(‘.vc_grid.vc_row .vc_grid-item-mini’).each(function(){
if($ae(this).closest(‘.wpb_wrapper’).find(‘.wpb_text_column.wpb_content_element:first h3:contains(Procurement Council Members)’)){
//Append text
api.addComplianceIndentHidden($ae(this).find(‘.vc_gitem-zone a:contains(Read more)’),’append’,’span’, ” about ” + $ae(this).find(‘.vc_gitem-zone .vc_gitem-post-data-source-post_title’).text().trim());
//Hide duplicate link image from AT
api.hideFromAT($ae(this).find(‘.vc_gitem-animated-block a’));
//Give an alt
$ae(this).find(‘.vc_gitem-animated-block img’).attr(‘alt’,$ae(this).find(‘.vc_gitem-zone .vc_gitem-post-data-source-post_title’).text().trim());
}
});
ele.outerFind(‘.section-standard .center-callout a.button.w-button:contains(Read More)’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,$ae(this).closest(‘.section-standard’).find(‘.container.medium h2’).text().trim());
});
ele.outerFind(‘.usbln-blog-feature-box .usbln-blog-feature-metabox a span.usbln-blog-feature-readmore:contains(Read More)’).closest(‘a’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,$ae(this).closest(‘.usbln-blog-feature-box’).find(‘.usbln-blog-feature-title’).text().trim());
});
ele.outerFind(‘.w-tab-content .program-block a:contains(Learn More)’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” about ” + $ae(this).closest(‘.program-block’).find(‘h3’).text().trim());
});
ele.outerFind(‘a:contains([Read More])[title]’).each(function(){
if($ae(this).attr(‘title’)){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” ” + $ae(this).attr(‘title’));
}
});
//ADD TEXT TO LINKS WITH VAGUE CONTEXT ::
ele.outerFind(‘.page.type-page.status-publish a:contains(“Click here”)’).each(function(){
var fullText = $ae(this).parent().text().trim().toLowerCase().split(“click here”);
//Check the text after CLICK HERE
var excludeText = fullText[1].split(“opens a new window.” );
var excludeText2 = excludeText[excludeText.length-1].trim().split(“.”);
var endingText = excludeText2[0];
//Check text before Click here
var beginText = fullText[0].trim();
if(endingText !== “.” && endingText !== “”){
//use the ending text
api.addComplianceIndentHidden($ae(this),’append’,’span’,endingText);
}else if(beginText !== “”){
//use the beginning text
api.addComplianceIndentHidden($ae(this),’prepend’,’span’,beginText);
}
});
ele.outerFind(‘a[href=”https://www.ameritconsulting.com/”]:contains(click here)’).each(function(){
if($ae(this).text().trim() === “click here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” to learn more about Amerit Consulting.”);
}
});
ele.outerFind(‘a[href=”https://www.thebrave.us/”]:contains(click here)’).each(function(){
if($ae(this).text().trim() === “click here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” to learn more about BRAVE.”);
}
});
ele.outerFind(‘.center-callout a[href=”https://disabilityin.org/business/”]:contains(Learn more)’).each(function(){
if($ae(this).text().trim() == ‘Learn more’){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’ about Disability Inclusion’);
}
});
ele.outerFind(‘a[href=”https://www.insightintodiversity.com/usbln-plays-matchmaker-for-companies-that-see-value-in-disability-inclusion/”]:contains(Click here)’).each(function(){
if($ae(this).text().trim().toLowerCase() === “click here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” to read more about USBLN® Plays Matchmaker for Companies That See Value in Disability Inclusion”);
}
});
ele.outerFind(‘a[href=”https://conference.usbln.org/2017_conference/agenda/”]:contains(here)’).each(function(){
if($ae(this).text().trim() === “here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,”for the full program agenda for the 2017 conference.”);
}
});
ele.outerFind(‘a[href=”https://www.facebook.com/Greater-Houston-Business-Leadership-Network-137115079662313/?ref=search”]:contains(Click Here)’).each(function(){
if($ae(this).text().trim() === “Click Here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,”to go to Houston Business Leadership Network’s website.”);
}
});
//https://disabilityin.org/what-we-do/affiliates/?location=mnusbln
ele.outerFind(‘.mapplic-map .mapplic-layer.states a.mapplic-pin’).each(function(){
if($ae(this).attr(‘data-location’)){
var fullLocation = $ae(this).attr(‘data-location’);
//console.log(fullLocation);
var textArray = fullLocation.split(‘-‘);
//console.log(‘Array’, textArray);
var newtxt = “”;
for(var i = 0; i < textArray.length; i++){
//if(textArray[i].indexOf(‘bln’) < 1 && textArray[i].indexOf(‘ of ‘) div > div’).text().trim());
//Remove Aria-Live
$ae(this).closest(‘div’).find(‘div.longdesc’).removeAttr(‘aria-live’);
});
ele.outerFind(‘.usbln-blog-body figure button span:contains(Long Description)’).closest(‘a[href*=”disabilityin.org/what-we-do/disability-equality-index/2017-dei-report/”]’).attr(‘aria-label’,’The 2017 Disability Equality Index’);
//—— 2. Add context to empty links ——-
ele.outerFind(‘.mapplic-element .mapplic-container a.mapplic-fullscreen-button’).each(function(){
$ae(this).attr(‘aria-label’,’Fullscreen’);
});
ele.outerFind(‘.mapplic-zoom-buttons a.mapplic-zoomin-button’).each(function(){
$ae(this).attr(‘aria-label’,’Zoom In’);
});
ele.outerFind(‘.mapplic-zoom-buttons a.mapplic-zoomout-button’).each(function(){
$ae(this).attr(‘aria-label’,’Zoom Out’);
});
ele.outerFind(‘a.mapplic-clear-button’).each(function(){
$ae(this).attr(‘aria-label’,’Clear Map’);
});
ele.outerFind(‘a.mapplic-tooltip-close’).each(function(){
$ae(this).attr(‘aria-label’,’Close Map’);
});
ele.outerFind(‘a.mapplic-pin[data-location=”ctxbln”]’).each(function(){
$ae(this).attr(‘aria-label’,’Central Texas BLN (CTXBLN’);
});
ele.outerFind(‘a.mapplic-pin[data-location=”utbln”]’).each(function(){
$ae(this).attr(‘aria-label’,’Utah Business Leadership Network’);
});
ele.outerFind(‘a.mapplic-pin[data-location=”mmbln”]’).each(function(){
$ae(this).attr(‘aria-label’,’Mid Missouri Business Leadership Network’);
});
ele.outerFind(‘.cr3_sponsorwrapper .fours-column a .cr3_sponsor_image’).each(function(){
if($ae(this).closest(‘a’).attr(‘href’) === “”){
api.hideFromAT($ae(this).closest(‘a’));
}
});
ele.outerFind(‘figure.wp-caption a[href=”https://disabilityin.org/what-we-do/disability-equality-index/2017-dei-report/”]’).each(function(){
if($ae(this).text().trim() === “”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’Disability Equality Index’);
}
});
ele.outerFind(‘.x_MsoNormal:contains(Registration Link: ) a[href=”https://usbln.wufoo.com/forms/zruett40v8lhfw/”]’).each(function(){
if($ae(this).text().trim() === “”){
api.hideFromAT($ae(this));
}
});
ele.outerFind(‘.ls-nav-next’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’Next’);
});
ele.outerFind(‘.ls-nav-prev’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’Previous’);
});
//——- 3. Hide hidden links ———
ele.outerFind(‘a:empty’).each(function(){
if(!$ae(this).attr(‘class’)){
api.hideFromAT($ae(this));
}
});
ele.outerFind(‘a.ls-nav-active’).each(function(){
api.hideFromAT($ae(this));
});
ele.outerFind(‘a[href=”mailto:[email protected]”]’).each(function(){
if($ae(this).text().trim() === “”){
api.hideFromAT($ae(this));
}
});
ele.outerFind(‘.skip-link.screen-reader-text’).each(function(){
api.hideFromAT($ae(this));
});
ele.outerFind(‘a[href=”https://www.ameritconsulting.com/”] img[src=”/wp-content/uploads/2016/11/BRAVE-VOY11-228×300.jpg”]’).each(function(){
api.hideFromAT($ae(this).closest(‘a’));
});
//—— 4. Unhide links ——–
ele.outerFind(‘.usbln-blog-toggle[aria-hidden=”true”]’).attr(‘aria-hidden’,’false’);
ele.outerFind(‘.ls-wp-container.ls-container.ls-minimal’).closest(‘div[aria-hidden=”true”]’).attr(‘aria-hidden’,’false’);
//ele.outerFind(‘#layerslider_16’).parent().attr(‘aria-hidden’,’false’);
//—— 5. Convert Links to buttons ——
ele.outerFind(‘.tabs-menu.w-tab-menu a.tab-link-tab-4-2, #tribe-events-gmap-0 a:contains(Map Data), .usbln-blog-toggle .usbln-blog-toggle-item’).attr(‘role’,’button’);
// AE – AT REmediations
ele.outerFind(‘div.usbln-blog-main div.usbln-blog-feed div a:contains(Load More)’).each(function(){
api.addComplianceIndent($ae(this),’append’,’span’,’ News and Events’);
$ae(this).attr(‘role’,’button’);
});
// AE – [AEI-40120] Unhide hidden links
ele.outerFind(‘.cr3_sponsorwrapper .fours-column a’).removeAttr(‘role aria-hidden tabindex’);
// AE – Vague Links
ele.outerFind(‘.vc_grid-item .vc_gitem-zone-mini .vc_gitem-col .vc_btn3-container a.vc_gitem-link’).each(function(){
if($ae(this).text().trim() === “Read Bio”){
api.addComplianceIndent($ae(this),’prepend’,’span’,$ae(this).closest(‘.vc_gitem-col’).find(‘.vc_gitem-post-data-source-post_title h4’).text().trim());
}
});
api.hideFromAT(‘.vc_grid-item .vc_gitem-animated-block a’);
//Social Links
ele.outerFind(‘#footer-widgets aside a.social-wrap img’).attr(‘alt’,”);
};
rem.id = 40210;
rem.title = “Phase 2 – Links and Buttons”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Links_and_Buttons.js
(function () {
var rem = function (ele, api) {
//1. Add alt
//If there are no alts in a google maps image, give empty alt
ele.outerFind(‘.tribe-events-meta-group.tribe-events-meta-group-gmap img, #tribe-events-gmap-0 img’).each(function(){
if(!$ae(this).attr(‘alt’)){
$ae(this).attr(‘alt’,”);
}
});
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2015/12/BDA-DOBE-SDV_DOBE.png”]’).each(function(){
if($ae(this).attr(‘alt’) === “”){
$ae(this).attr(‘alt’,’USBLN Certifications guide supplier diversity expansion. DOBE, V-DOBE, and SDV-DOBE certifications. Learn More’);
}
});
//Image of quotes
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/themes/usbln/wf-images/d-quote.svg”]’).attr(‘alt’,”);
//Give image empty alt for https://disabilityin.org/what-we-do/affiliates/
//The link/button has already been given an aria label
ele.outerFind(‘img.mapplic-minimap-active, img.mapplic-minimap-background, img.mapplic-tooltip-image’).attr(‘alt’,”);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2018/08/GSL_5669.jpg”]’).attr(‘alt’,”);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/04/nbic_logo_FULL-768×186.jpg”]’).attr(‘alt’,’National Business Inclusion Consortium, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/08/HIRESlogo-768×278.jpg”]’).attr(‘alt’,’Handicap International, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/03/logo_diversitycomm.gif”]’).attr(‘alt’,’Diversity Comm, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/07/CSDLogo_350px-1.png”]’).attr(‘alt’,’CSD, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2015/08/Viacom-768×768.png”]’).attr(‘alt’,’Viacom, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/08/SL_rgb_hi_blue_pms3005.png”]’).attr(‘alt’,’Shire, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/06/logo_cvs-health.gif”]’).attr(‘alt’,’CVS Health, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/03/logo_starbucks_07.gif”]’).attr(‘alt’,’Starbucks, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/08/GSK-768×768.png”]’).attr(‘alt’,’GSK, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2018/03/USBLN-2017-Form-990-Public-Disclosure-Copy-pdf-232×300.jpg”]’).attr(‘alt’,’Public Disclosure Copy, PDF’);
ele.outerFind(‘img[src=”/wp-content/uploads/2017/08/Screen-Shot-2017-08-21-at-4.22.41-PM.png”]’).attr(‘alt’,’The 2017 Disability Equality Index. A record Year for Corporate Disability Inclusion and Leadership. USBLN and AAPD.’);
ele.outerFind(‘svg#Layer_1’).attr({‘aria-label’:’United States Map’});
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/03/logo_new-additions.gif”]’).attr(‘alt’,’New Editions Consulting INC Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/05/Nedra-Dickson.png”]’).attr(‘alt’,’Nedra Dickson’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2018/12/Disability-Inclusion-Advantage.png”]’).attr(‘alt’,’The Disability Inclusion Advantage by Accenture. Research report produced jointly by Disability In and AAPD.’);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
ele.outerFind(‘#layerslider_16 img, #layerslider_15 img’).each(function(){
//$ae(this).attr(‘alt’,$ae(this).closest(‘.ls-slide’).find(‘.ls-l-1:first’).text().trim());
$ae(this).attr(‘alt’,’test’);
//Get the string of the source after the last ‘/’
var fullSource = $ae(this).attr(‘src’);
var fullSrcArray = fullSource.split(‘/’);
var uniqueSource = fullSrcArray[fullSrcArray.length-1];
//Split the string by ‘.’ and get the text before the first one
var secondSplit = uniqueSource.split(‘.’);
var splitResults = secondSplit[0];
//console.log(splitResults);//Use to check output
var splitResults = splitResults.replace(/-/g, ‘ ‘);
//Set the alt
$ae(this).attr(‘alt’, splitResults);
//$ae(this).attr(‘alt’, $ae(this).closest(‘.ls-slide’).find(‘.ls-l-1:first’).text().trim());
});
};
rem.id = 40213;
rem.title = “Phase 2 – Images”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Images.js
(function () {
var rem = function (ele, api) {
//—— 1. Add title to iframe ——
ele.outerFind(‘iframe[src*=”player.vimeo.com”]’).each(function(){
if(!($ae(this).attr(‘title’))){
$ae(this).attr(“title”,”Vimeo video frame”);
}
});
//—— 2. Add titles to forms ——
ele.outerFind(‘#search-block-form’).each(function(){
if((!$ae(this).attr(‘title’) || $ae(this).attr(‘title’) === “”) && (!$ae(this).attr(‘aria-label’) || $ae(this).attr(‘aria-label’) === “”)){
$ae(this).attr(‘aria-label’,’Search’);
}
});
ele.outerFind(‘form[action=”https://disabilityin.org/wp-login.php?action=postpass&wpe-login=true”]’).each(function(){
if((!$ae(this).attr(‘title’) || $ae(this).attr(‘title’) === “”) && (!$ae(this).attr(‘aria-label’) || $ae(this).attr(‘aria-label’) === “”)){
$ae(this).attr(‘aria-label’,’Enter Member Password’);
}
});
ele.outerFind(‘#ninja_forms_form_8’).each(function(){
if((!$ae(this).attr(‘title’) || $ae(this).attr(‘title’) === “”) && (!$ae(this).attr(‘aria-label’) || $ae(this).attr(‘aria-label’) === “”)){
$ae(this).attr(‘aria-label’,’Affiliate Information Update Requests’);
}
});
ele.outerFind(‘.xcontactSection form’).attr(‘aria-label’,’Contact Form’);
ele.outerFind(‘article form’).each(function(){
$ae(this).attr(‘aria-label’, $ae(this).closest(‘article’).find(‘h1.entry-title’).text().trim());
});
//—– 3. Hide hidden fields ——
ele.outerFind(‘#ninja_forms_field_73_template’).each(function(){
api.hideFromAT($ae(this));
});
//—– 4. Handle Form errors —–
//https://disabilityin.org/what-we-do/affiliates/update-requests/
ele.outerFind(‘.ninja-forms-field-error’).not(‘[style=”display:none;”]’).eq(0).each(function(){
$ae(‘.ninja-forms-field-error[role=”alert”]’);
$ae(this).attr(‘role’,’alert’);
var m = $ae(this);
setTimeout(function(){
AudioEye.focusElement(m.parent().find(‘input.ninja-forms-req’));
}, 450);
});
//—– 5. Add Label to Radio Buttons —–
//Add a description to radio groups
ele.outerFind(‘.field-wrap.list-radio-wrap’).each(function(){
if($ae(this).find(‘input[type=”radio”]’).length>0){
var desc_id=”ae_describedby_” + Math.floor(Math.random() * 10000);
$ae(this).find(‘> label’).attr(“id”,desc_id);
$ae(this).find(‘input[type=”radio”]’).attr(“aria-describedby”, desc_id);
}
});
ele.outerFind(‘input#choice_1_20_3[type=”radio”]’).attr(‘aria-label’,’Other’);
//—— 6. Add required fields ——-
ele.outerFind(‘form.ninja-forms-form input.ninja-forms-field.ninja-forms-req’).each(function(){
$ae(this).attr(‘aria-required’,’true’);
});
};
rem.id = 40212;
rem.title = “Phase 2 – iFrames and Forms”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___iFrames_and_Forms.js
(function () {
var rem = function (ele, api) {
//—— 1. Headers ——-
//Change role of duplicate headers
ele.outerFind(‘header’).not(‘#masthead’).each(function(){
api.setPresentation($ae(this));
});
//—— 2. Label Navigation Regions ——-
ele.outerFind(‘nav#site-navigation’).attr(‘aria-label’,’Main’);
ele.outerFind(‘nav#top-menu-nav’).attr(‘aria-label’,’Main Menu’);
ele.outerFind(‘nav.navigation.paging-navigation’).attr(‘aria-label’,’Paging’);
ele.outerFind(‘nav.navigation.post-navigation’).attr(‘aria-label’,’Post Navigation’);
//#footer-widgets, .widget-area, #footer-widgets
ele.outerFind(‘#footer-widgets, footer aside’).removeAttr(‘[role=”presentation”]’);
ele.outerFind(‘#footer-widgets, footer aside, .widget-area’).each(function(){
var whodis = $ae(this);
//setTimeout(function(){
whodis.attr(‘role’,’presentation’);
//}, 1000);
});
ele.outerFind(‘body.page-id-8090, body.page-id-9862’).find(‘header#masthead.site-header’).attr(‘role’,’presentation’);
};
rem.id = 40211;
rem.title = “Phase 2 – Landmarks”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Landmarks.js
(function () {
var rem = function (ele, api) {
ele.outerFind(‘.tribe-events-day-time-slot h5’).each(function(){
api.setPresentation($ae(this));
});
//If there is an h1 as a page title change all other h1’s -> h2’s
ele.outerFind(‘h1.page-title’).each(function(){
$ae(‘body h1’).not(‘.page-title’).attr({‘role’:’heading’,’aria-level’:’2′});
});
ele.outerFind(‘h1.entry-title:first’).each(function(){
if($ae(‘body h1.page-title’).length 0) && !($ae(‘body [role=”heading”][aria-level=”1″]’).legnth > 0)){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
}
});
ele.outerFind(‘.usbln-blog-title:first’).each(function(){
if(!($ae(‘body h1’).legnth > 0) && !($ae(‘body [role=”heading”][aria-level=”1″]’).legnth > 0)){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
}
});
ele.outerFind(‘h3:contains(What can you do to build relationships and get connected?)’).each(function(){
api.setPresentation($ae(this));
});
ele.outerFind(‘.page-id-9862 .xmarqueeSection-image h2’).attr({‘role’:’presentation’});
ele.outerFind(‘#site-navigation h1.menu-toggle’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘aside h4’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘.usbln-blog-feature-box .usbln-blog-feature-title:contains(Companies That Improve Disability Inclusion Over Time Outperform Their Peers)’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#post-9862 h3’).attr({‘role’:’heading’,’aria-level’:’2′});
//Hidden Headers
ele.outerFind(‘h3.screen-reader-text, h3.tribe-events-visuallyhidden’).each(function(){
api.hideFromAT($ae(this));
});
//Employees
ele.outerFind(‘.vc_custom_heading.vc_gitem-post-data.vc_gitem-post-data-source-post_title h4’).each(function(){
if($ae(‘body h2’).legnth < 1 && $ae(‘body [role=”heading”][aria-level=”2″]’).legnth 1){
var contents2 = contents.slice(0, location);
//console.log(contents2);
if($ae(contents).index(‘h2’) < 1 && $ae(contents).index(‘[aria-level=”2″][role=”heading”]’) < 1){
$ae(‘main h3’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’2′});
});
}
}
});
ele.outerFind(‘.vc_grid-item-mini .vc_gitem-zone-mini .vc_custom_heading h4’).each(function(){
if($ae(this).closest(‘#main’).find(‘h2’).length < 1 && $ae(this).closest(‘#main’).find(‘[role=”heading”][aria-level=”2″]’).length < 1){
$ae(‘.vc_grid-item-mini .vc_gitem-zone-mini .vc_custom_heading h4’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’2′});
});
}
});
ele.outerFind(‘#post-128 h1’).attr({‘role’:’presentation’});
ele.outerFind(‘#post-128 figure.wpb_wrapper.vc_figure .vc_single_image-wrapper.vc_box_border_grey’).eq(0).attr({‘role’:’heading’,’aria-level’:’1′});
ele.outerFind(‘#post-1944 h1’).attr({‘role’:’presentation’});
ele.outerFind(‘#post-1944 figure.wpb_wrapper.vc_figure .vc_single_image-wrapper.vc_box_border_grey’).eq(0).attr({‘role’:’heading’,’aria-level’:’1′});
ele.outerFind(‘#post-2507 strong:contains(Presenting Sponsors)’).eq(0).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#post-2507 strong:contains(Tour Partners)’).eq(0).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#comments h3#reply-title’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#post-89 h1.entry-title’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’2′});
});
ele.outerFind(‘h1.tribe-events-single-event-title’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
});
//If there is no h1 or level 1 header on a page, make the logo an h1
ele.outerFind(‘.site-header .top-bar .logo’).each(function(){
//There is no h1’s or heading level 1’s
if($ae(‘body [role=”heading”][aria-level=”1″]’).length < 1 && $ae(‘body h1’).not(‘[role=”presentation”]’).not(‘[role=”heading”]’).length < 1){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
}
});
};
rem.id = 40215;
rem.title = “Phase 2 – Heading Levels”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Heading_Levels.js
(function () {
var rem = function (ele, api) {
//—— 1. Add the “cite” attribute to blockquotes ——
ele.outerFind(‘.usbln-blog-title:contains(These Diversity & Inclusion influencers recommend your company use the Disability Equality Index…here’s why.)’).each(function(){
$ae(‘body .usbln-blog-body ol li blockquote’).each(function(){
$ae(this).attr(‘cite’,$ae(this).closest(‘li’).find(‘strong’).text().trim());
});
});
ele.outerFind(‘blockquote:contains(Working with Disability:IN affiliate allows me to not only positively interact with EY clients who support diverse abilities in their workplaces, but also to meet leaders from other companies to learn more from them and share with them as they develop their own best practices when hiring and creating workplaces where people of diverse abilities can achieve career success.)’).each(function(){
$ae(this).attr(‘cite’,’Michelle Murray. WorkWell@EY Program Manager, Vice Chair of Disability:IN’);
});
//—– 2. Add role = “presentation” to inproper blockquotes —–
ele.outerFind(‘.usbln-blog-body’).each(function(){
var children = $ae(this).children();
//If the blockquote is the first child in the body
if($ae(children[0]).is(‘blockquote’)){
$ae(children[0]).attr(‘role’,’presentation’);
}
});
ele.outerFind(‘blockquote:contains(92% of the American public view companies that hire people with disabilities more favorably)’).each(function(){
$ae(this).attr(‘role’,’presentation’);
});
ele.outerFind(‘blockquote:contains(highlights various young leaders with disabilities in the Rising Leader Spotlight Series. If you are a corporate partner)’).each(function(){
$ae(this).attr(‘role’,’presentation’);
});
/*
ele.outerFind(‘blockquote:contains()’).each(function(){
$ae(this).attr(‘role’,’presentation’);
});
*/
//—– 3. Set role presentation to uls w no chiildren or text ——
ele.outerFind(‘ul:empty, ol:empty’).attr({‘role’:’presentation’});
//—– 4. If a ol has only 1 item, set role presentation ——-
ele.outerFind(‘ol, ul’).each(function(){
if($ae(this).children().length < 2){
api.setPresentation($ae(this));
}
});
};
rem.id = 40214;
rem.title = “Phase 2: Blockquotes and Lists”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2__Blockquotes_and_Lists.js
(function () {
var rem = function (ele, api) {
////////// TABSETS //////////
// AE – Tabset Type 1 —————
ele.outerFind(‘.tabs-menu.w-tab-menu’).attr(‘role’,’tablist’);
ele.outerFind(‘.tabs-menu.w-tab-menu a’).attr({‘role’:’tab’,’tabindex’:’-1′,’aria-selected’:’false’});
ele.outerFind(‘.tabs-menu.w-tab-menu a.w–current’).attr({‘tabindex’:’0′,’aria-selected’:’true’});
//— Initial Tabpanel Setup and Naming —
ele.outerFind(‘.tabs.w-tabs .w-tab-content’).each(function(){
$ae(this).attr({‘tabindex’:’0′, ‘role’:’tabpanel’,’aria-label’: $ae(this).closest(‘.tabs.w-tabs’).find(‘.tabs-menu.w-tab-menu a.w–current’).text()});
});
//— Configure click changes —
ele.outerFind(‘.tabs-menu.w-tab-menu a’).click(function(){
$ae(‘.tabs-menu.w-tab-menu a’).attr({‘tabindex’:’-1′,’aria-selected’:’false’});
$ae(this).attr({‘tabindex’:’0′, ‘aria-selected’:’true’});
//Change tabpanel’s label
$ae(‘.tabs.w-tabs .w-tab-content’).each(function(){
$ae(this).attr({‘aria-label’: $ae(this).closest(‘.tabs.w-tabs’).find(‘.tabs-menu.w-tab-menu a.w–current’).text()});
});
});
//— Configure Arrow keys —
// Key Navigation for tabsets with tabindex -1
ele.outerFind(‘.tabs-menu.w-tab-menu a’).each(function(index){
var length = $ae(this).closest(‘.tabs-menu.w-tab-menu’).find(‘a’).length;
var last = length – 1;
$ae(this).on(‘keydown’, function(e){
if(e.keyCode === 13 || e.keyCode === 32){
e.preventDefault();
this.click();
}
else if(e.keyCode === 37 && (index > 0 && index <= last)){
e.preventDefault();
AudioEye.focusElement($ae(this).prev(‘a’));
}
else if(e.keyCode === 37 && index === 0){
e.preventDefault();
AudioEye.focusElement($ae(this).closest(‘.tabs-menu.w-tab-menu’).find(‘a’).eq(last));
}
else if(e.keyCode === 39 && index div[style=”display: block;”]’).attr(‘aria-controls’) || $ae(this).attr(‘aria-controls’) === $ae(‘.usbln-blog-main .usbln-blog-feed > div’).not(‘[style=”display: none;”]’).attr(‘aria-controls’)){
$ae(this).attr({‘tabindex’:’0′,’aria-selected’:’true’});
}
});
//Initial Tabpanel Setup and Naming
ele.outerFind(‘.usbln-blog-main .usbln-blog-feed’).each(function(){
$ae(this).attr({‘tabindex’:’0′, ‘role’:’tabpanel’,’aria-label’: $ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item[aria-selected=”true”]’).text().trim()});
});
//Add Click functionality
ele.outerFind(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’).click(function(){
$ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’).attr({‘tabindex’:’-1′,’aria-selected’:’false’});
$ae(this).attr({‘tabindex’:’0′, ‘aria-selected’:’true’});
//Change tabpanel’s label
$ae(‘.usbln-blog-main .usbln-blog-feed’).each(function(){
$ae(this).attr({‘role’:’tabpanel’,’aria-label’: $ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item[aria-selected=”true”]’).text().trim()});
});
var newThis = $ae(this);
setTimeout(function(){
AudioEye.focusElement($ae(‘.usbln-blog-main .usbln-blog-feed’));
}, 250);
});
// Key Navigation for tabsets without tabindex
ele.outerFind(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’).each(function(index){
var length = $ae(this).closest(‘div.usbln-blog-toggle’).find(‘a.usbln-blog-toggle-item’).length;
var last = length – 1;
var array = $ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’);
$ae(this).on(‘keydown’, function(e){
if(e.keyCode === 13 || e.keyCode === 32){
e.preventDefault();
this.click();
}
else if((e.keyCode === 37 || e.keyCode === 38) && (index > 0 && index <= last)){
e.preventDefault(); //Left/Up arrow when it isn’t the first item in the list
AudioEye.focusElement(array[index-1]);
}
else if((e.keyCode === 37 || e.keyCode === 38) && index === 0){
e.preventDefault(); // Left/Up arrow when it is the first item in the list
AudioEye.focusElement(array[last]);
}
else if((e.keyCode === 39 || e.keyCode === 40) && index < last){
e.preventDefault(); // Right/Down arrow when it isn’t the last item in the list
AudioEye.focusElement(array[index+1]);
}
else if((e.keyCode === 39 || e.keyCode === 40) && index === last ){
e.preventDefault(); // Right/Down arrow when it is the last item in the list
AudioEye.focusElement(array[0]);
}
});
});
// AE – End of Tabset Type 2 —————
////////// ACCORDIONS //////////
// AE – Accordion Type 1 —————
api.convertToBtn(‘.vc_toggle.vc_toggle_default .vc_toggle_title’);
//Set initial aria-expanded
ele.outerFind(‘.vc_toggle.vc_toggle_default .vc_toggle_title’).each(function(){
if($ae(this).closest(‘.vc_toggle.vc_toggle_default’).hasClass(‘vc_toggle_active’)){
$ae(this).attr({‘aria-expanded’:’true’});
}else{
$ae(this).attr({‘aria-expanded’:’false’});
}
});
//Add Click event
ele.outerFind(‘.vc_toggle.vc_toggle_default .vc_toggle_title’).click(function(){
if($ae(this).closest(‘.vc_toggle.vc_toggle_default’).hasClass(‘vc_toggle_active’)){
$ae(this).attr({‘aria-expanded’:’false’});
}else{
$ae(this).attr({‘aria-expanded’:’true’});
}
});
// End of Accordion Type 1 —————
};
rem.id = 40389;
rem.title = “Accordions and Tabsets”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Accordions_and_Tabsets.js
(function () {
var rem = function (ele, api) {
// AE – Paginations
ele.outerFind(‘.navigation.paging-navigation .page-numbers’).each(function(){
if($ae(this).hasClass(‘prev’)){
//changes to the previous link
}else if($ae(this).hasClass(‘next’)){
//changes to the next link
}else{
api.addComplianceIndent($ae(this),’prepend’,’span’,’Page ‘);
}
});
//Identify PDF Links
ele.outerFind(‘a[href$=”.pdf”], a[href$=”.PDF”]’).each(function(){
var text1 = $ae(this).attr(‘href’);
var textArray2 = text1.split(‘/’);
var endtext3 = textArray2[textArray2.length-1];
var text4 = endtext3.replace(/-|_/g,” “).replace(/.pdf/g,””);
if($ae(this).text().trim().length > 25){
api.addComplianceIndent($ae(this),’append’,’span’,”. Download PDF File”);
}else{
api.addComplianceIndent($ae(this),’append’,’span’,text4 + “. Download PDF File”);
}
});
ele.outerFind(‘a[href$=”.docx”], a[href$=”.DOCX”], a[href$=”.doc”], a[href$=”.DOC”], a[href$=”.docm”], a[href$=”.DOCM”], a[href$=”.dotx”], a[href$=”.DOTX”]’).each(function(){
var text1 = $ae(this).attr(‘href’);
var textArray2 = text1.split(‘/’);
var endtext3 = textArray2[textArray2.length-1];
var text4 = endtext3.replace(/-|_/g,” “).replace(/.docx|.doc/g,””);
//console.log(‘texting123: ‘,text4);
if($ae(this).text().trim().length > 25){
api.addComplianceIndent($ae(this),’append’,’span’,”. Download Word Document.”);
}else{
api.addComplianceIndent($ae(this),’append’,’span’, text4 + “. Download Word Document.”);
}
});
ele.outerFind(‘a[href=”https://www.surveymonkey.com/r/PPJT3RD”]’).each(function(){
$ae(this).find(‘span.ae-compliance-indent’).remove();
api.addComplianceIndent($ae(this),’append’,’span’,’. USBLN Non-US Supplier Application’);
});
ele.outerFind(‘a[href=”/wp-content/uploads/2017/07/USBLN-Non-US-Supplier-Application5b25d.docx”]’).each(function(){
$ae(this).find(‘span.ae-compliance-indent’).remove();
api.addComplianceIndent($ae(this),’append’,’span’,’. USBLN Non-US Supplier Application. Word Document’);
});
};
rem.id = 40393;
rem.title = “AT: Link Remediations”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/AT__Link_Remediations.js
AudioEye.smartRemediations = [];
ele.outerFind(‘#site-navigation ul#menu-primary-menu’).attr(‘data-ae-site-menu-link’, ‘true’);
});
(function () {
var rem = function (ele, api) {
//—– 1. Social Menu ——
ele.outerFind(‘aside#custom_html-3’).each(function(){
$ae(‘footer’).after(‘
‘);
$ae(this).find(‘a.social-wrap’).each(function(){
$ae(‘ul.ae_disability_in_social_menu_clone’).append(‘
‘);
});
});
//—– 2. Contact Us Menu ——
ele.outerFind(‘aside#custom_html-4’).each(function(){
$ae(‘footer’).after(‘
‘);
$ae(this).find(‘a’).each(function(){
$ae(‘ul.ae_disability_in_contact_menu_clone’).append(‘
‘);
});
});
};
rem.id = 40388;
rem.title = “Clone Menu”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Clone_Menu.js
(function () {
var rem = function (ele, api) {
//—– 1. Add Context to Vague Links ——
//https://disabilityin.org/what-we-do/committees/procurement-council/
ele.outerFind(‘.vc_grid.vc_row .vc_grid-item-mini’).each(function(){
if($ae(this).closest(‘.wpb_wrapper’).find(‘.wpb_text_column.wpb_content_element:first h3:contains(Procurement Council Members)’)){
//Append text
api.addComplianceIndentHidden($ae(this).find(‘.vc_gitem-zone a:contains(Read more)’),’append’,’span’, ” about ” + $ae(this).find(‘.vc_gitem-zone .vc_gitem-post-data-source-post_title’).text().trim());
//Hide duplicate link image from AT
api.hideFromAT($ae(this).find(‘.vc_gitem-animated-block a’));
//Give an alt
$ae(this).find(‘.vc_gitem-animated-block img’).attr(‘alt’,$ae(this).find(‘.vc_gitem-zone .vc_gitem-post-data-source-post_title’).text().trim());
}
});
ele.outerFind(‘.section-standard .center-callout a.button.w-button:contains(Read More)’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,$ae(this).closest(‘.section-standard’).find(‘.container.medium h2’).text().trim());
});
ele.outerFind(‘.usbln-blog-feature-box .usbln-blog-feature-metabox a span.usbln-blog-feature-readmore:contains(Read More)’).closest(‘a’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,$ae(this).closest(‘.usbln-blog-feature-box’).find(‘.usbln-blog-feature-title’).text().trim());
});
ele.outerFind(‘.w-tab-content .program-block a:contains(Learn More)’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” about ” + $ae(this).closest(‘.program-block’).find(‘h3’).text().trim());
});
ele.outerFind(‘a:contains([Read More])[title]’).each(function(){
if($ae(this).attr(‘title’)){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” ” + $ae(this).attr(‘title’));
}
});
//ADD TEXT TO LINKS WITH VAGUE CONTEXT ::
ele.outerFind(‘.page.type-page.status-publish a:contains(“Click here”)’).each(function(){
var fullText = $ae(this).parent().text().trim().toLowerCase().split(“click here”);
//Check the text after CLICK HERE
var excludeText = fullText[1].split(“opens a new window.” );
var excludeText2 = excludeText[excludeText.length-1].trim().split(“.”);
var endingText = excludeText2[0];
//Check text before Click here
var beginText = fullText[0].trim();
if(endingText !== “.” && endingText !== “”){
//use the ending text
api.addComplianceIndentHidden($ae(this),’append’,’span’,endingText);
}else if(beginText !== “”){
//use the beginning text
api.addComplianceIndentHidden($ae(this),’prepend’,’span’,beginText);
}
});
ele.outerFind(‘a[href=”https://www.ameritconsulting.com/”]:contains(click here)’).each(function(){
if($ae(this).text().trim() === “click here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” to learn more about Amerit Consulting.”);
}
});
ele.outerFind(‘a[href=”https://www.thebrave.us/”]:contains(click here)’).each(function(){
if($ae(this).text().trim() === “click here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” to learn more about BRAVE.”);
}
});
ele.outerFind(‘.center-callout a[href=”https://disabilityin.org/business/”]:contains(Learn more)’).each(function(){
if($ae(this).text().trim() == ‘Learn more’){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’ about Disability Inclusion’);
}
});
ele.outerFind(‘a[href=”https://www.insightintodiversity.com/usbln-plays-matchmaker-for-companies-that-see-value-in-disability-inclusion/”]:contains(Click here)’).each(function(){
if($ae(this).text().trim().toLowerCase() === “click here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,” to read more about USBLN® Plays Matchmaker for Companies That See Value in Disability Inclusion”);
}
});
ele.outerFind(‘a[href=”https://conference.usbln.org/2017_conference/agenda/”]:contains(here)’).each(function(){
if($ae(this).text().trim() === “here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,”for the full program agenda for the 2017 conference.”);
}
});
ele.outerFind(‘a[href=”https://www.facebook.com/Greater-Houston-Business-Leadership-Network-137115079662313/?ref=search”]:contains(Click Here)’).each(function(){
if($ae(this).text().trim() === “Click Here”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,”to go to Houston Business Leadership Network’s website.”);
}
});
//https://disabilityin.org/what-we-do/affiliates/?location=mnusbln
ele.outerFind(‘.mapplic-map .mapplic-layer.states a.mapplic-pin’).each(function(){
if($ae(this).attr(‘data-location’)){
var fullLocation = $ae(this).attr(‘data-location’);
//console.log(fullLocation);
var textArray = fullLocation.split(‘-‘);
//console.log(‘Array’, textArray);
var newtxt = “”;
for(var i = 0; i < textArray.length; i++){
//if(textArray[i].indexOf(‘bln’) < 1 && textArray[i].indexOf(‘ of ‘) div > div’).text().trim());
//Remove Aria-Live
$ae(this).closest(‘div’).find(‘div.longdesc’).removeAttr(‘aria-live’);
});
ele.outerFind(‘.usbln-blog-body figure button span:contains(Long Description)’).closest(‘a[href*=”disabilityin.org/what-we-do/disability-equality-index/2017-dei-report/”]’).attr(‘aria-label’,’The 2017 Disability Equality Index’);
//—— 2. Add context to empty links ——-
ele.outerFind(‘.mapplic-element .mapplic-container a.mapplic-fullscreen-button’).each(function(){
$ae(this).attr(‘aria-label’,’Fullscreen’);
});
ele.outerFind(‘.mapplic-zoom-buttons a.mapplic-zoomin-button’).each(function(){
$ae(this).attr(‘aria-label’,’Zoom In’);
});
ele.outerFind(‘.mapplic-zoom-buttons a.mapplic-zoomout-button’).each(function(){
$ae(this).attr(‘aria-label’,’Zoom Out’);
});
ele.outerFind(‘a.mapplic-clear-button’).each(function(){
$ae(this).attr(‘aria-label’,’Clear Map’);
});
ele.outerFind(‘a.mapplic-tooltip-close’).each(function(){
$ae(this).attr(‘aria-label’,’Close Map’);
});
ele.outerFind(‘a.mapplic-pin[data-location=”ctxbln”]’).each(function(){
$ae(this).attr(‘aria-label’,’Central Texas BLN (CTXBLN’);
});
ele.outerFind(‘a.mapplic-pin[data-location=”utbln”]’).each(function(){
$ae(this).attr(‘aria-label’,’Utah Business Leadership Network’);
});
ele.outerFind(‘a.mapplic-pin[data-location=”mmbln”]’).each(function(){
$ae(this).attr(‘aria-label’,’Mid Missouri Business Leadership Network’);
});
ele.outerFind(‘.cr3_sponsorwrapper .fours-column a .cr3_sponsor_image’).each(function(){
if($ae(this).closest(‘a’).attr(‘href’) === “”){
api.hideFromAT($ae(this).closest(‘a’));
}
});
ele.outerFind(‘figure.wp-caption a[href=”https://disabilityin.org/what-we-do/disability-equality-index/2017-dei-report/”]’).each(function(){
if($ae(this).text().trim() === “”){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’Disability Equality Index’);
}
});
ele.outerFind(‘.x_MsoNormal:contains(Registration Link: ) a[href=”https://usbln.wufoo.com/forms/zruett40v8lhfw/”]’).each(function(){
if($ae(this).text().trim() === “”){
api.hideFromAT($ae(this));
}
});
ele.outerFind(‘.ls-nav-next’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’Next’);
});
ele.outerFind(‘.ls-nav-prev’).each(function(){
api.addComplianceIndentHidden($ae(this),’append’,’span’,’Previous’);
});
//——- 3. Hide hidden links ———
ele.outerFind(‘a:empty’).each(function(){
if(!$ae(this).attr(‘class’)){
api.hideFromAT($ae(this));
}
});
ele.outerFind(‘a.ls-nav-active’).each(function(){
api.hideFromAT($ae(this));
});
ele.outerFind(‘a[href=”mailto:[email protected]”]’).each(function(){
if($ae(this).text().trim() === “”){
api.hideFromAT($ae(this));
}
});
ele.outerFind(‘.skip-link.screen-reader-text’).each(function(){
api.hideFromAT($ae(this));
});
ele.outerFind(‘a[href=”https://www.ameritconsulting.com/”] img[src=”/wp-content/uploads/2016/11/BRAVE-VOY11-228×300.jpg”]’).each(function(){
api.hideFromAT($ae(this).closest(‘a’));
});
//—— 4. Unhide links ——–
ele.outerFind(‘.usbln-blog-toggle[aria-hidden=”true”]’).attr(‘aria-hidden’,’false’);
ele.outerFind(‘.ls-wp-container.ls-container.ls-minimal’).closest(‘div[aria-hidden=”true”]’).attr(‘aria-hidden’,’false’);
//ele.outerFind(‘#layerslider_16’).parent().attr(‘aria-hidden’,’false’);
//—— 5. Convert Links to buttons ——
ele.outerFind(‘.tabs-menu.w-tab-menu a.tab-link-tab-4-2, #tribe-events-gmap-0 a:contains(Map Data), .usbln-blog-toggle .usbln-blog-toggle-item’).attr(‘role’,’button’);
// AE – AT REmediations
ele.outerFind(‘div.usbln-blog-main div.usbln-blog-feed div a:contains(Load More)’).each(function(){
api.addComplianceIndent($ae(this),’append’,’span’,’ News and Events’);
$ae(this).attr(‘role’,’button’);
});
// AE – [AEI-40120] Unhide hidden links
ele.outerFind(‘.cr3_sponsorwrapper .fours-column a’).removeAttr(‘role aria-hidden tabindex’);
// AE – Vague Links
ele.outerFind(‘.vc_grid-item .vc_gitem-zone-mini .vc_gitem-col .vc_btn3-container a.vc_gitem-link’).each(function(){
if($ae(this).text().trim() === “Read Bio”){
api.addComplianceIndent($ae(this),’prepend’,’span’,$ae(this).closest(‘.vc_gitem-col’).find(‘.vc_gitem-post-data-source-post_title h4’).text().trim());
}
});
api.hideFromAT(‘.vc_grid-item .vc_gitem-animated-block a’);
//Social Links
ele.outerFind(‘#footer-widgets aside a.social-wrap img’).attr(‘alt’,”);
};
rem.id = 40210;
rem.title = “Phase 2 – Links and Buttons”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Links_and_Buttons.js
(function () {
var rem = function (ele, api) {
//1. Add alt
//If there are no alts in a google maps image, give empty alt
ele.outerFind(‘.tribe-events-meta-group.tribe-events-meta-group-gmap img, #tribe-events-gmap-0 img’).each(function(){
if(!$ae(this).attr(‘alt’)){
$ae(this).attr(‘alt’,”);
}
});
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2015/12/BDA-DOBE-SDV_DOBE.png”]’).each(function(){
if($ae(this).attr(‘alt’) === “”){
$ae(this).attr(‘alt’,’USBLN Certifications guide supplier diversity expansion. DOBE, V-DOBE, and SDV-DOBE certifications. Learn More’);
}
});
//Image of quotes
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/themes/usbln/wf-images/d-quote.svg”]’).attr(‘alt’,”);
//Give image empty alt for https://disabilityin.org/what-we-do/affiliates/
//The link/button has already been given an aria label
ele.outerFind(‘img.mapplic-minimap-active, img.mapplic-minimap-background, img.mapplic-tooltip-image’).attr(‘alt’,”);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2018/08/GSL_5669.jpg”]’).attr(‘alt’,”);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/04/nbic_logo_FULL-768×186.jpg”]’).attr(‘alt’,’National Business Inclusion Consortium, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/08/HIRESlogo-768×278.jpg”]’).attr(‘alt’,’Handicap International, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/03/logo_diversitycomm.gif”]’).attr(‘alt’,’Diversity Comm, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/07/CSDLogo_350px-1.png”]’).attr(‘alt’,’CSD, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2015/08/Viacom-768×768.png”]’).attr(‘alt’,’Viacom, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/08/SL_rgb_hi_blue_pms3005.png”]’).attr(‘alt’,’Shire, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/06/logo_cvs-health.gif”]’).attr(‘alt’,’CVS Health, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/03/logo_starbucks_07.gif”]’).attr(‘alt’,’Starbucks, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/08/GSK-768×768.png”]’).attr(‘alt’,’GSK, Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2018/03/USBLN-2017-Form-990-Public-Disclosure-Copy-pdf-232×300.jpg”]’).attr(‘alt’,’Public Disclosure Copy, PDF’);
ele.outerFind(‘img[src=”/wp-content/uploads/2017/08/Screen-Shot-2017-08-21-at-4.22.41-PM.png”]’).attr(‘alt’,’The 2017 Disability Equality Index. A record Year for Corporate Disability Inclusion and Leadership. USBLN and AAPD.’);
ele.outerFind(‘svg#Layer_1’).attr({‘aria-label’:’United States Map’});
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2016/03/logo_new-additions.gif”]’).attr(‘alt’,’New Editions Consulting INC Logo’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2017/05/Nedra-Dickson.png”]’).attr(‘alt’,’Nedra Dickson’);
ele.outerFind(‘img[src=”https://disabilityin.org/wp-content/uploads/2018/12/Disability-Inclusion-Advantage.png”]’).attr(‘alt’,’The Disability Inclusion Advantage by Accenture. Research report produced jointly by Disability In and AAPD.’);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
//ele.outerFind(‘img[]’).attr(‘alt’,”);
ele.outerFind(‘#layerslider_16 img, #layerslider_15 img’).each(function(){
//$ae(this).attr(‘alt’,$ae(this).closest(‘.ls-slide’).find(‘.ls-l-1:first’).text().trim());
$ae(this).attr(‘alt’,’test’);
//Get the string of the source after the last ‘/’
var fullSource = $ae(this).attr(‘src’);
var fullSrcArray = fullSource.split(‘/’);
var uniqueSource = fullSrcArray[fullSrcArray.length-1];
//Split the string by ‘.’ and get the text before the first one
var secondSplit = uniqueSource.split(‘.’);
var splitResults = secondSplit[0];
//console.log(splitResults);//Use to check output
var splitResults = splitResults.replace(/-/g, ‘ ‘);
//Set the alt
$ae(this).attr(‘alt’, splitResults);
//$ae(this).attr(‘alt’, $ae(this).closest(‘.ls-slide’).find(‘.ls-l-1:first’).text().trim());
});
};
rem.id = 40213;
rem.title = “Phase 2 – Images”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Images.js
(function () {
var rem = function (ele, api) {
//—— 1. Add title to iframe ——
ele.outerFind(‘iframe[src*=”player.vimeo.com”]’).each(function(){
if(!($ae(this).attr(‘title’))){
$ae(this).attr(“title”,”Vimeo video frame”);
}
});
//—— 2. Add titles to forms ——
ele.outerFind(‘#search-block-form’).each(function(){
if((!$ae(this).attr(‘title’) || $ae(this).attr(‘title’) === “”) && (!$ae(this).attr(‘aria-label’) || $ae(this).attr(‘aria-label’) === “”)){
$ae(this).attr(‘aria-label’,’Search’);
}
});
ele.outerFind(‘form[action=”https://disabilityin.org/wp-login.php?action=postpass&wpe-login=true”]’).each(function(){
if((!$ae(this).attr(‘title’) || $ae(this).attr(‘title’) === “”) && (!$ae(this).attr(‘aria-label’) || $ae(this).attr(‘aria-label’) === “”)){
$ae(this).attr(‘aria-label’,’Enter Member Password’);
}
});
ele.outerFind(‘#ninja_forms_form_8’).each(function(){
if((!$ae(this).attr(‘title’) || $ae(this).attr(‘title’) === “”) && (!$ae(this).attr(‘aria-label’) || $ae(this).attr(‘aria-label’) === “”)){
$ae(this).attr(‘aria-label’,’Affiliate Information Update Requests’);
}
});
ele.outerFind(‘.xcontactSection form’).attr(‘aria-label’,’Contact Form’);
ele.outerFind(‘article form’).each(function(){
$ae(this).attr(‘aria-label’, $ae(this).closest(‘article’).find(‘h1.entry-title’).text().trim());
});
//—– 3. Hide hidden fields ——
ele.outerFind(‘#ninja_forms_field_73_template’).each(function(){
api.hideFromAT($ae(this));
});
//—– 4. Handle Form errors —–
//https://disabilityin.org/what-we-do/affiliates/update-requests/
ele.outerFind(‘.ninja-forms-field-error’).not(‘[style=”display:none;”]’).eq(0).each(function(){
$ae(‘.ninja-forms-field-error[role=”alert”]’);
$ae(this).attr(‘role’,’alert’);
var m = $ae(this);
setTimeout(function(){
AudioEye.focusElement(m.parent().find(‘input.ninja-forms-req’));
}, 450);
});
//—– 5. Add Label to Radio Buttons —–
//Add a description to radio groups
ele.outerFind(‘.field-wrap.list-radio-wrap’).each(function(){
if($ae(this).find(‘input[type=”radio”]’).length>0){
var desc_id=”ae_describedby_” + Math.floor(Math.random() * 10000);
$ae(this).find(‘> label’).attr(“id”,desc_id);
$ae(this).find(‘input[type=”radio”]’).attr(“aria-describedby”, desc_id);
}
});
ele.outerFind(‘input#choice_1_20_3[type=”radio”]’).attr(‘aria-label’,’Other’);
//—— 6. Add required fields ——-
ele.outerFind(‘form.ninja-forms-form input.ninja-forms-field.ninja-forms-req’).each(function(){
$ae(this).attr(‘aria-required’,’true’);
});
};
rem.id = 40212;
rem.title = “Phase 2 – iFrames and Forms”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___iFrames_and_Forms.js
(function () {
var rem = function (ele, api) {
//—— 1. Headers ——-
//Change role of duplicate headers
ele.outerFind(‘header’).not(‘#masthead’).each(function(){
api.setPresentation($ae(this));
});
//—— 2. Label Navigation Regions ——-
ele.outerFind(‘nav#site-navigation’).attr(‘aria-label’,’Main’);
ele.outerFind(‘nav#top-menu-nav’).attr(‘aria-label’,’Main Menu’);
ele.outerFind(‘nav.navigation.paging-navigation’).attr(‘aria-label’,’Paging’);
ele.outerFind(‘nav.navigation.post-navigation’).attr(‘aria-label’,’Post Navigation’);
//#footer-widgets, .widget-area, #footer-widgets
ele.outerFind(‘#footer-widgets, footer aside’).removeAttr(‘[role=”presentation”]’);
ele.outerFind(‘#footer-widgets, footer aside, .widget-area’).each(function(){
var whodis = $ae(this);
//setTimeout(function(){
whodis.attr(‘role’,’presentation’);
//}, 1000);
});
ele.outerFind(‘body.page-id-8090, body.page-id-9862’).find(‘header#masthead.site-header’).attr(‘role’,’presentation’);
};
rem.id = 40211;
rem.title = “Phase 2 – Landmarks”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Landmarks.js
(function () {
var rem = function (ele, api) {
ele.outerFind(‘.tribe-events-day-time-slot h5’).each(function(){
api.setPresentation($ae(this));
});
//If there is an h1 as a page title change all other h1’s -> h2’s
ele.outerFind(‘h1.page-title’).each(function(){
$ae(‘body h1’).not(‘.page-title’).attr({‘role’:’heading’,’aria-level’:’2′});
});
ele.outerFind(‘h1.entry-title:first’).each(function(){
if($ae(‘body h1.page-title’).length 0) && !($ae(‘body [role=”heading”][aria-level=”1″]’).legnth > 0)){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
}
});
ele.outerFind(‘.usbln-blog-title:first’).each(function(){
if(!($ae(‘body h1’).legnth > 0) && !($ae(‘body [role=”heading”][aria-level=”1″]’).legnth > 0)){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
}
});
ele.outerFind(‘h3:contains(What can you do to build relationships and get connected?)’).each(function(){
api.setPresentation($ae(this));
});
ele.outerFind(‘.page-id-9862 .xmarqueeSection-image h2’).attr({‘role’:’presentation’});
ele.outerFind(‘#site-navigation h1.menu-toggle’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘aside h4’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘.usbln-blog-feature-box .usbln-blog-feature-title:contains(Companies That Improve Disability Inclusion Over Time Outperform Their Peers)’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#post-9862 h3’).attr({‘role’:’heading’,’aria-level’:’2′});
//Hidden Headers
ele.outerFind(‘h3.screen-reader-text, h3.tribe-events-visuallyhidden’).each(function(){
api.hideFromAT($ae(this));
});
//Employees
ele.outerFind(‘.vc_custom_heading.vc_gitem-post-data.vc_gitem-post-data-source-post_title h4’).each(function(){
if($ae(‘body h2’).legnth < 1 && $ae(‘body [role=”heading”][aria-level=”2″]’).legnth 1){
var contents2 = contents.slice(0, location);
//console.log(contents2);
if($ae(contents).index(‘h2’) < 1 && $ae(contents).index(‘[aria-level=”2″][role=”heading”]’) < 1){
$ae(‘main h3’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’2′});
});
}
}
});
ele.outerFind(‘.vc_grid-item-mini .vc_gitem-zone-mini .vc_custom_heading h4’).each(function(){
if($ae(this).closest(‘#main’).find(‘h2’).length < 1 && $ae(this).closest(‘#main’).find(‘[role=”heading”][aria-level=”2″]’).length < 1){
$ae(‘.vc_grid-item-mini .vc_gitem-zone-mini .vc_custom_heading h4’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’2′});
});
}
});
ele.outerFind(‘#post-128 h1’).attr({‘role’:’presentation’});
ele.outerFind(‘#post-128 figure.wpb_wrapper.vc_figure .vc_single_image-wrapper.vc_box_border_grey’).eq(0).attr({‘role’:’heading’,’aria-level’:’1′});
ele.outerFind(‘#post-1944 h1’).attr({‘role’:’presentation’});
ele.outerFind(‘#post-1944 figure.wpb_wrapper.vc_figure .vc_single_image-wrapper.vc_box_border_grey’).eq(0).attr({‘role’:’heading’,’aria-level’:’1′});
ele.outerFind(‘#post-2507 strong:contains(Presenting Sponsors)’).eq(0).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#post-2507 strong:contains(Tour Partners)’).eq(0).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#comments h3#reply-title’).attr({‘role’:’heading’,’aria-level’:’2′});
ele.outerFind(‘#post-89 h1.entry-title’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’2′});
});
ele.outerFind(‘h1.tribe-events-single-event-title’).each(function(){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
});
//If there is no h1 or level 1 header on a page, make the logo an h1
ele.outerFind(‘.site-header .top-bar .logo’).each(function(){
//There is no h1’s or heading level 1’s
if($ae(‘body [role=”heading”][aria-level=”1″]’).length < 1 && $ae(‘body h1’).not(‘[role=”presentation”]’).not(‘[role=”heading”]’).length < 1){
$ae(this).attr({‘role’:’heading’,’aria-level’:’1′});
}
});
};
rem.id = 40215;
rem.title = “Phase 2 – Heading Levels”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2___Heading_Levels.js
(function () {
var rem = function (ele, api) {
//—— 1. Add the “cite” attribute to blockquotes ——
ele.outerFind(‘.usbln-blog-title:contains(These Diversity & Inclusion influencers recommend your company use the Disability Equality Index…here’s why.)’).each(function(){
$ae(‘body .usbln-blog-body ol li blockquote’).each(function(){
$ae(this).attr(‘cite’,$ae(this).closest(‘li’).find(‘strong’).text().trim());
});
});
ele.outerFind(‘blockquote:contains(Working with Disability:IN affiliate allows me to not only positively interact with EY clients who support diverse abilities in their workplaces, but also to meet leaders from other companies to learn more from them and share with them as they develop their own best practices when hiring and creating workplaces where people of diverse abilities can achieve career success.)’).each(function(){
$ae(this).attr(‘cite’,’Michelle Murray. WorkWell@EY Program Manager, Vice Chair of Disability:IN’);
});
//—– 2. Add role = “presentation” to inproper blockquotes —–
ele.outerFind(‘.usbln-blog-body’).each(function(){
var children = $ae(this).children();
//If the blockquote is the first child in the body
if($ae(children[0]).is(‘blockquote’)){
$ae(children[0]).attr(‘role’,’presentation’);
}
});
ele.outerFind(‘blockquote:contains(92% of the American public view companies that hire people with disabilities more favorably)’).each(function(){
$ae(this).attr(‘role’,’presentation’);
});
ele.outerFind(‘blockquote:contains(highlights various young leaders with disabilities in the Rising Leader Spotlight Series. If you are a corporate partner)’).each(function(){
$ae(this).attr(‘role’,’presentation’);
});
/*
ele.outerFind(‘blockquote:contains()’).each(function(){
$ae(this).attr(‘role’,’presentation’);
});
*/
//—– 3. Set role presentation to uls w no chiildren or text ——
ele.outerFind(‘ul:empty, ol:empty’).attr({‘role’:’presentation’});
//—– 4. If a ol has only 1 item, set role presentation ——-
ele.outerFind(‘ol, ul’).each(function(){
if($ae(this).children().length < 2){
api.setPresentation($ae(this));
}
});
};
rem.id = 40214;
rem.title = “Phase 2: Blockquotes and Lists”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Phase_2__Blockquotes_and_Lists.js
(function () {
var rem = function (ele, api) {
////////// TABSETS //////////
// AE – Tabset Type 1 —————
ele.outerFind(‘.tabs-menu.w-tab-menu’).attr(‘role’,’tablist’);
ele.outerFind(‘.tabs-menu.w-tab-menu a’).attr({‘role’:’tab’,’tabindex’:’-1′,’aria-selected’:’false’});
ele.outerFind(‘.tabs-menu.w-tab-menu a.w–current’).attr({‘tabindex’:’0′,’aria-selected’:’true’});
//— Initial Tabpanel Setup and Naming —
ele.outerFind(‘.tabs.w-tabs .w-tab-content’).each(function(){
$ae(this).attr({‘tabindex’:’0′, ‘role’:’tabpanel’,’aria-label’: $ae(this).closest(‘.tabs.w-tabs’).find(‘.tabs-menu.w-tab-menu a.w–current’).text()});
});
//— Configure click changes —
ele.outerFind(‘.tabs-menu.w-tab-menu a’).click(function(){
$ae(‘.tabs-menu.w-tab-menu a’).attr({‘tabindex’:’-1′,’aria-selected’:’false’});
$ae(this).attr({‘tabindex’:’0′, ‘aria-selected’:’true’});
//Change tabpanel’s label
$ae(‘.tabs.w-tabs .w-tab-content’).each(function(){
$ae(this).attr({‘aria-label’: $ae(this).closest(‘.tabs.w-tabs’).find(‘.tabs-menu.w-tab-menu a.w–current’).text()});
});
});
//— Configure Arrow keys —
// Key Navigation for tabsets with tabindex -1
ele.outerFind(‘.tabs-menu.w-tab-menu a’).each(function(index){
var length = $ae(this).closest(‘.tabs-menu.w-tab-menu’).find(‘a’).length;
var last = length – 1;
$ae(this).on(‘keydown’, function(e){
if(e.keyCode === 13 || e.keyCode === 32){
e.preventDefault();
this.click();
}
else if(e.keyCode === 37 && (index > 0 && index <= last)){
e.preventDefault();
AudioEye.focusElement($ae(this).prev(‘a’));
}
else if(e.keyCode === 37 && index === 0){
e.preventDefault();
AudioEye.focusElement($ae(this).closest(‘.tabs-menu.w-tab-menu’).find(‘a’).eq(last));
}
else if(e.keyCode === 39 && index div[style=”display: block;”]’).attr(‘aria-controls’) || $ae(this).attr(‘aria-controls’) === $ae(‘.usbln-blog-main .usbln-blog-feed > div’).not(‘[style=”display: none;”]’).attr(‘aria-controls’)){
$ae(this).attr({‘tabindex’:’0′,’aria-selected’:’true’});
}
});
//Initial Tabpanel Setup and Naming
ele.outerFind(‘.usbln-blog-main .usbln-blog-feed’).each(function(){
$ae(this).attr({‘tabindex’:’0′, ‘role’:’tabpanel’,’aria-label’: $ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item[aria-selected=”true”]’).text().trim()});
});
//Add Click functionality
ele.outerFind(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’).click(function(){
$ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’).attr({‘tabindex’:’-1′,’aria-selected’:’false’});
$ae(this).attr({‘tabindex’:’0′, ‘aria-selected’:’true’});
//Change tabpanel’s label
$ae(‘.usbln-blog-main .usbln-blog-feed’).each(function(){
$ae(this).attr({‘role’:’tabpanel’,’aria-label’: $ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item[aria-selected=”true”]’).text().trim()});
});
var newThis = $ae(this);
setTimeout(function(){
AudioEye.focusElement($ae(‘.usbln-blog-main .usbln-blog-feed’));
}, 250);
});
// Key Navigation for tabsets without tabindex
ele.outerFind(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’).each(function(index){
var length = $ae(this).closest(‘div.usbln-blog-toggle’).find(‘a.usbln-blog-toggle-item’).length;
var last = length – 1;
var array = $ae(‘div.usbln-blog-toggle a.usbln-blog-toggle-item’);
$ae(this).on(‘keydown’, function(e){
if(e.keyCode === 13 || e.keyCode === 32){
e.preventDefault();
this.click();
}
else if((e.keyCode === 37 || e.keyCode === 38) && (index > 0 && index <= last)){
e.preventDefault(); //Left/Up arrow when it isn’t the first item in the list
AudioEye.focusElement(array[index-1]);
}
else if((e.keyCode === 37 || e.keyCode === 38) && index === 0){
e.preventDefault(); // Left/Up arrow when it is the first item in the list
AudioEye.focusElement(array[last]);
}
else if((e.keyCode === 39 || e.keyCode === 40) && index < last){
e.preventDefault(); // Right/Down arrow when it isn’t the last item in the list
AudioEye.focusElement(array[index+1]);
}
else if((e.keyCode === 39 || e.keyCode === 40) && index === last ){
e.preventDefault(); // Right/Down arrow when it is the last item in the list
AudioEye.focusElement(array[0]);
}
});
});
// AE – End of Tabset Type 2 —————
////////// ACCORDIONS //////////
// AE – Accordion Type 1 —————
api.convertToBtn(‘.vc_toggle.vc_toggle_default .vc_toggle_title’);
//Set initial aria-expanded
ele.outerFind(‘.vc_toggle.vc_toggle_default .vc_toggle_title’).each(function(){
if($ae(this).closest(‘.vc_toggle.vc_toggle_default’).hasClass(‘vc_toggle_active’)){
$ae(this).attr({‘aria-expanded’:’true’});
}else{
$ae(this).attr({‘aria-expanded’:’false’});
}
});
//Add Click event
ele.outerFind(‘.vc_toggle.vc_toggle_default .vc_toggle_title’).click(function(){
if($ae(this).closest(‘.vc_toggle.vc_toggle_default’).hasClass(‘vc_toggle_active’)){
$ae(this).attr({‘aria-expanded’:’false’});
}else{
$ae(this).attr({‘aria-expanded’:’true’});
}
});
// End of Accordion Type 1 —————
};
rem.id = 40389;
rem.title = “Accordions and Tabsets”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/Accordions_and_Tabsets.js
(function () {
var rem = function (ele, api) {
// AE – Paginations
ele.outerFind(‘.navigation.paging-navigation .page-numbers’).each(function(){
if($ae(this).hasClass(‘prev’)){
//changes to the previous link
}else if($ae(this).hasClass(‘next’)){
//changes to the next link
}else{
api.addComplianceIndent($ae(this),’prepend’,’span’,’Page ‘);
}
});
//Identify PDF Links
ele.outerFind(‘a[href$=”.pdf”], a[href$=”.PDF”]’).each(function(){
var text1 = $ae(this).attr(‘href’);
var textArray2 = text1.split(‘/’);
var endtext3 = textArray2[textArray2.length-1];
var text4 = endtext3.replace(/-|_/g,” “).replace(/.pdf/g,””);
if($ae(this).text().trim().length > 25){
api.addComplianceIndent($ae(this),’append’,’span’,”. Download PDF File”);
}else{
api.addComplianceIndent($ae(this),’append’,’span’,text4 + “. Download PDF File”);
}
});
ele.outerFind(‘a[href$=”.docx”], a[href$=”.DOCX”], a[href$=”.doc”], a[href$=”.DOC”], a[href$=”.docm”], a[href$=”.DOCM”], a[href$=”.dotx”], a[href$=”.DOTX”]’).each(function(){
var text1 = $ae(this).attr(‘href’);
var textArray2 = text1.split(‘/’);
var endtext3 = textArray2[textArray2.length-1];
var text4 = endtext3.replace(/-|_/g,” “).replace(/.docx|.doc/g,””);
//console.log(‘texting123: ‘,text4);
if($ae(this).text().trim().length > 25){
api.addComplianceIndent($ae(this),’append’,’span’,”. Download Word Document.”);
}else{
api.addComplianceIndent($ae(this),’append’,’span’, text4 + “. Download Word Document.”);
}
});
ele.outerFind(‘a[href=”https://www.surveymonkey.com/r/PPJT3RD”]’).each(function(){
$ae(this).find(‘span.ae-compliance-indent’).remove();
api.addComplianceIndent($ae(this),’append’,’span’,’. USBLN Non-US Supplier Application’);
});
ele.outerFind(‘a[href=”/wp-content/uploads/2017/07/USBLN-Non-US-Supplier-Application5b25d.docx”]’).each(function(){
$ae(this).find(‘span.ae-compliance-indent’).remove();
api.addComplianceIndent($ae(this),’append’,’span’,’. USBLN Non-US Supplier Application. Word Document’);
});
};
rem.id = 40393;
rem.title = “AT: Link Remediations”;
if (window.AudioEye && window.AudioEye.manualRemediations) {
window.AudioEye.manualRemediations.push(rem);
}
}());
//# sourceURL=https://wsv3cdn.audioeye.com/helpers-remediations/AT__Link_Remediations.js
AudioEye.smartRemediations = [];