PageSourceSearch

https://rachelparish.com/_static/??-eJx9jEEOwjAMBD+EMa0EFQfEW0KaBj…PN3EOXh1oLdTPHP81dcx9u5lkvTNee2Ox0P7QvPn0iu

js rachelparish.com collected 2026-10-08 19:04:40 UTC 4,315 bytes, 127 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( function() {
3	var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
4	    is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
5	    is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
6
7	if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
8		window.addEventListener( 'hashchange', function() {
9			var element = document.getElementById( location.hash.substring( 1 ) );
10
11			if ( element ) {
12				if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
13					element.tabIndex = -1;
14				}
15				element.focus();
16			}
17		}, false );
18	}
19})();
20;
21/**
22 * navigation.js
23 *
24 * Handles toggling the navigation menu for small screens.
25 */
26( function( $ ) {
27
28	$( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a' ).append( '<button class="dropdown-toggle" aria-expanded="false"/>' );
29
30	$( '.menu-toggle' ).click( function() {
31		$( '#site-navigation' ).toggleClass( 'toggle-on' );
32	} );
33
34} )( jQuery );
35;
36( function( $ ) {
37
38	/**
39	 * A function to add classes to body depending on window width.
40	 */
41	function body_class() {
42
43		window_width = $( window ).width();
44		$( 'body' ).removeClass( 'small-screen medium-screen large-screen' );
45		if ( window_width >= 1020 ) {
46			$( 'body' ).addClass( 'small-screen medium-screen large-screen' );
47		} else if ( window_width >= 768 ) {
48			$( 'body' ).addClass( 'small-screen medium-screen' );
49		} else if ( window_width >= 600 ) {
50			$( 'body' ).addClass( 'small-screen' );
51		}
52
53	}
54
55	/**
56	 * A function to move the hero image behind the header.
57	 */
58	function hero_image() {
59
60		var body, header, header_height, hero, window_width;
61
62		body = $( 'body' );
63		header = $( '.site-header' );
64		header_height = header.outerHeight();
65		if ( $( '.site-top-content' ).length ) {
66			header_height = header_height - $( '.site-top-content' ).outerHeight();
67		}
68		hero = $( '.hero' );
69		window_width = $( window ).width();
70
71		if ( body.hasClass( 'hero-image' ) && window_width >= 1230 ) {
72			header.css( 'margin-bottom', - header_height );
73			if ( hero.hasClass( 'with-featured-image' ) ) {
74				hero.css( 'padding-top', 216 + header_height );
75			} else {
76				hero.css( 'padding-top', 144 + header_height );
77			}
78		} else if ( body.hasClass( 'hero-image' ) && window_width >= 1020 ) {
79			header.css( 'margin-bottom', - header_height );
80			if ( hero.hasClass( 'with-featured-image' ) ) {
81				hero.css( 'padding-top', 144 + header_height );
82			} else {
83				hero.css( 'padding-top', 96 + header_height );
84			}
85		} else {
86			header.css( 'margin-bottom', '' );
87			hero.css( 'padding-top', '' );
88		}
89
90		header.fadeIn( 250 );
91
92	}
93
94	$( document ).ready( function() {
95
96		body_class();
97		hero_image();
98
99		/* Add dropdown toggle to Custom Menus Widget items */
100		$( '.widget_nav_menu .page_item_has_children > a, .widget_nav_menu .menu-item-has-children > a' ).append( '<button class="dropdown-toggle" aria-expanded="false"/>' );
101
102		/* Toggle child menu items */
103		$( '.dropdown-toggle' ).click( function( e ) {
104			e.preventDefault();
105			$( this ).toggleClass( 'toggle-on' );
106			$( this ).parent( 'a' ).toggleClass( 'toggle-on' );
107			$( this ).parent().next( '.children, .sub-menu' ).toggleClass( 'toggle-on' );
108			$( this ).attr( 'aria-expanded', $( this ).attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
109			// Close any other open menus
110			var sibling_buttons = $( this ).parents( 'li' ).siblings().find( 'button' );
111			sibling_buttons.removeClass( 'toggle-on' );
112			sibling_buttons.parent( 'a' ).removeClass( 'toggle-on' );
113			sibling_buttons.parent().next( '.children, .sub-menu' ).removeClass( 'toggle-on' );
114			sibling_buttons.attr( 'aria-expanded', sibling_buttons.attr( 'aria-expanded' ) === 'true' ? 'false' : 'true' );
115		} );
116
117	} )
118
119	$( window ).resize( function() {
120
121		body_class();
122		hero_image();
123
124	} );
125
126} )( jQuery );
127;

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.