PageSourceSearch

https://www.seineenpartage.fr/wp-content/themes/biecowp/js/skip-link-focus-fix.js?ver=6.4.12

js seineenpartage.fr collected 2026-10-02 12:47:04 UTC 826 bytes, 24 lines download raw bytes

1/**
2 * 20. skip-link-focus-fix.js
3 *
4 * Skin Link Focus Fix
5 */
6( function() {
7    var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
8        is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
9        is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
10
11    if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
12        window.addEventListener( 'hashchange', function() {
13            var element = document.getElementById( location.hash.substring( 1 ) );
14
15            if ( element ) {
16                if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
17                    element.tabIndex = -1;
18                }
19
20                element.focus();
21            }
22        }, false );
23    }
24})();

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.