PageSourceSearch

https://www.childcareaware.org/wp-content/themes/CCA/assets/js/scripts.js?ver=2022-11-29-083858pmEST

js childcareaware.org collected 2026-10-02 09:49:10 UTC 1,164 bytes, 35 lines download raw bytes

1jQuery(document).foundation();
2/* These functions make sure WordPress and Foundation play nice together. */
3
4jQuery(document).ready(function() {
5
6	//open PDFs in a new window please
7	jQuery('a[href$=".pdf"]').prop('target', '_blank');
8	jQuery('a[href$=".jpeg"]').prop('target', '_blank');
9	jQuery('a[href$=".jpg"]').prop('target', '_blank');
10
11	Foundation.Keyboard.register('DropdownMenu',{
12	// 'ENTER': 'open',
13		'SPACE': 'open',
14	});
15
16	// Remove empty P tags created by WP inside of Accordion and Orbit
17	jQuery('.accordion p:empty, .orbit p:empty').remove();
18
19	// Makes sure last grid item floats left
20	jQuery('.archive-grid .columns').last().addClass( 'end' );
21
22	// On story hub pages, don't insert the flex-video div, in order to prevent content flicker / FOUC as the script runs.
23	// So only run this script on non-story-hub pages.
24	let excludeStoryHub = document.querySelector('body.page-template-template-story-hub');
25	if ( ! excludeStoryHub ) {
26		// Adds Flex Video to YouTube and Vimeo Embeds	
27		jQuery('iframe[src*="youtube.com"], iframe[src*="vimeo.com"]').wrap("<div class='flex-video'/>");
28	}
29
30	/* START IFRAME HEIGHT */
31
32
33	/* END IFRAME HEIGHT */
34
35});

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.