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