PageSourceSearch

https://diamondresortphuket.com/wp-content/themes/kinsley/assets/js/skip-link-focus-fix.js?ver=20151215

js diamondresortphuket.com collected 2026-09-30 16:51:49 UTC 712 bytes, 33 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( function( $ ) {
9	'use strict';
10	
11	var isIe = /(trident|msie)/i.test( navigator.userAgent );
12
13	if ( isIe && document.getElementById && window.addEventListener ) {
14		window.addEventListener( 'hashchange', function() {
15			var id = location.hash.substring( 1 ),
16				element;
17
18			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
19				return;
20			}
21
22			element = document.getElementById( id );
23
24			if ( element ) {
25				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
26					element.tabIndex = -1;
27				}
28
29				element.focus();
30			}
31		}, false );
32	}
33} )( jQuery );

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.