| Server IP : 217.160.0.244 / Your IP : 216.73.216.25 Web Server : Apache System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64 User : u100174116 ( 6746176) PHP Version : 8.5.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/13/d818981593/htdocs/GutTrechow/wp-content/themes/genesis/lib/js/ |
Upload File : |
/**
* 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 );
}