PageSourceSearch

https://radiobubamara.mk/wp-content/themes/proradio/js/skip-link-focus-fix.js?ver=20151215

js radiobubamara.mk collected 2026-10-05 07:34:30 UTC 743 bytes, 28 lines download raw bytes

1/**
2 * Makes "skip to content" link work correctly in IE9, Chrome, and Opera
3 * for better accessibility.
4 *
5 * @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/
6 */
7
8( function() {
9	"use strict";
10
11	var ua = navigator.userAgent.toLowerCase();
12
13	if ( ( ua.indexOf( 'webkit' ) > -1 || ua.indexOf( 'opera' ) > -1 || ua.indexOf( 'msie' ) > -1 ) &&
14		document.getElementById && window.addEventListener ) {
15
16		window.addEventListener( 'hashchange', function() {
17			var element = document.getElementById( location.hash.substring( 1 ) );
18
19			if ( element ) {
20				if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.nodeName ) ) {
21					element.tabIndex = -1;
22				}
23
24				element.focus();
25			}
26		}, false );
27	}
28} )();

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.