PageSourceSearch

https://edtechbites.com/_static/??wp-content/plugins/coblocks/dist…/js/skip-link-focus-fix.js?m=1719276502

js edtechbites.com collected 2026-10-01 14:08:47 UTC 1,470 bytes, 38 lines download raw bytes

1(()=>{const e=document.querySelectorAll(".coblocks-animate");if("IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(e.target.classList.add(e.target.dataset.coblocksAnimation),t.unobserve(e.target))}))}),{threshold:[.15]});e.forEach((e=>{t.observe(e)}))}else e.forEach((e=>{e.classList.remove("coblocks-animate"),delete e.dataset.coblocksAnimation}))})();;
2/**
3 * Makes "skip to content" link work correctly in IE9, Chrome, and Opera
4 * for better accessibility.
5 *
6 * @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/
7 */
8
9 ( function() {
10	var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
11		isOpera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
12		isIE     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
13
14	if ( ( isWebkit || isOpera || isIE ) && document.getElementById && window.addEventListener ) {
15		window.addEventListener( 'hashchange', function() {
16			var id = location.hash.substring( 1 ),
17				element;
18
19			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
20				return;
21			}
22
23			element = document.getElementById( id );
24
25			if ( element ) {
26				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
27					element.tabIndex = -1;
28				}
29
30				element.focus();
31
32				// Repositions the window on jump-to-anchor to account for admin bar and border height.
33				window.scrollBy( 0, -53 );
34			}
35		}, false );
36	}
37} )();
38;

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.