Changeset 28758
- Timestamp:
- 06/16/2014 06:21:01 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r28694 r28758 257 257 } 258 258 259 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20140 319', true );259 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20140616', true ); 260 260 } 261 261 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' ); -
trunk/src/wp-content/themes/twentyfourteen/js/functions.js
r28598 r28758 95 95 96 96 _window.on( 'scroll.twentyfourteen', function() { 97 if ( ( window.scrollY > mastheadOffset ) && ( mastheadHeight < 49 )) {97 if ( _window.scrollTop() > mastheadOffset && mastheadHeight < 49 ) { 98 98 body.addClass( 'masthead-fixed' ); 99 99 } else {
Note: See TracChangeset
for help on using the changeset viewer.