PageSourceSearch

https://www.mybigfathalalblog.com/wp-content/themes/genesis/lib/js/skip-links.js?ver=4.3.1

js mybigfathalalblog.com collected 2026-10-05 09:33:30 UTC 781 bytes, 23 lines download raw bytes

1/**
2 * This file fixes the browser bug for skip-links: While the visual focus of the browser shifts to the element being linked to, the input focus stays where it was.
3 * Affects Internet Explorer and Chrome
4 * http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/
5*/
6
7function ga_skiplinks() {
8    'use strict';
9    var element = document.getElementById( location.hash.substring( 1 ) );
10
11    if ( element ) {
12        if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
13            element.tabIndex = -1;
14        }
15        element.focus();
16    }
17}
18
19if ( window.addEventListener ) {
20    window.addEventListener( 'hashchange', ga_skiplinks, false );
21} else { // IE8 and earlier
22    window.attachEvent( 'onhashchange', ga_skiplinks, false );
23}

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.