www.ppbi.com
Open in
urlscan Pro
2606:4700:7::a29f:8206
Public Scan
Submitted URL: http://nuancedev.pacificpremierbank.com/
Effective URL: https://www.ppbi.com/
Submission: On August 25 via api from US — Scanned from US
Effective URL: https://www.ppbi.com/
Submission: On August 25 via api from US — Scanned from US
Form analysis
4 forms found in the DOM/search.html
<form class="searchForm" action="/search.html"><label for="search" class="inputArea" role="presentation"><span class="noMobile">What can we help you find?</span><span class="mobile">Search</span><input type="text" name="search" id="roi_input"
title="Search" required="required" aria-label="What can we help you find?"></label><button type="submit" class="searchsubmit" role="button" tabindex="0" aria-label="Search Submit"><span class="noMobile">Search</span><span
class="mobile"><i class="fa fa-search" aria-hidden="true" role="presentation" tabindex="-1"></i></span> <span class="ae-compliance-indent ae-reader-visible" style="display:none;"> Submit </span> </button></form>
/search.html
<form class="searchForm" action="/search.html"><label for="search" class="inputArea" role="presentation"><span class="noMobile">What can we help you find?</span><span class="mobile">Search</span><input type="text" name="search" id="roi_input"
title="Search" required="required" aria-label="What can we help you find?"></label><button type="submit" class="searchsubmit"><span class="noMobile">Search</span><span
class="mobile"><i class="fa fa-search" aria-hidden="true" role="presentation" tabindex="-1"></i></span> <span class="ae-compliance-indent ae-reader-visible" style="display:none;"> Submit </span> </button></form>
POST https://pacificpremier.ebanking-services.com/EamWeb/Remote/RemoteLoginApi.aspx?appID=beb&brand=pacificpremier
<form action="https://pacificpremier.ebanking-services.com/EamWeb/Remote/RemoteLoginApi.aspx?appID=beb&brand=pacificpremier" method="POST" autocomplete="off" aria-label="Online Banking Login"><label for="_textBoxCompanyId"
class="inputArea"><span>Company ID</span><input name="_textBoxCompanyId" type="text" maxlength="26" id="_textBoxCompanyId" required="required" aria-label="Company ID"></label><label for="_textBoxUserId" class="inputArea"><span>User
ID</span><input name="_textBoxUserId" type="text" maxlength="32" id="_textBoxUserId" required="required" aria-label="User ID"></label><input name="_buttonContinue" type="submit" value="Continue" id="_buttonContinue"></form>
Name: obForm — POST https://online.ppbi.net
<form name="obForm" id="obForm" method="post" action="https://online.ppbi.net" target="_parent" aria-label="Online Banking Login"><input type="hidden" name="IsPostback" value="1"><label for="usernamet" class="inputArea"><span>Username</span><input
type="text" name="usernamet" id="usernamet" tabindex="0" required="required" autocomplete="off" aria-label="Username"></label><input type="submit" id="oblSubmit" value="Continue"><input type="hidden" id="username" name="username"
value=""><input type="hidden" id="forceauth" name="forceauth" value="true"></form>
Text Content
Skip to Main Content This website is AudioEye enabled and is being optimized for accessibility. To open the AudioEye Toolbar, press "shift + =". Some assistive technologies may require the use of a passthrough function before this keystroke. For more information, activate the button labeled “Explore your accessibility options”. Skip to content Close * Products * Business * Checking * Money Market * Lending * Credit Cards * Treasury Management * Online Banking * Mobile Banking * API Banking * Personal * Checking * Savings * Lending * Credit Cards * Online Banking * Mobile Banking * Solutions * Leverage Capital * Reduce Deposit Risk * Accelerate Receivables * Customize Reporting * Streamline Payables * Automate Data Delivery * Finance Assets * Manage Personal Accounts * Manage Cash * Expertise * Commercial Banking * Government Banking * Commercial Real Estate * Treasury Management * Construction Lending * Foreign Currency * Small Business (SBA) * Healthcare * Franchise Capital * Nonprofit * Community Associations * ESOP * Property Banking * Agribusiness * Fiduciary Banking * Escrow and 1031 Exchange * Pacific Premier Trust Search What can we help you find?SearchSearch Submit * Home * Careers * About * Locations * Contact Us * Investors Online Banking * Home * Careers * About * Locations * Contact Us * Investors Search What can we help you find?SearchSearch Submit Menu 888.388.5433 Login * Products * Business * Checking * Money Market * Lending * Credit Cards * Treasury Management * Online Banking * Mobile Banking * API Banking * Personal * Checking * Savings * Lending * Credit Cards * Online Banking * Mobile Banking * Solutions * Leverage Capital * Reduce Deposit Risk * Accelerate Receivables * Customize Reporting * Streamline Payables * Automate Data Delivery * Finance Assets * Manage Personal Accounts * Manage Cash * Expertise * Commercial Banking * Government Banking * Commercial Real Estate * Treasury Management * Construction Lending * Foreign Currency * Small Business (SBA) * Healthcare * Franchise Capital * Nonprofit * Community Associations * ESOP * Property Banking * Agribusiness * Fiduciary Banking * Escrow and 1031 Exchange * Pacific Premier Trust ContactLocations ONLINE BANKING Select Account Type * Business Online * Personal Online Company IDUser ID Username * Personal * Need Help? * Online Banking Agreement Not enrolled in online banking? Sign up now Accessible Carousel COMMERCIAL REAL ESTATE LENDING Providing commercial real estate lending solutions to owners of various property types across the nation. Learn More - commercial real estate occupied HEY FRIEND, IT LOOKS LIKE YOU HAVE JAVASCRIPT DISABLED. For a richer experience, please adjust your browser settings. COMMERCIAL REAL ESTATE LENDING Providing commercial real estate lending solutions to owners of various property types across the nation. Learn More - commercial real estate occupied AMERICA'S BEST BANKS Pacific Premier Ranked #3 on Forbes’ List of America’s Best Banks Learn More - news detail HOA LENDING Streamlined loan options for community and homeowners associations Learn More - hoa lending BUSINESS CREDIT CARDS Credit card solutions that work for your business Learn More - business credit cards •••• Business Lending API Banking Cybersecurity News & Media California Privacy NEWS & MEDIA August 1, 2022 Pacific Premier Bancorp Announces Addition to Board of Directors - August 1, 2022 July 21, 2022 Pacific Premier Bancorp, Inc. Announces Second Quarter 2022 Financial Results and a Quarterly Cash Dividend of $0.33 Per Share - July 21, 2022 April 26, 2022 Pacific Premier Bancorp, Inc. Announces First Quarter 2022 Financial Results and a Quarterly Cash Dividend of $0.33 Per Share - April 26, 2022 View All We have the strength and performance to meet your business banking needs. Learn more by viewing the video below. CYBERSECURITY Your safety is our priority. That's why we offer an extensive Cybersecurity Center to help you stay on guard, online, all the time. Learn More - cybersecurity CORPORATE RESPONSIBILITY We are strong believers in giving back to the communities we serve. Learn more about our commitment to promoting social awareness, confront the growing threat of climate change, and address the demand for greater accountability and oversight. Learn More - corporate responsibility PACIFIC PREMIER API BANKING® Connect your financial software to our banking platform to easily process your account data in one place. Learn More - pacific premier api banking * News & Media * Corporate Responsibility * Cybersecurity * API Banking Where Business Meets Opportunity™ * LinkedIn * Instagram * Vimeo * YouTube - Opens In New Window * Help * Contact Us * Lost or Stolen Card * Order Checks * Remote Support * ATM Network * Locations * Tools * Make a Payment * Quicken/Quickbooks Guides * Cybersecurity Center * Personal Mobile App * Business Mobile App * Online Banking Tutorials * Info * Routing Number: 322285781 * Website Accessibility * AudioEye Accessibility * Beneficial Ownership * LIBOR Transition * Corporate Responsibility * Privacy * Terms of Use CORPORATE HEADQUARTERS 17901 Von Karman Avenue, Suite 1200 Irvine, CA 92614 888.388.5433 NMLS# 447303 NMLS Consumer Access: nmlsconsumeraccess.org Member FDIC - Opens In New Window Equal Housing Lender © 2022 Pacific Premier Bank | All rights reserved. Pacific Premier Bank is a wholly owned subsidiary of Pacific Premier Bancorp, Inc. Pacific Premier Trust, a Division of Pacific Premier Bank, performs the duties of an independent custodian of assets for self-directed individual and business retirement accounts and does not provide investment advice, sell investments or offer any tax or legal advice. Clients or potential clients are advised to perform their own due diligence in choosing any investment opportunity as well as selecting any professional to assist them with an investment opportunity. Alternative investments are not insured by the FDIC; are not deposits or other obligations of, or are guaranteed by the Bank or any of its divisions; and are subject to investment risks, including possible loss or principal amount invested. Pacific Premier Trust is not affiliated with any financial professional, investment sponsor, or investment, tax, or legal advisor. Investment Products: Not FDIC insured | No bank guarantee | May lose value, including loss of Principal Opens in new window PDF Download Word Download Excel Download PowerPoint Download Document Download !function(r){void 0!==window.AudioEye?window.AudioEye.manualRemediations.push(r):r($ae("html"))}(function(ele,api){ //-------------------------------------------------------------------------------------------------------------------------------- api.addBodyClass(); //-------------------------------------------------------------------------------------------------------------------------------- //Convert our common elements to buttons. var ae_clickable = '.primaryNavLink.mobileSmall, .oblToggler.mobileSmall, .primaryNavLink, .primaryNav .close, .primaryNavWrapper .close, .togglesNext, .toggleNext, #mainMenu .menuWrapper .close, .primaryNav .close div, #siteAlertClose, #recaptcha_widget_div a[id*="recaptcha"], .share-buttons a, .print, .share .share-popup-close, .sharePopup .close'; api.convertToBtn(ele.outerFind(ae_clickable).not('[href], button, input, form :header')); //-------------------------------------------------------------------------------------------------------------------------------- // AE - [MAS-169] api.convertToBtn('.primaryNav.nthTier-1.primaryNav > li > a'); //-------------------------------------------------------------------------------------------------------------------------------- //Add Close text to our close buttons //var close = 'Cerrar'; var close = 'Close'; ele.outerFind('.primaryNav .close, .primaryNavWrapper .close, .share .share-popup-close, .sharePopup .close, #mainMenu .menuWrapper .close').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + close + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', close); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Hide skip link api.hideFromAT('a.skip-to-content'); //-------------------------------------------------------------------------------------------------------------------------------- //var onFacebook = 'en Facebook'; var onFacebook = 'on Facebook'; ele.outerFind('.share-facebook a, a.share-facebook').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + onFacebook + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', onFacebook); }); //-------------------------------------------------------------------------------------------------------------------------------- //var onGoogleplus = 'en Google plus'; var onGoogleplus = 'on Google plus'; ele.outerFind('.share-googleplus a, a.share-googleplus').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + onGoogleplus + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', onGoogleplus); }); //-------------------------------------------------------------------------------------------------------------------------------- //SEARCH REGION //var search = 'Formulario de búsqueda del sitio'; var search = 'Search'; api.convertToAccordion('.searchBtn, .searchToggler, .searchToggle, .searchtoggle', 'open'); ele.outerFind('.searchBtn, .searchsubmit, .searchToggler, .searchToggle, .searchtoggle, .searchbox-toggle').each(function() { if($ae(this).text().trim() == "") { api.addComplianceIndent($ae(this), 'append', 'span', search); } }); var searchDiv = $ae('div.search'); if(searchDiv.length > 0 && searchDiv.find('a').length == 0 && $ae('.search .site-search').is(':visible') === true) { ele.outerFind('div.search').attr({'role':'presentation','tabindex':'-1'}); } ele.outerFind('button#froisearch-button').removeAttr('type'); ele.outerFind('button#froisearch-button, input#froisearch-button').removeAttr('alt'); ele.outerFind('input#froisearch-button').attr('aria-label', search); if($ae('button#froisearch-button').text().trim().length == 0) { api.addComplianceIndent('button#froisearch-button', 'append', 'span', search); } //-------------------------------------------------------------------------------------------------------------------------------- //SHARE REGION ele.outerFind('.share .share-popup-close, .sharePopup .close, .share-popup .close, #mainMenu .menuWrapper .close').each(function () { if ($ae(this).text() == '') { api.addComplianceIndent($ae(this), 'append', 'span', 'Close'); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Share link context [MAS-603] api.addComplianceIndent(ele.outerFind('.share-popup a.share-twitter').filter(':contains(Tweet)'), 'append', 'span', 'on Twitter'); api.addComplianceIndent(ele.outerFind('.share-popup a.share-linkedin').filter(':contains(Share)'), 'append', 'span', 'on Linkedin'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Read More link context [MAS-615] ele.outerFind('.page-content .content-details a.read-more').each(function() { var context = $ae(this).closest('.content-details').find('h3').text().trim(); if($ae(this).has('.ae-compliance-indent')) { $ae(this).find('.ae-compliance-indent').text(' about ' + context); } else { api.addComplianceIndent($ae(this), 'append', 'span', ' about ' + context); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Share button [MAS-552] ele.outerFind('.share-buttons .share > a').attr({'id':'aeShareButton', 'aria-expanded':'false'}).each(function() { api.convertToBtn($ae(this)); $ae(this).on('keydown', function(e) { if (e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { $ae(this).attr('aria-expanded', 'true'); // Set focus to the popup setTimeout(function() { AudioEye.focusElement($ae('div.share-popup > a.share-popup-close').attr('tabindex', '0')); AudioEye.modals.enableTabLoop('div.share-popup'); }, 50); }); }); ele.outerFind('.share-popup-close, .sharePopup .close').on('keydown', function(e) { if (e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { AudioEye.focusElement('#aeShareButton').attr('aria-expanded','false'); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Redundant link context [MAS-385] ele.outerFind('footer a[href$="thisisfirstbranch.com/"]').attr('aria-label', 'Powered by First Branch'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - App download context [MAS-601] api.addComplianceIndent(ele.outerFind('a.itunes, a[href*="apps.apple.com/"]').filter(':contains(iTunes), :contains(iPhone)'), 'append', 'span', 'Download on the App Store'); api.addComplianceIndent(ele.outerFind('a.google, a[href*="play.google.com/store/apps"]').filter(':contains(Google), :contains(Android)'), 'append', 'span', 'Get it on Google Play'); //-------------------------------------------------------------------------------------------------------------------------------- //// VAGUE TEXT LINKS /// var more_txt = ['learn more', 'read more', 'see details', 'aprende más', 'aprenda más', 'más', 'conoce más', 'más información' ]; var now_txt = ['apply online', 'apply now', 'enroll now', 'open in minutes', 'open now', 'click here', 'here', 'request info', 'ábrela ahora', 'ábrela ya', 'ábrela en línea', 'inscríbete ahora', 'pide información' ]; ele.outerFind('a').not('[href*="https://connect.segmint.net/trackclick/"]').filter(function () { return $ae.inArray($ae(this).text().toLowerCase().trim(), more_txt) !== -1 || $ae.inArray($ae(this).text().toLowerCase().trim(), now_txt) !== -1; }).each(function () { var desc = ''; if ($ae.inArray($ae(this).text().toLowerCase().trim(), more_txt) !== -1) { if ($ae(this).hasClass('.fancybox') == true) { desc = $ae(this).closest('div').has(':header').find(':header').text(); } else { // break down url into array of strings var uri = this.href.split("/"); if (uri.slice(-1)[0] == "") { uri.pop(); } desc = uri.slice(-1)[0]; desc = desc.split('.'); desc = desc[0].replace(/-/g, " "); } if (desc != '') { api.addComplianceIndent($ae(this), 'append', 'span', '- ' + desc); //$ae(this).removeAttr('title'); } } if ($ae.inArray($ae(this).text().toLowerCase().trim(), now_txt) !== -1) { if ($ae(this).parents('.comparison-chart, .comparisonChart').length === 0) { desc = $ae(this).closest('#windowContent').find('.pageTitle').contents().not(':empty').first().text(); if (!desc.trim()) { desc = $ae(this).closest('#windowContent').find('.forContent h1').first().text(); } if (!desc.trim()) { desc = $ae(this).closest('.contentBody, #mainContent').find('h1').first().text(); } } if ($ae(this).parents('.comparison-chart, .comparisonChart').length > 0) { desc = $ae(this).closest('div').find('h1, h2, h3, h4, h5, h6').first().text(); } if (desc != '') { api.addComplianceIndent($ae(this), 'prepend', 'span', desc + ', '); //$ae(this).removeAttr('title'); } } }); //-------------------------------------------------------------------------------------------------------------------------------- //// FORM LABELS //// // AE - Updated for [MAS-574] ele.outerFind('fieldset.phone input, fieldset.ssn input, fieldset.date input').each(function () { var lbl; if ($ae(this).is($ae(this).parent().find('input:eq(0)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - Area Code'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - First 3'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Month'; } } if ($ae(this).is($ae(this).parent().find('input:eq(1)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - First 3'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - Middle 2'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Day'; } } if ($ae(this).is($ae(this).parent().find('input:eq(2)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - Last 4'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - Last 4'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Year'; } } $ae(this).attr('aria-label', lbl); //api.addComplianceIndent($ae(this), 'before', 'label', txt); }); //-------------------------------------------------------------------------------------------------------------------------------- ele.outerFind('label').filter(':empty').each(function () { if ($ae(this).next('textarea').length > 0 && !$ae(this).children('span.ae-compliance-indent').filter(':contains("' + $ae(this).closest('fieldset').find(':header').text() + '")').length) { api.addComplianceIndent($ae(this), 'html', 'span', $ae(this).closest('fieldset').find(':header').text()); } }); //-------------------------------------------------------------------------------------------------------------------------------- // EXCLUDE LINKS, ADJACENT ETC.. ele.outerFind('#productList .clickable, .productList .clickable, .featuredProducts .clickable').filter(function() { return $ae(this).has('a img') && $ae(this).find('a').length > 1; }).each(function() { api.hideFromAT($ae(this).find('a > img').parent()); }); api.hideFromAT(ele.outerFind('#productList .clickable, .productList .clickable, .featuredProducts .clickable').has(':header a[href]').find('a').not(':header a').addClass('ae-exclude')); api.hideFromAT(ele.outerFind('.productList .clickable, #productList .clickable').has('h3 a[href]').find('h4 a').addClass('ae-exclude')); //-------------------------------------------------------------------------------------------------------------------------------- // ACCORDION TABS ele.outerFind("li.loc").find("a").each(function() { if($ae(this).text().trim() == "See Location Details") { api.addComplianceIndent($ae(this),"append","span","for "+$ae(this).parents('li.loc').find("div.branchName div.branch-title").text()); } else if($ae(this).text().trim()=="Get Directions") { api.addComplianceIndent($ae(this),"append","span","for "+$ae(this).parents('li.loc').find("div.branchName div.branch-title").text()); } }); ele.outerFind('#header .primaryNavLink').click(function() { if ($ae('#bigWrapper').hasClass('sideActive')) { $ae(this).attr('aria-expanded', 'true'); AudioEye.focusElement(document.getElementById('sideContent')); } else { $ae(this).attr('aria-expanded', 'false'); } }); api.convertToAccordion('.togglesNext, .toggleNext', 'active'); api.convertToAccordion('.accordion-title', 'active'); api.convertToAccordion('#locList .top h2', '', '.bottom'); api.convertToAccordion('#productTabs dt', 'selected'); //-------------------------------------------------------------------------------------------------------------------------------- //FORMS //labels, legends //var recapresponse = 'Respuesta de ReCaptcha'; //var recaptext = 'Entrar texto de CAPTCHA'; var recapresponse = 'ReCaptcha Response'; var recaptext = 'Enter CAPTCHA text'; ele.outerFind("label[for='g-recaptcha-response']").filter(':empty').addClass("ae-compliance-indent").css("display", "none").text(recapresponse); ele.outerFind('#recaptcha_response_field').attr('aria-label', recaptext); //-------------------------------------------------------------------------------------------------------------------------------- //empty labels ele.outerFind('label').filter(':empty').each(function() { if ($ae(this).next('textarea') && $ae(this).children('span').filter(':contains("' + $ae(this).closest('fieldset').find('h6, h5, h4, h3, h2, h1').first().text() + '")').length) { api.addComplianceIndent($ae(this), 'prepend', 'span', $ae(this).closest('fieldset').find('h6, h5, h4, h3, h2, h1').first().text()); } }); //-------------------------------------------------------------------------------------------------------------------------------- //required fields ele.outerFind('form.inmo-application label').not('.optional').each(function() { if (!$ae(this).closest('fieldset').hasClass('optional')) { if ($ae(this).nextAll('.help').find('.default:visible:not(:empty)').length == 0) { if ($ae(this).parent().nextAll('.help').find('.default:visible:not(:empty)').length == 0) { $ae(this).next(':text, select, textarea').attr('aria-required','true'); } } } }); //-------------------------------------------------------------------------------------------------------------------------------- //fieldset api.setPresentation(ele.outerFind('form fieldset').first().has('fieldset')); //-------------------------------------------------------------------------------------------------------------------------------- var ae_mel_counter = 0; ele.outerFind('li').has('h6, h5, h4, h3, h2, h1').find('ul').has('input[type="radio"]').each(function() { if (typeof $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id') === typeof undefined || $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id') === false) { $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id','ae_mel_legend' + ae_mel_counter); } var ae_mel_legend = $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id'); // To add aria-describedby to individual radio buttons: $ae(this).find('input[type="radio"]').attr({ ! Don't forget to remove role: radiogroup if passed $ae(this).attr('role','radiogroup'); $ae(this).find('input[type="radio"]').attr('aria-describedby',ae_mel_legend); ae_mel_counter++; }); //-------------------------------------------------------------------------------------------------------------------------------- //form names //var zip = 'Búsqueda de código postal'; //var search = 'Formulario de búsqueda del sitio'; //var contact = 'Formulario de contacto'; //var online = 'Formulario de Banca en Línea'; var zip = 'Zip Code Search'; var search = 'Search'; var contact = 'Contact Us'; var online = 'Online Banking Login'; ele.outerFind('form.findBranch, form#t').has('[name="zip"], #zip').attr('aria-label', zip); ele.outerFind('#contactForm form').attr('aria-label', contact); ele.outerFind('form#siteSearchForm, form#searchForm, form#froisearch-form').attr('aria-label', search); ele.outerFind('form.onlineBanking, .obLogin form').attr('aria-label', online); ele.outerFind('#fedCalculator form').each(function() { var ae_mel_title = $ae(this).closest('#fedCalculator').contents('strong, h6, h5, h4, h3, h2, h1').first().text(); $ae(this).attr('aria-label', ae_mel_title); }); //-------------------------------------------------------------------------------------------------------------------------------- //var submit = 'Enviar'; var submit = 'Submit'; ele.outerFind(':submit#searchButton').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + submit + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', submit); }); //-------------------------------------------------------------------------------------------------------------------------------- //var submit = 'Enviar'; var submit = 'Submit'; ele.outerFind('.searchsubmit').not(':submit.searchsubmit').each(function() { api.addComplianceIndent($ae(this), 'append', 'span', submit); }); //-------------------------------------------------------------------------------------------------------------------------------- //no submit button on financial calculators popup $ae('body.calculator form').filter(function() { var submit = $ae(this).find('input[type="submit"],button[type="submit"]'); return submit && submit.length == 0; }).append(' '); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Error descriptions [MAS-322] ele.outerFind('#contactForm input[type="submit"]').on('click', function(e) { setTimeout(function() { ele.outerFind('#contactForm .error').each(function(i) { if ($ae(this).attr('id') === undefined) { $ae(this).attr('id', 'ae_error_desc' + i); } }); ele.outerFind('#contactForm li.error input').each(function() { $ae(this).attr({'aria-describedby': $ae(this).closest('li.error').find('.error').attr('id'), 'aria-invalid': 'true'}); }); }, 50); }); //-------------------------------------------------------------------------------------------------------------------------------- //Financial calculators ele.outerFind('#fedCalculator form .ui-slider-handle').each(function() { $ae(this).attr({'role':'slider', 'aria-valuenow':$ae(this).closest('fieldset').find(':text').val() == '' ? '0' : $ae(this).closest('fieldset').find(':text').val(), 'aria-valuemin':'0', 'aria-valuemax':$ae(this).closest('fieldset').find(':text').attr('data-max'), 'aria-labelledby':$ae(this).closest('fieldset').find('label').attr('for') }); //update aria valuenow on keyboard var ae_mel_obj = $ae(this).closest('fieldset').find(':text').attr('id'); window['ae_mel_startPos' + ae_mel_obj] = $ae(this).position().left; $ae(this).off('keydown').on('keydown', function (e) { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); //update aria valuenow on mouse $ae(this).off('mouseup').on('mouseup', function (e) { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); //update aria valuenow with click on bar $ae(this).prev('.ui-slider-range').click(function() { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); }); ele.outerFind('#cd-form fieldset.radios label[for="compounded"]').attr({'id':'ae_mel_radio_comp'}); ele.outerFind('#cd-form fieldset.radios :radio').each(function() { $ae(this).attr({'aria-describedby':'ae_mel_radio_comp'}); $ae(this).next('span').andSelf().wrapAll(''); }); //-------------------------------------------------------------------------------------------------------------------------------- //Hidden from screen readers api.hideFromAT('#map_dummy, #map, #map-canvas, #mapContainer, #dummy, .map-it, .seeMap'); api.hideFromAT(ele.outerFind('#map_dummy, #map, #map-canvas, #mapContainer, #dummy, .map-it, .seeMap').find(':tabbable, img')); ele.outerFind('#map, #dummy, #map_dummy, #map_dummy img, #map img, #map-canvas img, #mapContainer img, #dummy img').addClass('ae-exclude'); ele.outerFind('ul').has('.print, .share').attr('role', 'presentation'); ele.outerFind('ul, ol').each(function() { if ($ae(this).children('li').length < 2 && $ae(this).find('ul, ol').length == 0) { $ae(this).attr('role', 'presentation'); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Line break [MAS-602] ele.outerFind('hr').attr(api.pres); //-------------------------------------------------------------------------------------------------------------------------------- //Icons api.hideFromAT(ele.outerFind('i.icon-envelope, i.icon-print, i.icon-question, i.fa:empty').not('[role]')); //-------------------------------------------------------------------------------------------------------------------------------- //Images api.hideFromAT('.mobile img'); ele.outerFind('.mobile img').addClass('ae-exclude'); api.hideFromAT('#bv-logo a[href*="thisisfirstbranch.com"] svg'); ele.outerFind('#bv-logo a[href*="firstbranch"]').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Powered by First Branch' + '")').length) api.addComplianceIndent($ae(this), 'prepend', 'span', 'Powered by First Branch'); }); api.setAlt('#eh img[src*="eh"]', 'Equal Housing Lender'); api.setAlt('#fdic img[src*="fdic"]', 'Member F D I C'); api.setAlt('#ncua img[src*="ncua"]', 'NCUA Federal Insurance'); api.setAlt('#esi img[src*="esi"]', 'ESI ExcessShare'); //-------------------------------------------------------------------------------------------------------------------------------- //background image ele.outerFind('#eh, #eh a[href*="eh"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Equal Housing Lender' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'Equal Housing Lender'); }); ele.outerFind('#fdic, #fdic a[href*="fdic"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Member F D I C' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'Member F D I C'); }); ele.outerFind('#ncua, #ncua a[href*="ncua"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'NCUA Federal Insurance' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'NCUA Federal Insurance'); }); ele.outerFind('#ncua, #ncua a[href*="ncua"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'ESI ExcessShare' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'ESI ExcessShare'); }); //-------------------------------------------------------------------------------------------------------------------------------- //Alternate text ele.outerFind('img[src$="fileAsset"][alt$=".jpg"], img[src$="fileAsset"][alt$=".png"]').each(function() { $ae(this).attr({ 'alt': $ae(this).attr('alt').replace('.jpg', '').replace('.png', '').replace(/-/g, ' ').replace(/_/g, ' ').replace(/\s*\b\w*\d\d\d\d\d\w*\b/g, '') }); }); //var loading = 'Cargando, por favor espere...'; var loading = 'Loading, please wait...'; ele.outerFind('img.loading, img[src*="maps/130.gif"]').not('[alt]').attr('alt', loading); //-------------------------------------------------------------------------------------------------------------------------------- //home page icon ele.outerFind('.home i.fa-home').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Home' + '")').length) api.addComplianceIndent($ae(this), 'after', 'span', 'Home'); }); //-------------------------------------------------------------------------------------------------------------------------------- //Tables ele.outerFind('table thead td').attr({'role':'columnheader', 'scope':'col'}); //# Fixed @MAS-196 ele.outerFind('table tbody tr > th').filter(':contains(APY)').not(':contains(Annual)').each(function() { if (!$ae(this).children('span.ae-compliance-indent').length && $ae(this).text().trim().toLowerCase() === 'apy') { $ae(this).append(' Annual Percentage Yield '); } }); //-------------------------------------------------------------------------------------------------------------------------------- //Buttons ele.outerFind('button.mfp-close').not('[aria-label]').attr('aria-label', 'Close'); //-------------------------------------------------------------------------------------------------------------------------------- //Headings //decorative headers api.setPresentation(ele.outerFind('h6, h5').add(ele.outerFind('#locList .branchInfo, form, table, .comparison-chart').find('h1,h2,h3,h4,h5,h6'))); //hide headers missing text ele.outerFind('h1, h2, h3, h4, h5, h6').each(function() { if ($ae.trim($ae(this).text()).length === 0) { if ($ae(this).children().length === 0) { api.hideFromAT($ae(this)); } if ($ae(this).clone().find('b').filter(':empty').remove().end().find('strong').filter(':empty').remove().end().find('span').filter(':empty').remove().end().children().length === 0) { api.hideFromAT($ae(this)); } } }); api.setHeadingLevel("div.comparison-chart div.account-headline h5","2"); api.setHeadingLevel("div.comparison-chart div.account-name h5","3"); api.setHeadingLevel("div.comparison-chart div.account-details h5","3"); api.setHeadingLevel("div.comparison-chart div.account-name h2","3"); api.setHeadingLevel("div.lobbyHours h5","2"); api.setHeadingLevel("div.driveThroughHours h5","2"); //-------------------------------------------------------------------------------------------------------------------------------- ele.outerFind('form.inmo-application li.submit input').click(function() { setTimeout(function() { if($ae('li.error').first().find('input').length > 0) { AudioEye.focusElement($ae('li.error').first().find('input')); } else if($ae('li.error').first().find('select').length > 0) { AudioEye.focusElement($ae('li.error').first().find('select')); } },500); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Checking button context [MAS-606] ele.outerFind('.account .account-name a').filter(':not(:has(.ae-compliance-indent))').each(function() { var context = ' for ' + $ae(this).closest('.account .account-name').find('h2').text().trim(); if(context.toLowerCase().indexOf('checking') === -1) { context += ' Checking'; } api.addComplianceIndent($ae(this), 'append', 'span', context); }); //-------------------------------------------------------------------------------------------------------------------------------- //iFrames //var recapwidget = 'Widget recaptcha'; //var ad = 'Anuncio'; //var map = 'Mapa'; var recapwidget = 'recaptcha widget'; var ad = 'Advertisement'; var map = 'Map'; ele.outerFind('iframe').not('[title]').each(function() { if (!this.hasAttribute('src')) { api.hideFromAT($ae(this)); } else { if ($ae(this).attr('src') == 'about:blank') { api.hideFromAT($ae(this)); } if ($ae(this).attr('src').indexOf('insight.adsrvr.org') > -1 || $ae(this).attr('src').indexOf('adservices.brandcdn.com') > -1) { api.setTitle($ae(this), ad); } if ($ae(this).attr('src').indexOf('e.issuu.com') > -1 || $ae(this).attr('src').indexOf('vimeo.com') > -1 || $ae(this).attr('src').indexOf('youtube.com') > -1) { api.setTitle($ae(this), 'Video'); } if ($ae(this).attr('src').indexOf('google.com/recaptcha') > -1) { api.setTitle($ae(this), recapwidget); } if ($ae(this).closest('#map, #map-canvas, #mapContainer, #dummy').length > 0) { api.setTitle($ae(this), map); } } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Skip link in iframe 2 [MAS-655], [MAS-702] ele.outerFind('body.popup').each(function() { var this_ = $ae(this); setTimeout(function() { this_.find('.ae-skipto-main').attr(api.rmv); this_.find('#main').attr(api.pres); }, 50); }); //-------------------------------------------------------------------------------------------------------------------------------- //Dialogs //CALCULATORS ele.outerFind('.ui-slider, .ui-slider a, a.skip-to-content').addClass('ae-exclude'); //-------------------------------------------------------------------------------------------------------------------------------- // MODALS //var close = 'Cerrar'; var close = 'Close'; ele.outerFind('a.requestInfo, .questions a').addClass('iframe'); ele.outerFind("div.mfp-content div.mfp-iframe-scaler button").attr("aria-label","Close"); ele.outerFind("div#searchPopup button.mfp-close").attr("aria-label","Close"); //ele.outerFind("div.mfp-content div.mfp-iframe-scaler button").removeAttr("title"); setupModal('a.calcPopup, a.iframe, a.fancybox', '.mfp-wrap, #fancybox-wrap, .fancybox-wrap, #fancy_outer', '.mfp-close, .fancybox-close, #fancybox-close, #fancy_close', 'h2, h3, h4', 1); setupModal('a.warn, a.confirm', '.bootbox.modal, .bootbox-confirm', '.bootbox-close-button, .close', 'External link confirmation'); setupModal('.searchbox-toggle', '.mfp-wrap', '.mfp-close', 'Search Popup'); function setupModal(trigger, wrapper, close, label, labelFlag) { // ATTACH MODAL EVENT TO OUR MODAL TRIGGER ele.outerFind(trigger).click(function() { // SET UP OUR VARIABLES var return_target = this; // RUN CONTENT CHECK / MANAGEMENT IN AN INTERVAL LOOP var modal_interval = window.setInterval(function() { // MAKE SURE OUR MODAL EXISTS if ($ae(wrapper).length > 0) { window.clearInterval(modal_interval); // MANAGE MODAL INTERIOR //PREPARE MODAL ROLE AND LABEL if(labelFlag === 1) { label = $ae(wrapper).outerFind(label).first().text().trim(); } ele.outerFind(wrapper).attr({'role':'dialog','aria-modal':'true','aria-label':label}); // ADD RETURN CODE TO CLOSE BUTTON AND ENSURE CLOSE BUTTON ACCESSIBILITY if(!$ae(wrapper).find(close).is('button, input')) { api.convertToBtn(ele.outerFind(wrapper).find(close)); } if($ae(wrapper).find(close).text().toLowerCase().trim().length < 5) { $ae(wrapper).find(close).find('img').attr('alt',''); api.addComplianceIndent(ele.outerFind(wrapper).find(close), 'append', 'span', ' Close'); } ele.outerFind(wrapper).find(close).click(function() { AudioEye.focusElement(return_target); }); // SET OUR FOCUS AND TAB TRAP AudioEye.focusElement($ae(wrapper).find(close)); AudioEye.modals.enableTabLoop(wrapper); //CLEAR INTERVAL if (modal_interval > 10000) { window.clearInterval(modal_interval); } } }, 300); }); } //-------------------------------------------------------------------------------------------------------------------------------- // AE - Calculator modal sliders [MAS-182] api.hideFromAT('#fedCalculator .slider'); api.hideFromAT('#fedCalculator .icon.moneySm'); api.hideFromAT('#fedCalculator .icon.moneyLg'); api.hideFromAT('#fedCalculator .icon.numberSm'); api.hideFromAT('#fedCalculator .icon.numberLg'); api.hideFromAT('#fedCalculator .icon.percentSm'); api.hideFromAT('#fedCalculator .icon.percentLg'); ele.outerFind('#fedCalculator .ui-slider-handle').removeAttr('tabindex'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Modal focus [MAS-325] ele.outerFind('.bootbox-close-button').removeAttr('aria-hidden'); ele.outerFind('.obLogin .confirm').on('keydown', function(e) { if(e.keyCode == 13 || e.keyCode == 32) { console.log('keydown'); e.preventDefault(); this.click(); } }).click(function() { setTimeout(function() { AudioEye.focusElement('.bootbox-close-button'); AudioEye.modals.enableTabLoop('.modal-content'); }, 1000); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Confirm modals [MAS-386] // AE - Confirm Modal Focus update [MAS-724] ele.outerFind('a.confirm[href], a.warn[href]').on('keydown', function(e) { if(e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { var joe_return = $ae(this); setTimeout(function() { AudioEye.modals.enableTabLoop('.bootbox-confirm .modal-dialog'); ele.outerFind('.bootbox-confirm .modal-footer button[data-bb-handler="cancel"], .bootbox-confirm .modal-footer button.bootbox-cancel, .bootbox-confirm button.bootbox-close-button').click(function() { setTimeout(function() { AudioEye.focusElement(joe_return); }, 100); }); }, 100); }); ele.outerFind('button.bootbox-close-button').attr('aria-label', 'Close'); }); !function(r){void 0!==window.AudioEye?window.AudioEye.manualRemediations.push(r):r($ae("html"))}(function(ele,api){ //-------------------------------------------------------------------------------------------------------------------------------- api.addBodyClass(); //-------------------------------------------------------------------------------------------------------------------------------- //Convert our common elements to buttons. var ae_clickable = '.primaryNavLink.mobileSmall, .oblToggler.mobileSmall, .primaryNavLink, .primaryNav .close, .primaryNavWrapper .close, .togglesNext, .toggleNext, #mainMenu .menuWrapper .close, .primaryNav .close div, #siteAlertClose, #recaptcha_widget_div a[id*="recaptcha"], .share-buttons a, .print, .share .share-popup-close, .sharePopup .close'; api.convertToBtn(ele.outerFind(ae_clickable).not('[href], button, input, form :header')); //-------------------------------------------------------------------------------------------------------------------------------- // AE - [MAS-169] api.convertToBtn('.primaryNav.nthTier-1.primaryNav > li > a'); //-------------------------------------------------------------------------------------------------------------------------------- //Add Close text to our close buttons //var close = 'Cerrar'; var close = 'Close'; ele.outerFind('.primaryNav .close, .primaryNavWrapper .close, .share .share-popup-close, .sharePopup .close, #mainMenu .menuWrapper .close').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + close + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', close); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Hide skip link api.hideFromAT('a.skip-to-content'); //-------------------------------------------------------------------------------------------------------------------------------- //var onFacebook = 'en Facebook'; var onFacebook = 'on Facebook'; ele.outerFind('.share-facebook a, a.share-facebook').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + onFacebook + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', onFacebook); }); //-------------------------------------------------------------------------------------------------------------------------------- //var onGoogleplus = 'en Google plus'; var onGoogleplus = 'on Google plus'; ele.outerFind('.share-googleplus a, a.share-googleplus').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + onGoogleplus + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', onGoogleplus); }); //-------------------------------------------------------------------------------------------------------------------------------- //SEARCH REGION //var search = 'Formulario de búsqueda del sitio'; var search = 'Search'; api.convertToAccordion('.searchBtn, .searchToggler, .searchToggle, .searchtoggle', 'open'); ele.outerFind('.searchBtn, .searchsubmit, .searchToggler, .searchToggle, .searchtoggle, .searchbox-toggle').each(function() { if($ae(this).text().trim() == "") { api.addComplianceIndent($ae(this), 'append', 'span', search); } }); var searchDiv = $ae('div.search'); if(searchDiv.length > 0 && searchDiv.find('a').length == 0 && $ae('.search .site-search').is(':visible') === true) { ele.outerFind('div.search').attr({'role':'presentation','tabindex':'-1'}); } ele.outerFind('button#froisearch-button').removeAttr('type'); ele.outerFind('button#froisearch-button, input#froisearch-button').removeAttr('alt'); ele.outerFind('input#froisearch-button').attr('aria-label', search); if($ae('button#froisearch-button').text().trim().length == 0) { api.addComplianceIndent('button#froisearch-button', 'append', 'span', search); } //-------------------------------------------------------------------------------------------------------------------------------- //SHARE REGION ele.outerFind('.share .share-popup-close, .sharePopup .close, .share-popup .close, #mainMenu .menuWrapper .close').each(function () { if ($ae(this).text() == '') { api.addComplianceIndent($ae(this), 'append', 'span', 'Close'); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Share link context [MAS-603] api.addComplianceIndent(ele.outerFind('.share-popup a.share-twitter').filter(':contains(Tweet)'), 'append', 'span', 'on Twitter'); api.addComplianceIndent(ele.outerFind('.share-popup a.share-linkedin').filter(':contains(Share)'), 'append', 'span', 'on Linkedin'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Read More link context [MAS-615] ele.outerFind('.page-content .content-details a.read-more').each(function() { var context = $ae(this).closest('.content-details').find('h3').text().trim(); if($ae(this).has('.ae-compliance-indent')) { $ae(this).find('.ae-compliance-indent').text(' about ' + context); } else { api.addComplianceIndent($ae(this), 'append', 'span', ' about ' + context); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Share button [MAS-552] ele.outerFind('.share-buttons .share > a').attr({'id':'aeShareButton', 'aria-expanded':'false'}).each(function() { api.convertToBtn($ae(this)); $ae(this).on('keydown', function(e) { if (e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { $ae(this).attr('aria-expanded', 'true'); // Set focus to the popup setTimeout(function() { AudioEye.focusElement($ae('div.share-popup > a.share-popup-close').attr('tabindex', '0')); AudioEye.modals.enableTabLoop('div.share-popup'); }, 50); }); }); ele.outerFind('.share-popup-close, .sharePopup .close').on('keydown', function(e) { if (e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { AudioEye.focusElement('#aeShareButton').attr('aria-expanded','false'); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Redundant link context [MAS-385] ele.outerFind('footer a[href$="thisisfirstbranch.com/"]').attr('aria-label', 'Powered by First Branch'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - App download context [MAS-601] api.addComplianceIndent(ele.outerFind('a.itunes, a[href*="apps.apple.com/"]').filter(':contains(iTunes), :contains(iPhone)'), 'append', 'span', 'Download on the App Store'); api.addComplianceIndent(ele.outerFind('a.google, a[href*="play.google.com/store/apps"]').filter(':contains(Google), :contains(Android)'), 'append', 'span', 'Get it on Google Play'); //-------------------------------------------------------------------------------------------------------------------------------- //// VAGUE TEXT LINKS /// var more_txt = ['learn more', 'read more', 'see details', 'aprende más', 'aprenda más', 'más', 'conoce más', 'más información' ]; var now_txt = ['apply online', 'apply now', 'enroll now', 'open in minutes', 'open now', 'click here', 'here', 'request info', 'ábrela ahora', 'ábrela ya', 'ábrela en línea', 'inscríbete ahora', 'pide información' ]; ele.outerFind('a').not('[href*="https://connect.segmint.net/trackclick/"]').filter(function () { return $ae.inArray($ae(this).text().toLowerCase().trim(), more_txt) !== -1 || $ae.inArray($ae(this).text().toLowerCase().trim(), now_txt) !== -1; }).each(function () { var desc = ''; if ($ae.inArray($ae(this).text().toLowerCase().trim(), more_txt) !== -1) { if ($ae(this).hasClass('.fancybox') == true) { desc = $ae(this).closest('div').has(':header').find(':header').text(); } else { // break down url into array of strings var uri = this.href.split("/"); if (uri.slice(-1)[0] == "") { uri.pop(); } desc = uri.slice(-1)[0]; desc = desc.split('.'); desc = desc[0].replace(/-/g, " "); } if (desc != '') { api.addComplianceIndent($ae(this), 'append', 'span', '- ' + desc); //$ae(this).removeAttr('title'); } } if ($ae.inArray($ae(this).text().toLowerCase().trim(), now_txt) !== -1) { if ($ae(this).parents('.comparison-chart, .comparisonChart').length === 0) { desc = $ae(this).closest('#windowContent').find('.pageTitle').contents().not(':empty').first().text(); if (!desc.trim()) { desc = $ae(this).closest('#windowContent').find('.forContent h1').first().text(); } if (!desc.trim()) { desc = $ae(this).closest('.contentBody, #mainContent').find('h1').first().text(); } } if ($ae(this).parents('.comparison-chart, .comparisonChart').length > 0) { desc = $ae(this).closest('div').find('h1, h2, h3, h4, h5, h6').first().text(); } if (desc != '') { api.addComplianceIndent($ae(this), 'prepend', 'span', desc + ', '); //$ae(this).removeAttr('title'); } } }); //-------------------------------------------------------------------------------------------------------------------------------- //// FORM LABELS //// // AE - Updated for [MAS-574] ele.outerFind('fieldset.phone input, fieldset.ssn input, fieldset.date input').each(function () { var lbl; if ($ae(this).is($ae(this).parent().find('input:eq(0)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - Area Code'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - First 3'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Month'; } } if ($ae(this).is($ae(this).parent().find('input:eq(1)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - First 3'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - Middle 2'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Day'; } } if ($ae(this).is($ae(this).parent().find('input:eq(2)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - Last 4'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - Last 4'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Year'; } } $ae(this).attr('aria-label', lbl); //api.addComplianceIndent($ae(this), 'before', 'label', txt); }); //-------------------------------------------------------------------------------------------------------------------------------- ele.outerFind('label').filter(':empty').each(function () { if ($ae(this).next('textarea').length > 0 && !$ae(this).children('span.ae-compliance-indent').filter(':contains("' + $ae(this).closest('fieldset').find(':header').text() + '")').length) { api.addComplianceIndent($ae(this), 'html', 'span', $ae(this).closest('fieldset').find(':header').text()); } }); //-------------------------------------------------------------------------------------------------------------------------------- // EXCLUDE LINKS, ADJACENT ETC.. ele.outerFind('#productList .clickable, .productList .clickable, .featuredProducts .clickable').filter(function() { return $ae(this).has('a img') && $ae(this).find('a').length > 1; }).each(function() { api.hideFromAT($ae(this).find('a > img').parent()); }); api.hideFromAT(ele.outerFind('#productList .clickable, .productList .clickable, .featuredProducts .clickable').has(':header a[href]').find('a').not(':header a').addClass('ae-exclude')); api.hideFromAT(ele.outerFind('.productList .clickable, #productList .clickable').has('h3 a[href]').find('h4 a').addClass('ae-exclude')); //-------------------------------------------------------------------------------------------------------------------------------- // ACCORDION TABS ele.outerFind("li.loc").find("a").each(function() { if($ae(this).text().trim() == "See Location Details") { api.addComplianceIndent($ae(this),"append","span","for "+$ae(this).parents('li.loc').find("div.branchName div.branch-title").text()); } else if($ae(this).text().trim()=="Get Directions") { api.addComplianceIndent($ae(this),"append","span","for "+$ae(this).parents('li.loc').find("div.branchName div.branch-title").text()); } }); ele.outerFind('#header .primaryNavLink').click(function() { if ($ae('#bigWrapper').hasClass('sideActive')) { $ae(this).attr('aria-expanded', 'true'); AudioEye.focusElement(document.getElementById('sideContent')); } else { $ae(this).attr('aria-expanded', 'false'); } }); api.convertToAccordion('.togglesNext, .toggleNext', 'active'); api.convertToAccordion('.accordion-title', 'active'); api.convertToAccordion('#locList .top h2', '', '.bottom'); api.convertToAccordion('#productTabs dt', 'selected'); //-------------------------------------------------------------------------------------------------------------------------------- //FORMS //labels, legends //var recapresponse = 'Respuesta de ReCaptcha'; //var recaptext = 'Entrar texto de CAPTCHA'; var recapresponse = 'ReCaptcha Response'; var recaptext = 'Enter CAPTCHA text'; ele.outerFind("label[for='g-recaptcha-response']").filter(':empty').addClass("ae-compliance-indent").css("display", "none").text(recapresponse); ele.outerFind('#recaptcha_response_field').attr('aria-label', recaptext); //-------------------------------------------------------------------------------------------------------------------------------- //empty labels ele.outerFind('label').filter(':empty').each(function() { if ($ae(this).next('textarea') && $ae(this).children('span').filter(':contains("' + $ae(this).closest('fieldset').find('h6, h5, h4, h3, h2, h1').first().text() + '")').length) { api.addComplianceIndent($ae(this), 'prepend', 'span', $ae(this).closest('fieldset').find('h6, h5, h4, h3, h2, h1').first().text()); } }); //-------------------------------------------------------------------------------------------------------------------------------- //required fields ele.outerFind('form.inmo-application label').not('.optional').each(function() { if (!$ae(this).closest('fieldset').hasClass('optional')) { if ($ae(this).nextAll('.help').find('.default:visible:not(:empty)').length == 0) { if ($ae(this).parent().nextAll('.help').find('.default:visible:not(:empty)').length == 0) { $ae(this).next(':text, select, textarea').attr('aria-required','true'); } } } }); //-------------------------------------------------------------------------------------------------------------------------------- //fieldset api.setPresentation(ele.outerFind('form fieldset').first().has('fieldset')); //-------------------------------------------------------------------------------------------------------------------------------- var ae_mel_counter = 0; ele.outerFind('li').has('h6, h5, h4, h3, h2, h1').find('ul').has('input[type="radio"]').each(function() { if (typeof $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id') === typeof undefined || $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id') === false) { $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id','ae_mel_legend' + ae_mel_counter); } var ae_mel_legend = $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id'); // To add aria-describedby to individual radio buttons: $ae(this).find('input[type="radio"]').attr({ ! Don't forget to remove role: radiogroup if passed $ae(this).attr('role','radiogroup'); $ae(this).find('input[type="radio"]').attr('aria-describedby',ae_mel_legend); ae_mel_counter++; }); //-------------------------------------------------------------------------------------------------------------------------------- //form names //var zip = 'Búsqueda de código postal'; //var search = 'Formulario de búsqueda del sitio'; //var contact = 'Formulario de contacto'; //var online = 'Formulario de Banca en Línea'; var zip = 'Zip Code Search'; var search = 'Search'; var contact = 'Contact Us'; var online = 'Online Banking Login'; ele.outerFind('form.findBranch, form#t').has('[name="zip"], #zip').attr('aria-label', zip); ele.outerFind('#contactForm form').attr('aria-label', contact); ele.outerFind('form#siteSearchForm, form#searchForm, form#froisearch-form').attr('aria-label', search); ele.outerFind('form.onlineBanking, .obLogin form').attr('aria-label', online); ele.outerFind('#fedCalculator form').each(function() { var ae_mel_title = $ae(this).closest('#fedCalculator').contents('strong, h6, h5, h4, h3, h2, h1').first().text(); $ae(this).attr('aria-label', ae_mel_title); }); //-------------------------------------------------------------------------------------------------------------------------------- //var submit = 'Enviar'; var submit = 'Submit'; ele.outerFind(':submit#searchButton').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + submit + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', submit); }); //-------------------------------------------------------------------------------------------------------------------------------- //var submit = 'Enviar'; var submit = 'Submit'; ele.outerFind('.searchsubmit').not(':submit.searchsubmit').each(function() { api.addComplianceIndent($ae(this), 'append', 'span', submit); }); //-------------------------------------------------------------------------------------------------------------------------------- //no submit button on financial calculators popup $ae('body.calculator form').filter(function() { var submit = $ae(this).find('input[type="submit"],button[type="submit"]'); return submit && submit.length == 0; }).append(' '); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Error descriptions [MAS-322] ele.outerFind('#contactForm input[type="submit"]').on('click', function(e) { setTimeout(function() { ele.outerFind('#contactForm .error').each(function(i) { if ($ae(this).attr('id') === undefined) { $ae(this).attr('id', 'ae_error_desc' + i); } }); ele.outerFind('#contactForm li.error input').each(function() { $ae(this).attr({'aria-describedby': $ae(this).closest('li.error').find('.error').attr('id'), 'aria-invalid': 'true'}); }); }, 50); }); //-------------------------------------------------------------------------------------------------------------------------------- //Financial calculators ele.outerFind('#fedCalculator form .ui-slider-handle').each(function() { $ae(this).attr({'role':'slider', 'aria-valuenow':$ae(this).closest('fieldset').find(':text').val() == '' ? '0' : $ae(this).closest('fieldset').find(':text').val(), 'aria-valuemin':'0', 'aria-valuemax':$ae(this).closest('fieldset').find(':text').attr('data-max'), 'aria-labelledby':$ae(this).closest('fieldset').find('label').attr('for') }); //update aria valuenow on keyboard var ae_mel_obj = $ae(this).closest('fieldset').find(':text').attr('id'); window['ae_mel_startPos' + ae_mel_obj] = $ae(this).position().left; $ae(this).off('keydown').on('keydown', function (e) { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); //update aria valuenow on mouse $ae(this).off('mouseup').on('mouseup', function (e) { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); //update aria valuenow with click on bar $ae(this).prev('.ui-slider-range').click(function() { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); }); ele.outerFind('#cd-form fieldset.radios label[for="compounded"]').attr({'id':'ae_mel_radio_comp'}); ele.outerFind('#cd-form fieldset.radios :radio').each(function() { $ae(this).attr({'aria-describedby':'ae_mel_radio_comp'}); $ae(this).next('span').andSelf().wrapAll(''); }); //-------------------------------------------------------------------------------------------------------------------------------- //Hidden from screen readers api.hideFromAT('#map_dummy, #map, #map-canvas, #mapContainer, #dummy, .map-it, .seeMap'); api.hideFromAT(ele.outerFind('#map_dummy, #map, #map-canvas, #mapContainer, #dummy, .map-it, .seeMap').find(':tabbable, img')); ele.outerFind('#map, #dummy, #map_dummy, #map_dummy img, #map img, #map-canvas img, #mapContainer img, #dummy img').addClass('ae-exclude'); ele.outerFind('ul').has('.print, .share').attr('role', 'presentation'); ele.outerFind('ul, ol').each(function() { if ($ae(this).children('li').length < 2 && $ae(this).find('ul, ol').length == 0) { $ae(this).attr('role', 'presentation'); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Line break [MAS-602] ele.outerFind('hr').attr(api.pres); //-------------------------------------------------------------------------------------------------------------------------------- //Icons api.hideFromAT(ele.outerFind('i.icon-envelope, i.icon-print, i.icon-question, i.fa:empty').not('[role]')); //-------------------------------------------------------------------------------------------------------------------------------- //Images api.hideFromAT('.mobile img'); ele.outerFind('.mobile img').addClass('ae-exclude'); api.hideFromAT('#bv-logo a[href*="thisisfirstbranch.com"] svg'); ele.outerFind('#bv-logo a[href*="firstbranch"]').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Powered by First Branch' + '")').length) api.addComplianceIndent($ae(this), 'prepend', 'span', 'Powered by First Branch'); }); api.setAlt('#eh img[src*="eh"]', 'Equal Housing Lender'); api.setAlt('#fdic img[src*="fdic"]', 'Member F D I C'); api.setAlt('#ncua img[src*="ncua"]', 'NCUA Federal Insurance'); api.setAlt('#esi img[src*="esi"]', 'ESI ExcessShare'); //-------------------------------------------------------------------------------------------------------------------------------- //background image ele.outerFind('#eh, #eh a[href*="eh"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Equal Housing Lender' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'Equal Housing Lender'); }); ele.outerFind('#fdic, #fdic a[href*="fdic"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Member F D I C' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'Member F D I C'); }); ele.outerFind('#ncua, #ncua a[href*="ncua"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'NCUA Federal Insurance' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'NCUA Federal Insurance'); }); ele.outerFind('#ncua, #ncua a[href*="ncua"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'ESI ExcessShare' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'ESI ExcessShare'); }); //-------------------------------------------------------------------------------------------------------------------------------- //Alternate text ele.outerFind('img[src$="fileAsset"][alt$=".jpg"], img[src$="fileAsset"][alt$=".png"]').each(function() { $ae(this).attr({ 'alt': $ae(this).attr('alt').replace('.jpg', '').replace('.png', '').replace(/-/g, ' ').replace(/_/g, ' ').replace(/\s*\b\w*\d\d\d\d\d\w*\b/g, '') }); }); //var loading = 'Cargando, por favor espere...'; var loading = 'Loading, please wait...'; ele.outerFind('img.loading, img[src*="maps/130.gif"]').not('[alt]').attr('alt', loading); //-------------------------------------------------------------------------------------------------------------------------------- //home page icon ele.outerFind('.home i.fa-home').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Home' + '")').length) api.addComplianceIndent($ae(this), 'after', 'span', 'Home'); }); //-------------------------------------------------------------------------------------------------------------------------------- //Tables ele.outerFind('table thead td').attr({'role':'columnheader', 'scope':'col'}); //# Fixed @MAS-196 ele.outerFind('table tbody tr > th').filter(':contains(APY)').not(':contains(Annual)').each(function() { if (!$ae(this).children('span.ae-compliance-indent').length && $ae(this).text().trim().toLowerCase() === 'apy') { $ae(this).append(' Annual Percentage Yield '); } }); //-------------------------------------------------------------------------------------------------------------------------------- //Buttons ele.outerFind('button.mfp-close').not('[aria-label]').attr('aria-label', 'Close'); //-------------------------------------------------------------------------------------------------------------------------------- //Headings //decorative headers api.setPresentation(ele.outerFind('h6, h5').add(ele.outerFind('#locList .branchInfo, form, table, .comparison-chart').find('h1,h2,h3,h4,h5,h6'))); //hide headers missing text ele.outerFind('h1, h2, h3, h4, h5, h6').each(function() { if ($ae.trim($ae(this).text()).length === 0) { if ($ae(this).children().length === 0) { api.hideFromAT($ae(this)); } if ($ae(this).clone().find('b').filter(':empty').remove().end().find('strong').filter(':empty').remove().end().find('span').filter(':empty').remove().end().children().length === 0) { api.hideFromAT($ae(this)); } } }); api.setHeadingLevel("div.comparison-chart div.account-headline h5","2"); api.setHeadingLevel("div.comparison-chart div.account-name h5","3"); api.setHeadingLevel("div.comparison-chart div.account-details h5","3"); api.setHeadingLevel("div.comparison-chart div.account-name h2","3"); api.setHeadingLevel("div.lobbyHours h5","2"); api.setHeadingLevel("div.driveThroughHours h5","2"); //-------------------------------------------------------------------------------------------------------------------------------- ele.outerFind('form.inmo-application li.submit input').click(function() { setTimeout(function() { if($ae('li.error').first().find('input').length > 0) { AudioEye.focusElement($ae('li.error').first().find('input')); } else if($ae('li.error').first().find('select').length > 0) { AudioEye.focusElement($ae('li.error').first().find('select')); } },500); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Checking button context [MAS-606] ele.outerFind('.account .account-name a').filter(':not(:has(.ae-compliance-indent))').each(function() { var context = ' for ' + $ae(this).closest('.account .account-name').find('h2').text().trim(); if(context.toLowerCase().indexOf('checking') === -1) { context += ' Checking'; } api.addComplianceIndent($ae(this), 'append', 'span', context); }); //-------------------------------------------------------------------------------------------------------------------------------- //iFrames //var recapwidget = 'Widget recaptcha'; //var ad = 'Anuncio'; //var map = 'Mapa'; var recapwidget = 'recaptcha widget'; var ad = 'Advertisement'; var map = 'Map'; ele.outerFind('iframe').not('[title]').each(function() { if (!this.hasAttribute('src')) { api.hideFromAT($ae(this)); } else { if ($ae(this).attr('src') == 'about:blank') { api.hideFromAT($ae(this)); } if ($ae(this).attr('src').indexOf('insight.adsrvr.org') > -1 || $ae(this).attr('src').indexOf('adservices.brandcdn.com') > -1) { api.setTitle($ae(this), ad); } if ($ae(this).attr('src').indexOf('e.issuu.com') > -1 || $ae(this).attr('src').indexOf('vimeo.com') > -1 || $ae(this).attr('src').indexOf('youtube.com') > -1) { api.setTitle($ae(this), 'Video'); } if ($ae(this).attr('src').indexOf('google.com/recaptcha') > -1) { api.setTitle($ae(this), recapwidget); } if ($ae(this).closest('#map, #map-canvas, #mapContainer, #dummy').length > 0) { api.setTitle($ae(this), map); } } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Skip link in iframe 2 [MAS-655], [MAS-702] ele.outerFind('body.popup').each(function() { var this_ = $ae(this); setTimeout(function() { this_.find('.ae-skipto-main').attr(api.rmv); this_.find('#main').attr(api.pres); }, 50); }); //-------------------------------------------------------------------------------------------------------------------------------- //Dialogs //CALCULATORS ele.outerFind('.ui-slider, .ui-slider a, a.skip-to-content').addClass('ae-exclude'); //-------------------------------------------------------------------------------------------------------------------------------- // MODALS //var close = 'Cerrar'; var close = 'Close'; ele.outerFind('a.requestInfo, .questions a').addClass('iframe'); ele.outerFind("div.mfp-content div.mfp-iframe-scaler button").attr("aria-label","Close"); ele.outerFind("div#searchPopup button.mfp-close").attr("aria-label","Close"); //ele.outerFind("div.mfp-content div.mfp-iframe-scaler button").removeAttr("title"); setupModal('a.calcPopup, a.iframe, a.fancybox', '.mfp-wrap, #fancybox-wrap, .fancybox-wrap, #fancy_outer', '.mfp-close, .fancybox-close, #fancybox-close, #fancy_close', 'h2, h3, h4', 1); setupModal('a.warn, a.confirm', '.bootbox.modal, .bootbox-confirm', '.bootbox-close-button, .close', 'External link confirmation'); setupModal('.searchbox-toggle', '.mfp-wrap', '.mfp-close', 'Search Popup'); function setupModal(trigger, wrapper, close, label, labelFlag) { // ATTACH MODAL EVENT TO OUR MODAL TRIGGER ele.outerFind(trigger).click(function() { // SET UP OUR VARIABLES var return_target = this; // RUN CONTENT CHECK / MANAGEMENT IN AN INTERVAL LOOP var modal_interval = window.setInterval(function() { // MAKE SURE OUR MODAL EXISTS if ($ae(wrapper).length > 0) { window.clearInterval(modal_interval); // MANAGE MODAL INTERIOR //PREPARE MODAL ROLE AND LABEL if(labelFlag === 1) { label = $ae(wrapper).outerFind(label).first().text().trim(); } ele.outerFind(wrapper).attr({'role':'dialog','aria-modal':'true','aria-label':label}); // ADD RETURN CODE TO CLOSE BUTTON AND ENSURE CLOSE BUTTON ACCESSIBILITY if(!$ae(wrapper).find(close).is('button, input')) { api.convertToBtn(ele.outerFind(wrapper).find(close)); } if($ae(wrapper).find(close).text().toLowerCase().trim().length < 5) { $ae(wrapper).find(close).find('img').attr('alt',''); api.addComplianceIndent(ele.outerFind(wrapper).find(close), 'append', 'span', ' Close'); } ele.outerFind(wrapper).find(close).click(function() { AudioEye.focusElement(return_target); }); // SET OUR FOCUS AND TAB TRAP AudioEye.focusElement($ae(wrapper).find(close)); AudioEye.modals.enableTabLoop(wrapper); //CLEAR INTERVAL if (modal_interval > 10000) { window.clearInterval(modal_interval); } } }, 300); }); } //-------------------------------------------------------------------------------------------------------------------------------- // AE - Calculator modal sliders [MAS-182] api.hideFromAT('#fedCalculator .slider'); api.hideFromAT('#fedCalculator .icon.moneySm'); api.hideFromAT('#fedCalculator .icon.moneyLg'); api.hideFromAT('#fedCalculator .icon.numberSm'); api.hideFromAT('#fedCalculator .icon.numberLg'); api.hideFromAT('#fedCalculator .icon.percentSm'); api.hideFromAT('#fedCalculator .icon.percentLg'); ele.outerFind('#fedCalculator .ui-slider-handle').removeAttr('tabindex'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Modal focus [MAS-325] ele.outerFind('.bootbox-close-button').removeAttr('aria-hidden'); ele.outerFind('.obLogin .confirm').on('keydown', function(e) { if(e.keyCode == 13 || e.keyCode == 32) { console.log('keydown'); e.preventDefault(); this.click(); } }).click(function() { setTimeout(function() { AudioEye.focusElement('.bootbox-close-button'); AudioEye.modals.enableTabLoop('.modal-content'); }, 1000); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Confirm modals [MAS-386] // AE - Confirm Modal Focus update [MAS-724] ele.outerFind('a.confirm[href], a.warn[href]').on('keydown', function(e) { if(e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { var joe_return = $ae(this); setTimeout(function() { AudioEye.modals.enableTabLoop('.bootbox-confirm .modal-dialog'); ele.outerFind('.bootbox-confirm .modal-footer button[data-bb-handler="cancel"], .bootbox-confirm .modal-footer button.bootbox-cancel, .bootbox-confirm button.bootbox-close-button').click(function() { setTimeout(function() { AudioEye.focusElement(joe_return); }, 100); }); }, 100); }); ele.outerFind('button.bootbox-close-button').attr('aria-label', 'Close'); }); !function(r){void 0!==window.AudioEye?window.AudioEye.manualRemediations.push(r):r($ae("html"))}(function(ele,api){ //-------------------------------------------------------------------------------------------------------------------------------- api.addBodyClass(); //-------------------------------------------------------------------------------------------------------------------------------- //Convert our common elements to buttons. var ae_clickable = '.primaryNavLink.mobileSmall, .oblToggler.mobileSmall, .primaryNavLink, .primaryNav .close, .primaryNavWrapper .close, .togglesNext, .toggleNext, #mainMenu .menuWrapper .close, .primaryNav .close div, #siteAlertClose, #recaptcha_widget_div a[id*="recaptcha"], .share-buttons a, .print, .share .share-popup-close, .sharePopup .close'; api.convertToBtn(ele.outerFind(ae_clickable).not('[href], button, input, form :header')); //-------------------------------------------------------------------------------------------------------------------------------- // AE - [MAS-169] api.convertToBtn('.primaryNav.nthTier-1.primaryNav > li > a'); //-------------------------------------------------------------------------------------------------------------------------------- //Add Close text to our close buttons //var close = 'Cerrar'; var close = 'Close'; ele.outerFind('.primaryNav .close, .primaryNavWrapper .close, .share .share-popup-close, .sharePopup .close, #mainMenu .menuWrapper .close').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + close + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', close); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Hide skip link api.hideFromAT('a.skip-to-content'); //-------------------------------------------------------------------------------------------------------------------------------- //var onFacebook = 'en Facebook'; var onFacebook = 'on Facebook'; ele.outerFind('.share-facebook a, a.share-facebook').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + onFacebook + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', onFacebook); }); //-------------------------------------------------------------------------------------------------------------------------------- //var onGoogleplus = 'en Google plus'; var onGoogleplus = 'on Google plus'; ele.outerFind('.share-googleplus a, a.share-googleplus').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + onGoogleplus + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', onGoogleplus); }); //-------------------------------------------------------------------------------------------------------------------------------- //SEARCH REGION //var search = 'Formulario de búsqueda del sitio'; var search = 'Search'; api.convertToAccordion('.searchBtn, .searchToggler, .searchToggle, .searchtoggle', 'open'); ele.outerFind('.searchBtn, .searchsubmit, .searchToggler, .searchToggle, .searchtoggle, .searchbox-toggle').each(function() { if($ae(this).text().trim() == "") { api.addComplianceIndent($ae(this), 'append', 'span', search); } }); var searchDiv = $ae('div.search'); if(searchDiv.length > 0 && searchDiv.find('a').length == 0 && $ae('.search .site-search').is(':visible') === true) { ele.outerFind('div.search').attr({'role':'presentation','tabindex':'-1'}); } ele.outerFind('button#froisearch-button').removeAttr('type'); ele.outerFind('button#froisearch-button, input#froisearch-button').removeAttr('alt'); ele.outerFind('input#froisearch-button').attr('aria-label', search); if($ae('button#froisearch-button').text().trim().length == 0) { api.addComplianceIndent('button#froisearch-button', 'append', 'span', search); } //-------------------------------------------------------------------------------------------------------------------------------- //SHARE REGION ele.outerFind('.share .share-popup-close, .sharePopup .close, .share-popup .close, #mainMenu .menuWrapper .close').each(function () { if ($ae(this).text() == '') { api.addComplianceIndent($ae(this), 'append', 'span', 'Close'); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Share link context [MAS-603] api.addComplianceIndent(ele.outerFind('.share-popup a.share-twitter').filter(':contains(Tweet)'), 'append', 'span', 'on Twitter'); api.addComplianceIndent(ele.outerFind('.share-popup a.share-linkedin').filter(':contains(Share)'), 'append', 'span', 'on Linkedin'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Read More link context [MAS-615] ele.outerFind('.page-content .content-details a.read-more').each(function() { var context = $ae(this).closest('.content-details').find('h3').text().trim(); if($ae(this).has('.ae-compliance-indent')) { $ae(this).find('.ae-compliance-indent').text(' about ' + context); } else { api.addComplianceIndent($ae(this), 'append', 'span', ' about ' + context); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Share button [MAS-552] ele.outerFind('.share-buttons .share > a').attr({'id':'aeShareButton', 'aria-expanded':'false'}).each(function() { api.convertToBtn($ae(this)); $ae(this).on('keydown', function(e) { if (e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { $ae(this).attr('aria-expanded', 'true'); // Set focus to the popup setTimeout(function() { AudioEye.focusElement($ae('div.share-popup > a.share-popup-close').attr('tabindex', '0')); AudioEye.modals.enableTabLoop('div.share-popup'); }, 50); }); }); ele.outerFind('.share-popup-close, .sharePopup .close').on('keydown', function(e) { if (e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { AudioEye.focusElement('#aeShareButton').attr('aria-expanded','false'); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Redundant link context [MAS-385] ele.outerFind('footer a[href$="thisisfirstbranch.com/"]').attr('aria-label', 'Powered by First Branch'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - App download context [MAS-601] api.addComplianceIndent(ele.outerFind('a.itunes, a[href*="apps.apple.com/"]').filter(':contains(iTunes), :contains(iPhone)'), 'append', 'span', 'Download on the App Store'); api.addComplianceIndent(ele.outerFind('a.google, a[href*="play.google.com/store/apps"]').filter(':contains(Google), :contains(Android)'), 'append', 'span', 'Get it on Google Play'); //-------------------------------------------------------------------------------------------------------------------------------- //// VAGUE TEXT LINKS /// var more_txt = ['learn more', 'read more', 'see details', 'aprende más', 'aprenda más', 'más', 'conoce más', 'más información' ]; var now_txt = ['apply online', 'apply now', 'enroll now', 'open in minutes', 'open now', 'click here', 'here', 'request info', 'ábrela ahora', 'ábrela ya', 'ábrela en línea', 'inscríbete ahora', 'pide información' ]; ele.outerFind('a').not('[href*="https://connect.segmint.net/trackclick/"]').filter(function () { return $ae.inArray($ae(this).text().toLowerCase().trim(), more_txt) !== -1 || $ae.inArray($ae(this).text().toLowerCase().trim(), now_txt) !== -1; }).each(function () { var desc = ''; if ($ae.inArray($ae(this).text().toLowerCase().trim(), more_txt) !== -1) { if ($ae(this).hasClass('.fancybox') == true) { desc = $ae(this).closest('div').has(':header').find(':header').text(); } else { // break down url into array of strings var uri = this.href.split("/"); if (uri.slice(-1)[0] == "") { uri.pop(); } desc = uri.slice(-1)[0]; desc = desc.split('.'); desc = desc[0].replace(/-/g, " "); } if (desc != '') { api.addComplianceIndent($ae(this), 'append', 'span', '- ' + desc); //$ae(this).removeAttr('title'); } } if ($ae.inArray($ae(this).text().toLowerCase().trim(), now_txt) !== -1) { if ($ae(this).parents('.comparison-chart, .comparisonChart').length === 0) { desc = $ae(this).closest('#windowContent').find('.pageTitle').contents().not(':empty').first().text(); if (!desc.trim()) { desc = $ae(this).closest('#windowContent').find('.forContent h1').first().text(); } if (!desc.trim()) { desc = $ae(this).closest('.contentBody, #mainContent').find('h1').first().text(); } } if ($ae(this).parents('.comparison-chart, .comparisonChart').length > 0) { desc = $ae(this).closest('div').find('h1, h2, h3, h4, h5, h6').first().text(); } if (desc != '') { api.addComplianceIndent($ae(this), 'prepend', 'span', desc + ', '); //$ae(this).removeAttr('title'); } } }); //-------------------------------------------------------------------------------------------------------------------------------- //// FORM LABELS //// // AE - Updated for [MAS-574] ele.outerFind('fieldset.phone input, fieldset.ssn input, fieldset.date input').each(function () { var lbl; if ($ae(this).is($ae(this).parent().find('input:eq(0)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - Area Code'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - First 3'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Month'; } } if ($ae(this).is($ae(this).parent().find('input:eq(1)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - First 3'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - Middle 2'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Day'; } } if ($ae(this).is($ae(this).parent().find('input:eq(2)'))) { if ($ae(this).parent().hasClass('phone')) { lbl = 'Phone - Last 4'; } if ($ae(this).parent().hasClass('ssn')) { lbl = 'SSN - Last 4'; } if ($ae(this).parent().hasClass('date')) { lbl = 'Date - Year'; } } $ae(this).attr('aria-label', lbl); //api.addComplianceIndent($ae(this), 'before', 'label', txt); }); //-------------------------------------------------------------------------------------------------------------------------------- ele.outerFind('label').filter(':empty').each(function () { if ($ae(this).next('textarea').length > 0 && !$ae(this).children('span.ae-compliance-indent').filter(':contains("' + $ae(this).closest('fieldset').find(':header').text() + '")').length) { api.addComplianceIndent($ae(this), 'html', 'span', $ae(this).closest('fieldset').find(':header').text()); } }); //-------------------------------------------------------------------------------------------------------------------------------- // EXCLUDE LINKS, ADJACENT ETC.. ele.outerFind('#productList .clickable, .productList .clickable, .featuredProducts .clickable').filter(function() { return $ae(this).has('a img') && $ae(this).find('a').length > 1; }).each(function() { api.hideFromAT($ae(this).find('a > img').parent()); }); api.hideFromAT(ele.outerFind('#productList .clickable, .productList .clickable, .featuredProducts .clickable').has(':header a[href]').find('a').not(':header a').addClass('ae-exclude')); api.hideFromAT(ele.outerFind('.productList .clickable, #productList .clickable').has('h3 a[href]').find('h4 a').addClass('ae-exclude')); //-------------------------------------------------------------------------------------------------------------------------------- // ACCORDION TABS ele.outerFind("li.loc").find("a").each(function() { if($ae(this).text().trim() == "See Location Details") { api.addComplianceIndent($ae(this),"append","span","for "+$ae(this).parents('li.loc').find("div.branchName div.branch-title").text()); } else if($ae(this).text().trim()=="Get Directions") { api.addComplianceIndent($ae(this),"append","span","for "+$ae(this).parents('li.loc').find("div.branchName div.branch-title").text()); } }); ele.outerFind('#header .primaryNavLink').click(function() { if ($ae('#bigWrapper').hasClass('sideActive')) { $ae(this).attr('aria-expanded', 'true'); AudioEye.focusElement(document.getElementById('sideContent')); } else { $ae(this).attr('aria-expanded', 'false'); } }); api.convertToAccordion('.togglesNext, .toggleNext', 'active'); api.convertToAccordion('.accordion-title', 'active'); api.convertToAccordion('#locList .top h2', '', '.bottom'); api.convertToAccordion('#productTabs dt', 'selected'); //-------------------------------------------------------------------------------------------------------------------------------- //FORMS //labels, legends //var recapresponse = 'Respuesta de ReCaptcha'; //var recaptext = 'Entrar texto de CAPTCHA'; var recapresponse = 'ReCaptcha Response'; var recaptext = 'Enter CAPTCHA text'; ele.outerFind("label[for='g-recaptcha-response']").filter(':empty').addClass("ae-compliance-indent").css("display", "none").text(recapresponse); ele.outerFind('#recaptcha_response_field').attr('aria-label', recaptext); //-------------------------------------------------------------------------------------------------------------------------------- //empty labels ele.outerFind('label').filter(':empty').each(function() { if ($ae(this).next('textarea') && $ae(this).children('span').filter(':contains("' + $ae(this).closest('fieldset').find('h6, h5, h4, h3, h2, h1').first().text() + '")').length) { api.addComplianceIndent($ae(this), 'prepend', 'span', $ae(this).closest('fieldset').find('h6, h5, h4, h3, h2, h1').first().text()); } }); //-------------------------------------------------------------------------------------------------------------------------------- //required fields ele.outerFind('form.inmo-application label').not('.optional').each(function() { if (!$ae(this).closest('fieldset').hasClass('optional')) { if ($ae(this).nextAll('.help').find('.default:visible:not(:empty)').length == 0) { if ($ae(this).parent().nextAll('.help').find('.default:visible:not(:empty)').length == 0) { $ae(this).next(':text, select, textarea').attr('aria-required','true'); } } } }); //-------------------------------------------------------------------------------------------------------------------------------- //fieldset api.setPresentation(ele.outerFind('form fieldset').first().has('fieldset')); //-------------------------------------------------------------------------------------------------------------------------------- var ae_mel_counter = 0; ele.outerFind('li').has('h6, h5, h4, h3, h2, h1').find('ul').has('input[type="radio"]').each(function() { if (typeof $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id') === typeof undefined || $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id') === false) { $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id','ae_mel_legend' + ae_mel_counter); } var ae_mel_legend = $ae(this).parent('li').find('h6, h5, h4, h3, h2, h1').first().attr('id'); // To add aria-describedby to individual radio buttons: $ae(this).find('input[type="radio"]').attr({ ! Don't forget to remove role: radiogroup if passed $ae(this).attr('role','radiogroup'); $ae(this).find('input[type="radio"]').attr('aria-describedby',ae_mel_legend); ae_mel_counter++; }); //-------------------------------------------------------------------------------------------------------------------------------- //form names //var zip = 'Búsqueda de código postal'; //var search = 'Formulario de búsqueda del sitio'; //var contact = 'Formulario de contacto'; //var online = 'Formulario de Banca en Línea'; var zip = 'Zip Code Search'; var search = 'Search'; var contact = 'Contact Us'; var online = 'Online Banking Login'; ele.outerFind('form.findBranch, form#t').has('[name="zip"], #zip').attr('aria-label', zip); ele.outerFind('#contactForm form').attr('aria-label', contact); ele.outerFind('form#siteSearchForm, form#searchForm, form#froisearch-form').attr('aria-label', search); ele.outerFind('form.onlineBanking, .obLogin form').attr('aria-label', online); ele.outerFind('#fedCalculator form').each(function() { var ae_mel_title = $ae(this).closest('#fedCalculator').contents('strong, h6, h5, h4, h3, h2, h1').first().text(); $ae(this).attr('aria-label', ae_mel_title); }); //-------------------------------------------------------------------------------------------------------------------------------- //var submit = 'Enviar'; var submit = 'Submit'; ele.outerFind(':submit#searchButton').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + submit + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', submit); }); //-------------------------------------------------------------------------------------------------------------------------------- //var submit = 'Enviar'; var submit = 'Submit'; ele.outerFind('.searchsubmit').not(':submit.searchsubmit').each(function() { api.addComplianceIndent($ae(this), 'append', 'span', submit); }); //-------------------------------------------------------------------------------------------------------------------------------- //no submit button on financial calculators popup $ae('body.calculator form').filter(function() { var submit = $ae(this).find('input[type="submit"],button[type="submit"]'); return submit && submit.length == 0; }).append(' '); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Error descriptions [MAS-322] ele.outerFind('#contactForm input[type="submit"]').on('click', function(e) { setTimeout(function() { ele.outerFind('#contactForm .error').each(function(i) { if ($ae(this).attr('id') === undefined) { $ae(this).attr('id', 'ae_error_desc' + i); } }); ele.outerFind('#contactForm li.error input').each(function() { $ae(this).attr({'aria-describedby': $ae(this).closest('li.error').find('.error').attr('id'), 'aria-invalid': 'true'}); }); }, 50); }); //-------------------------------------------------------------------------------------------------------------------------------- //Financial calculators ele.outerFind('#fedCalculator form .ui-slider-handle').each(function() { $ae(this).attr({'role':'slider', 'aria-valuenow':$ae(this).closest('fieldset').find(':text').val() == '' ? '0' : $ae(this).closest('fieldset').find(':text').val(), 'aria-valuemin':'0', 'aria-valuemax':$ae(this).closest('fieldset').find(':text').attr('data-max'), 'aria-labelledby':$ae(this).closest('fieldset').find('label').attr('for') }); //update aria valuenow on keyboard var ae_mel_obj = $ae(this).closest('fieldset').find(':text').attr('id'); window['ae_mel_startPos' + ae_mel_obj] = $ae(this).position().left; $ae(this).off('keydown').on('keydown', function (e) { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); //update aria valuenow on mouse $ae(this).off('mouseup').on('mouseup', function (e) { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); //update aria valuenow with click on bar $ae(this).prev('.ui-slider-range').click(function() { window['ae_mel_endPos' + ae_mel_obj] = $ae(this).position().left; if (window['ae_mel_startPos' + ae_mel_obj] != window['ae_mel_endPos' + ae_mel_obj]) { $ae(this).attr({'aria-valuenow':$ae(this).closest('fieldset').find(':text').val().replace(',','')}); } window['ae_mel_startPos' + ae_mel_obj] = window['ae_mel_endPos' + ae_mel_obj]; }); }); ele.outerFind('#cd-form fieldset.radios label[for="compounded"]').attr({'id':'ae_mel_radio_comp'}); ele.outerFind('#cd-form fieldset.radios :radio').each(function() { $ae(this).attr({'aria-describedby':'ae_mel_radio_comp'}); $ae(this).next('span').andSelf().wrapAll(''); }); //-------------------------------------------------------------------------------------------------------------------------------- //Hidden from screen readers api.hideFromAT('#map_dummy, #map, #map-canvas, #mapContainer, #dummy, .map-it, .seeMap'); api.hideFromAT(ele.outerFind('#map_dummy, #map, #map-canvas, #mapContainer, #dummy, .map-it, .seeMap').find(':tabbable, img')); ele.outerFind('#map, #dummy, #map_dummy, #map_dummy img, #map img, #map-canvas img, #mapContainer img, #dummy img').addClass('ae-exclude'); ele.outerFind('ul').has('.print, .share').attr('role', 'presentation'); ele.outerFind('ul, ol').each(function() { if ($ae(this).children('li').length < 2 && $ae(this).find('ul, ol').length == 0) { $ae(this).attr('role', 'presentation'); } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Line break [MAS-602] ele.outerFind('hr').attr(api.pres); //-------------------------------------------------------------------------------------------------------------------------------- //Icons api.hideFromAT(ele.outerFind('i.icon-envelope, i.icon-print, i.icon-question, i.fa:empty').not('[role]')); //-------------------------------------------------------------------------------------------------------------------------------- //Images api.hideFromAT('.mobile img'); ele.outerFind('.mobile img').addClass('ae-exclude'); api.hideFromAT('#bv-logo a[href*="thisisfirstbranch.com"] svg'); ele.outerFind('#bv-logo a[href*="firstbranch"]').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Powered by First Branch' + '")').length) api.addComplianceIndent($ae(this), 'prepend', 'span', 'Powered by First Branch'); }); api.setAlt('#eh img[src*="eh"]', 'Equal Housing Lender'); api.setAlt('#fdic img[src*="fdic"]', 'Member F D I C'); api.setAlt('#ncua img[src*="ncua"]', 'NCUA Federal Insurance'); api.setAlt('#esi img[src*="esi"]', 'ESI ExcessShare'); //-------------------------------------------------------------------------------------------------------------------------------- //background image ele.outerFind('#eh, #eh a[href*="eh"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Equal Housing Lender' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'Equal Housing Lender'); }); ele.outerFind('#fdic, #fdic a[href*="fdic"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Member F D I C' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'Member F D I C'); }); ele.outerFind('#ncua, #ncua a[href*="ncua"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'NCUA Federal Insurance' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'NCUA Federal Insurance'); }); ele.outerFind('#ncua, #ncua a[href*="ncua"]').filter(':empty').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'ESI ExcessShare' + '")').length) api.addComplianceIndent($ae(this), 'append', 'span', 'ESI ExcessShare'); }); //-------------------------------------------------------------------------------------------------------------------------------- //Alternate text ele.outerFind('img[src$="fileAsset"][alt$=".jpg"], img[src$="fileAsset"][alt$=".png"]').each(function() { $ae(this).attr({ 'alt': $ae(this).attr('alt').replace('.jpg', '').replace('.png', '').replace(/-/g, ' ').replace(/_/g, ' ').replace(/\s*\b\w*\d\d\d\d\d\w*\b/g, '') }); }); //var loading = 'Cargando, por favor espere...'; var loading = 'Loading, please wait...'; ele.outerFind('img.loading, img[src*="maps/130.gif"]').not('[alt]').attr('alt', loading); //-------------------------------------------------------------------------------------------------------------------------------- //home page icon ele.outerFind('.home i.fa-home').each(function() { if (!$ae(this).children('span.ae-compliance-indent').filter(':contains("' + 'Home' + '")').length) api.addComplianceIndent($ae(this), 'after', 'span', 'Home'); }); //-------------------------------------------------------------------------------------------------------------------------------- //Tables ele.outerFind('table thead td').attr({'role':'columnheader', 'scope':'col'}); //# Fixed @MAS-196 ele.outerFind('table tbody tr > th').filter(':contains(APY)').not(':contains(Annual)').each(function() { if (!$ae(this).children('span.ae-compliance-indent').length && $ae(this).text().trim().toLowerCase() === 'apy') { $ae(this).append(' Annual Percentage Yield '); } }); //-------------------------------------------------------------------------------------------------------------------------------- //Buttons ele.outerFind('button.mfp-close').not('[aria-label]').attr('aria-label', 'Close'); //-------------------------------------------------------------------------------------------------------------------------------- //Headings //decorative headers api.setPresentation(ele.outerFind('h6, h5').add(ele.outerFind('#locList .branchInfo, form, table, .comparison-chart').find('h1,h2,h3,h4,h5,h6'))); //hide headers missing text ele.outerFind('h1, h2, h3, h4, h5, h6').each(function() { if ($ae.trim($ae(this).text()).length === 0) { if ($ae(this).children().length === 0) { api.hideFromAT($ae(this)); } if ($ae(this).clone().find('b').filter(':empty').remove().end().find('strong').filter(':empty').remove().end().find('span').filter(':empty').remove().end().children().length === 0) { api.hideFromAT($ae(this)); } } }); api.setHeadingLevel("div.comparison-chart div.account-headline h5","2"); api.setHeadingLevel("div.comparison-chart div.account-name h5","3"); api.setHeadingLevel("div.comparison-chart div.account-details h5","3"); api.setHeadingLevel("div.comparison-chart div.account-name h2","3"); api.setHeadingLevel("div.lobbyHours h5","2"); api.setHeadingLevel("div.driveThroughHours h5","2"); //-------------------------------------------------------------------------------------------------------------------------------- ele.outerFind('form.inmo-application li.submit input').click(function() { setTimeout(function() { if($ae('li.error').first().find('input').length > 0) { AudioEye.focusElement($ae('li.error').first().find('input')); } else if($ae('li.error').first().find('select').length > 0) { AudioEye.focusElement($ae('li.error').first().find('select')); } },500); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Checking button context [MAS-606] ele.outerFind('.account .account-name a').filter(':not(:has(.ae-compliance-indent))').each(function() { var context = ' for ' + $ae(this).closest('.account .account-name').find('h2').text().trim(); if(context.toLowerCase().indexOf('checking') === -1) { context += ' Checking'; } api.addComplianceIndent($ae(this), 'append', 'span', context); }); //-------------------------------------------------------------------------------------------------------------------------------- //iFrames //var recapwidget = 'Widget recaptcha'; //var ad = 'Anuncio'; //var map = 'Mapa'; var recapwidget = 'recaptcha widget'; var ad = 'Advertisement'; var map = 'Map'; ele.outerFind('iframe').not('[title]').each(function() { if (!this.hasAttribute('src')) { api.hideFromAT($ae(this)); } else { if ($ae(this).attr('src') == 'about:blank') { api.hideFromAT($ae(this)); } if ($ae(this).attr('src').indexOf('insight.adsrvr.org') > -1 || $ae(this).attr('src').indexOf('adservices.brandcdn.com') > -1) { api.setTitle($ae(this), ad); } if ($ae(this).attr('src').indexOf('e.issuu.com') > -1 || $ae(this).attr('src').indexOf('vimeo.com') > -1 || $ae(this).attr('src').indexOf('youtube.com') > -1) { api.setTitle($ae(this), 'Video'); } if ($ae(this).attr('src').indexOf('google.com/recaptcha') > -1) { api.setTitle($ae(this), recapwidget); } if ($ae(this).closest('#map, #map-canvas, #mapContainer, #dummy').length > 0) { api.setTitle($ae(this), map); } } }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Skip link in iframe 2 [MAS-655], [MAS-702] ele.outerFind('body.popup').each(function() { var this_ = $ae(this); setTimeout(function() { this_.find('.ae-skipto-main').attr(api.rmv); this_.find('#main').attr(api.pres); }, 50); }); //-------------------------------------------------------------------------------------------------------------------------------- //Dialogs //CALCULATORS ele.outerFind('.ui-slider, .ui-slider a, a.skip-to-content').addClass('ae-exclude'); //-------------------------------------------------------------------------------------------------------------------------------- // MODALS //var close = 'Cerrar'; var close = 'Close'; ele.outerFind('a.requestInfo, .questions a').addClass('iframe'); ele.outerFind("div.mfp-content div.mfp-iframe-scaler button").attr("aria-label","Close"); ele.outerFind("div#searchPopup button.mfp-close").attr("aria-label","Close"); //ele.outerFind("div.mfp-content div.mfp-iframe-scaler button").removeAttr("title"); setupModal('a.calcPopup, a.iframe, a.fancybox', '.mfp-wrap, #fancybox-wrap, .fancybox-wrap, #fancy_outer', '.mfp-close, .fancybox-close, #fancybox-close, #fancy_close', 'h2, h3, h4', 1); setupModal('a.warn, a.confirm', '.bootbox.modal, .bootbox-confirm', '.bootbox-close-button, .close', 'External link confirmation'); setupModal('.searchbox-toggle', '.mfp-wrap', '.mfp-close', 'Search Popup'); function setupModal(trigger, wrapper, close, label, labelFlag) { // ATTACH MODAL EVENT TO OUR MODAL TRIGGER ele.outerFind(trigger).click(function() { // SET UP OUR VARIABLES var return_target = this; // RUN CONTENT CHECK / MANAGEMENT IN AN INTERVAL LOOP var modal_interval = window.setInterval(function() { // MAKE SURE OUR MODAL EXISTS if ($ae(wrapper).length > 0) { window.clearInterval(modal_interval); // MANAGE MODAL INTERIOR //PREPARE MODAL ROLE AND LABEL if(labelFlag === 1) { label = $ae(wrapper).outerFind(label).first().text().trim(); } ele.outerFind(wrapper).attr({'role':'dialog','aria-modal':'true','aria-label':label}); // ADD RETURN CODE TO CLOSE BUTTON AND ENSURE CLOSE BUTTON ACCESSIBILITY if(!$ae(wrapper).find(close).is('button, input')) { api.convertToBtn(ele.outerFind(wrapper).find(close)); } if($ae(wrapper).find(close).text().toLowerCase().trim().length < 5) { $ae(wrapper).find(close).find('img').attr('alt',''); api.addComplianceIndent(ele.outerFind(wrapper).find(close), 'append', 'span', ' Close'); } ele.outerFind(wrapper).find(close).click(function() { AudioEye.focusElement(return_target); }); // SET OUR FOCUS AND TAB TRAP AudioEye.focusElement($ae(wrapper).find(close)); AudioEye.modals.enableTabLoop(wrapper); //CLEAR INTERVAL if (modal_interval > 10000) { window.clearInterval(modal_interval); } } }, 300); }); } //-------------------------------------------------------------------------------------------------------------------------------- // AE - Calculator modal sliders [MAS-182] api.hideFromAT('#fedCalculator .slider'); api.hideFromAT('#fedCalculator .icon.moneySm'); api.hideFromAT('#fedCalculator .icon.moneyLg'); api.hideFromAT('#fedCalculator .icon.numberSm'); api.hideFromAT('#fedCalculator .icon.numberLg'); api.hideFromAT('#fedCalculator .icon.percentSm'); api.hideFromAT('#fedCalculator .icon.percentLg'); ele.outerFind('#fedCalculator .ui-slider-handle').removeAttr('tabindex'); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Modal focus [MAS-325] ele.outerFind('.bootbox-close-button').removeAttr('aria-hidden'); ele.outerFind('.obLogin .confirm').on('keydown', function(e) { if(e.keyCode == 13 || e.keyCode == 32) { console.log('keydown'); e.preventDefault(); this.click(); } }).click(function() { setTimeout(function() { AudioEye.focusElement('.bootbox-close-button'); AudioEye.modals.enableTabLoop('.modal-content'); }, 1000); }); //-------------------------------------------------------------------------------------------------------------------------------- // AE - Confirm modals [MAS-386] // AE - Confirm Modal Focus update [MAS-724] ele.outerFind('a.confirm[href], a.warn[href]').on('keydown', function(e) { if(e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); this.click(); } }).click(function() { var joe_return = $ae(this); setTimeout(function() { AudioEye.modals.enableTabLoop('.bootbox-confirm .modal-dialog'); ele.outerFind('.bootbox-confirm .modal-footer button[data-bb-handler="cancel"], .bootbox-confirm .modal-footer button.bootbox-cancel, .bootbox-confirm button.bootbox-close-button').click(function() { setTimeout(function() { AudioEye.focusElement(joe_return); }, 100); }); }, 100); }); ele.outerFind('button.bootbox-close-button').attr('aria-label', 'Close'); }); Explore your accessibility options close carousel