1( function() { 2 var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 3 is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 4 is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 5 6 if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) { 7 window.addEventListener( 'hashchange', function() { 8 var id = location.hash.substring( 1 ), 9 element; 10 11 if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 12 return; 13 } 14 15 element = document.getElementById( id ); 16 17 if ( element ) { 18 if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 19 element.tabIndex = -1; 20 } 21 22 element.focus(); 23 } 24 }, false ); 25 } 26})();
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.