Ticket #26031: 26031.2.diff
File 26031.2.diff, 925 bytes (added by , 12 years ago) |
---|
-
functions.js
1 1 ( function( $ ) { 2 2 var body = $( 'body' ), 3 3 _window = $( window ); 4 4 5 5 // Enable menu toggle for small screens. 6 6 ( function() { … … 48 48 // Search toggle. 49 49 $( '.search-toggle' ).on( 'click.twentyfourteen', function() { 50 50 var that = $( this ), 51 51 wrapper = $( '.search-box-wrapper' ); 52 52 53 53 that.toggleClass( 'active' ); 54 54 wrapper.toggleClass( 'hide' ); … … 65 65 * The callback on the scroll event is only added if there is a header 66 66 * image and we are not on mobile. 67 67 */ 68 68 if ( _window.width() > 781 ) { 69 69 var mastheadHeight = $( '#masthead' ).height(), 70 70 toolbarOffset, mastheadOffset; 71 71