1jQuery(document).ready(function($) { 2 'use strict'; 3 4 var sbe_shortcode = { 5 init: function() { 6 if ( $( '.sbe-shortcode-error' ).length ) { 7 $('html,body').animate({ 8 scrollTop: $("#sbe-shortcode-subscribe-form").offset().top - 20 9 }, 'slow' ); 10 setTimeout(function() { 11 $('.sbe-shortcode-error').attr('aria-live', 'assertive'); 12 $('.sbe-shortcode-single-error').first().attr('tabindex', '-1').focus(); 13 }, 500); 14 } 15 16 var updated = $( '#sbe-shortcode-updated' ); 17 if ( updated.length ) { 18 $('html,body').animate({ 19 scrollTop: updated.first().offset().top - updated.first().outerHeight() 20 }, 'slow' ); 21 setTimeout(function() { 22 $(updated).find('p[tabindex="-1"]').first().attr('aria-live', 'assertive').focus(); 23 }, 500); 24 } 25 } 26 }; 27 28 sbe_shortcode.init(); 29});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.