diff --git a/wp-content/themes/twentythirteen/js/functions.js b/wp-content/themes/twentythirteen/js/functions.js
index 78c8c84..147f5c2 100644
|
a
|
b
|
|
| 49 | 49 | button.on( 'click.twentythirteen', function() { |
| 50 | 50 | nav.toggleClass( 'toggled-on' ); |
| 51 | 51 | } ); |
| | 52 | |
| | 53 | // Fix sub-menus for touch devices. |
| | 54 | if ( 'ontouchstart' in window ) { |
| | 55 | menu.find( '.menu-item-has-children > a' ).on( 'touchstart.twentythirteen', function( e ) { |
| | 56 | var el = $( this ).parent( 'li' ); |
| | 57 | |
| | 58 | if ( ! el.hasClass( 'focus' ) ) { |
| | 59 | e.preventDefault(); |
| | 60 | el.toggleClass( 'focus' ); |
| | 61 | el.siblings( '.focus' ).removeClass( 'focus' ); |
| | 62 | } |
| | 63 | } ); |
| | 64 | } |
| 52 | 65 | |
| 53 | 66 | // Better focus for hidden submenu items for accessibility. |
| 54 | 67 | menu.find( 'a' ).on( 'focus.twentythirteen blur.twentythirteen', function() { |