Changeset 24070
- Timestamp:
- 04/23/2013 04:30:03 PM (11 years ago)
- Location:
- trunk/wp-content/themes/twentythirteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/functions.php
r24036 r24070 225 225 226 226 // Loads JavaScript file with functionality specific to Twenty Thirteen. 227 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '201304 16', true );227 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20130423', true ); 228 228 229 229 // Loads our main stylesheet. -
trunk/wp-content/themes/twentythirteen/js/functions.js
r24005 r24070 53 53 _window.on( 'scroll.twentythirteen', function() { 54 54 var scrollOffset = scrollOffsetMethod ? document.documentElement.scrollTop : window.scrollY; 55 55 56 56 if ( scrollOffset > navbarOffset ) 57 57 html.addClass( 'navbar-fixed' ); … … 101 101 */ 102 102 _window.on( 'hashchange.twentythirteen', function() { 103 var element = $( location.hash);103 var element = document.getElementById( location.hash.substring( 1 ) ); 104 104 105 105 if ( element ) { 106 if ( ! /^(?:a|select|input|button )$/i.test( element.tagName ) )107 element. attr( 'tabindex', -1 );106 if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) 107 element.tabIndex = -1; 108 108 109 109 element.focus();
Note: See TracChangeset
for help on using the changeset viewer.