PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/themes/genesis/lib/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/themes/genesis/lib/js/skip-links.js

/**
 * 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.
 * Affects Internet Explorer and Chrome
 * https://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/
 *
 * @package Genesis\JS
 * @author StudioPress
 */

/**
 * Callback to fix skip links focus.
 *
 * @since 2.2.0
 */
function ga_skiplinks() {
	'use strict';
	var fragmentID = location.hash.substring( 1 );
	if ( ! fragmentID ) {
		return;
	}

	var element = document.getElementById( fragmentID );
	if ( element ) {
		if ( false === /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
			element.tabIndex = -1;
		}
		element.focus();
	}
}

if ( window.addEventListener ) {
	window.addEventListener( 'hashchange', ga_skiplinks, false );
} else { // IE8 and earlier.
	window.attachEvent( 'onhashchange', ga_skiplinks );
}