| 1 |
/* globals jQuery */ |
| 2 |
jQuery( |
| 3 |
function( $ ) { |
| 4 |
var highlight, input, tab; |
| 5 |
|
| 6 |
if ( window.location.hash.substr( 'stream-highlight-' ) ) { |
| 7 |
highlight = window.location.hash.replace( 'stream-highlight-', '' ); |
| 8 |
input = $( ':input' + highlight ); |
| 9 |
|
| 10 |
window.location.hash = ''; |
| 11 |
|
| 12 |
if ( input.length ) { |
| 13 |
if ( $( '#wpseo-tabs' ).length ) { |
| 14 |
tab = input.parents( '.wpseotab' ).first().attr( 'id' ); |
| 15 |
window.location.hash = '#top#' + tab; |
| 16 |
} |
| 17 |
|
| 18 |
jQuery( document ).ready( |
| 19 |
function() { |
| 20 |
setTimeout( |
| 21 |
function() { |
| 22 |
$( 'body,html' ).animate( |
| 23 |
{ scrollTop: input.offset().top - 50 }, |
| 24 |
'slow', |
| 25 |
function() { |
| 26 |
input.animate( { backgroundColor: 'yellow' }, 'slow' ); |
| 27 |
} |
| 28 |
); |
| 29 |
}, 500 |
| 30 |
); |
| 31 |
} |
| 32 |
); |
| 33 |
} |
| 34 |
} |
| 35 |
} |
| 36 |
); |
| 37 |
|