1jQuery(document).ready(function($){ 2 jQuery(window).bind( 'grid:items:added', function( event, grid ){ 3 $(grid).find( '.vc_gitem-zone-a' ).each(function(){ 4 var $link = $(this).find( '.vc-zone-link' ), 5 $text = $(this).find( '.vc_gitem-zone-mini' ); 6 7 $link.removeAttr( 'title' ); 8 $text.appendTo( $link ); 9 }); 10 11 $(grid).find( '.vc_gitem-zone-b' ).attr( 'aria-hidden', 'true' ); 12 }); 13 14 jQuery( '.fancy-box-image img' ).each( function(){ 15 console.log( jQuery(this).attr( 'alt' ) ); 16 jQuery(this).attr( 'alt', '' ); 17 console.log( jQuery(this).attr( 'alt' ) ); 18 }); 19 20 jQuery( '.main-header-bar-navigation' ).removeClass( 'main-header-bar-navigation' ); 21 jQuery( '#primary-site-navigation > .main-navigation' ).addClass( 'nav-menu-wrapper' ); 22 jQuery( '#menu-main' ).addClass( 'nav-menu' ); 23 jQuery( '#menu-main > li' ).addClass( 'nav-item' ); 24 jQuery( '#menu-main > li > ul' ).addClass( 'sub-nav-group' ).wrap( '<div class="sub-nav"></div>'); 25 jQuery(".nav-menu-wrapper").accessibleMegaMenu({ 26 uuidPrefix: "accessible-megamenu", 27 menuClass: "nav-menu", 28 topNavItemClass: "nav-item", 29 panelClass: "sub-nav", 30 panelGroupClass: "sub-nav-group", 31 hoverClass: "hover", 32 focusClass: "focus", 33 openClass: "open" 34 }); 35 jQuery( '.menu-toggle' ).on( 'click', function(){ 36 if ( $(this).attr( 'aria-expanded' ) == 'false' ) { 37 $(this).attr( 'aria-expanded', 'true' ); 38 jQuery( '#primary-site-navigation' ).attr( 'aria-hidden', 'false' ); 39 } else { 40 $(this).attr( 'aria-expanded', 'false' ); 41 jQuery( '#primary-site-navigation' ).attr( 'aria-hidden', 'true' ); 42 } 43 44 }); 45 46 var windowWidth = 0; 47 48 function test() { 49 if ( jQuery(window).width() == windowWidth ) { 50 return; 51 } 52 windowWidth = jQuery(window).width(); 53 if ( jQuery( 'body' ).hasClass( 'ast-header-break-point' ) ) { 54 jQuery( '.menu-toggle' ).attr( 'aria-expanded', 'false' ); 55 jQuery( '#primary-site-navigation', ).attr( 'aria-hidden', 'true' ); 56 } else { 57 jQuery( '.menu-toggle' ).attr( 'aria-expanded', 'true' ); 58 jQuery( '#primary-site-navigation', ).attr( 'aria-hidden', 'false' ); 59 } 60 } 61 62 test(); 63 window.addEventListener('resize', test ); 64 65 66 jQuery( 'a[href="#primary-site-navigation"' ).on( 'click', function(e){ 67 e.preventDefault(); 68 jQuery( '#primary-site-navigation a' ).eq(0).focus(); 69 }); 70}); 71 72jQuery(window).on( 'load', function() { 73 jQuery( '#primary-menu .top-nav-submenu-toggle' ).each(function(){ 74 jQuery(this).html( '<span class="screen-reader-text">Toggle Submenu</span>' ); 75 }); 76}); 77 78/** Add aria-label to .g-recaptcha-response */ 79if ( 'undefined' != typeof( gform ) ) { 80 gform.addAction('gform_post_recaptcha_render', function (elem) { 81 $response = jQuery( elem ).find( '.g-recaptcha-response' ); 82 $response.attr( 'aria-hidden', 'true' ); 83 $response.attr( 'aria-label', 'Ignore this field.' ); 84 }); 85} 86 87/** 88 * External Links 89 */ 90( function( $ ) { 91 /** Open external links and files with extensions .pdf, .doc, .docx, .mp3, .m4a, and .wav in a
91new window. */ 92 var h = window.location.host.toLowerCase(); 93 $( 94 "a[href^='http']:not([href*='" + h + "' i]), " 95 + "form[action^='http']:not([action*='" + h + "' i]), " 96 + "a[href$='.doc' i], " 97 + "a[href$='.docx' i], " 98 + "a[href$='.m4a' i], " 99 + "a[href$='.mp3' i], " 100 + "a[href$='.pdf' i], " 101 + "a[href$='.wav' i]" 102 ).attr( 'target', '_blank' ).not( 'form' ).attr( 'rel', 'noopener' ); 103 104 /** Add classes to Phone, PDF and E-mail links for easier use. */ 105 $( 'a[href*=".pdf" i]' ).addClass( 'pdfLink' ); 106 $( 'a[href^="mailto:" i]').addClass( 'emailLink' ); 107 $( 'a[href^="tel:" i]').addClass( 'phoneLink' ); 108} )( jQuery ); 109 110/** 111 * Slider Revolution 112 * 113 * Fixes the missing alt text WAVE error on the background image. 114 */ 115( function() { 116 function fixAlts() { 117 document.querySelectorAll( '.wpb_revslider_element image_lists img:not([alt])' ).forEach( function( img ) { 118 img.setAttribute( 'alt', '' ); 119 } ); 120 } 121 if ( document.readyState === 'loading' ) { 122 document.addEventListener( 'DOMContentLoaded', fixAlts ); 123 } else { 124 fixAlts(); 125 } 126} )();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.