PageSourceSearch

https://www.weareliines.com/wp-content/themes/modern/assets/js/skip-link-focus-fix.js?ver=2.6.1

js weareliines.com collected 2026-10-03 00:05:09 UTC 832 bytes, 58 lines download raw bytes

1/**
2 * File skip-link-focus-fix.js
3 *
4 * Helps with accessibility for keyboard only users.
5 *
6 * Learn more: https://git.io/vWdr2
7 *
8 * @package    Modern
9 * @copyright  WebMan Design, Oliver Juhas
10 *
11 * @since    1.0.0
12 * @version  2.3.0
13 */
14
15
16
17
18
19( function() {
20
21	'use strict';
22
23
24
25
26
27	var
28		isIe = /(trident|msie)/i.test( navigator.userAgent );
29
30	if ( isIe && document.getElementById && window.addEventListener ) {
31		window.addEventListener( 'hashchange', function() {
32
33			var
34				id = location.hash.substring( 1 ),
35				element;
36
37			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
38				return;
39			}
40
41			element = document.getElementById( id );
42
43			if ( element ) {
44				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
45					element.tabIndex = -1;
46				}
47
48				element.focus();
49			}
50
51		}, false );
52	}
53
54
55
56
57
58} )();

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.