/** * File skip-link-focus-fix.js. * * Helps with accessibility for keyboard only users. * * Learn more: https://git.io/vWdr2 */ ( function() { var isIe = /(trident|msie)/i.test( navigator.userAgent ); if ( isIe && document.getElementById && window.addEventListener ) { window.addEventListener( 'hashchange', function() { var id = location.hash.substring( 1 ), element; if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { return; } element = document.getElementById( id ); if ( element ) { if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { element.tabIndex = -1; } element.focus(); } }, false ); } } )();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
custom.js | File | 14.8 KB | 0644 |
|
custom.min.js | File | 8.9 KB | 0644 |
|
html5shiv.js | File | 10.41 KB | 0644 |
|
html5shiv.min.js | File | 2.58 KB | 0644 |
|
jquery.slicknav.js | File | 21.15 KB | 0644 |
|
jquery.slicknav.min.js | File | 8.22 KB | 0644 |
|
navigation.js | File | 5.92 KB | 0644 |
|
skip-link-focus-fix.js | File | 716 B | 0644 |
|
theia-sticky-sidebar.js | File | 16.36 KB | 0644 |
|
theia-sticky-sidebar.min.js | File | 5.3 KB | 0644 |
|