PageSourceSearch

https://judgebrianwarren.com/wp-content/themes/politicalwp/js/skip-link-focus-fix.js?ver=1.0.0

js judgebrianwarren.com collected 2026-10-10 01:41:40 UTC 855 bytes, 26 lines download raw bytes

1
2
3/**
4 * 20. skip-link-focus-fix.js
5 *
6 * Skin Link Focus Fix
7 */
8( function() {
9    var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
10        is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
11        is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
12
13    if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
14        window.addEventListener( 'hashchange', function() {
15            var element = document.getElementById( location.hash.substring( 1 ) );
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.