1/** 2 * Makes "skip to content" link work correctly in IE9, Chrome, and Opera 3 * for better accessibility. 4 * 5 * @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/ 6 */ 7 8( function() { 9 "use strict"; 10 var ua = navigator.userAgent.toLowerCase(); 11 12 if ( ( ua.indexOf( 'webkit' ) > -1 || ua.indexOf( 'opera' ) > -1 || ua.indexOf( 'msie' ) > -1 ) && 13 document.getElementById && window.addEventListener ) { 14 15 window.addEventListener( 'hashchange', function() { 16 var element = document.getElementById( location.hash.substring( 1 ) ); 17 18 if ( element ) { 19 if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.nodeName ) ) { 20 element.tabIndex = -1; 21 } 22 23 element.focus(); 24 } 25 }, false ); 26 } 27} )();
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.