PageSourceSearch

https://thenerdygirlexpress.com/_static/??-eJyNzUEOgjAQheELWSskSlw…lsoeB1oMol4MF12i5iOXt/mOT6qprrXze16qT9gqIu8

js thenerdygirlexpress.com collected 2026-10-02 08:09:58 UTC 12,318 bytes, 428 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
4	var debounce = function( func, wait ) {
5		var timeout, args, context, timestamp;
6		return function() {
7			context = this;
8			args = [].slice.call( arguments, 0 );
9			timestamp = new Date();
10			var later = function() {
11				var last = ( new Date() ) - timestamp;
12				if ( last < wait ) {
13					timeout = setTimeout( later, wait - last );
14				} else {
15					timeout = null;
16					func.apply( context, args );
17				}
18			};
19			if ( ! timeout ) {
20				timeout = setTimeout( later, wait );
21			}
22		};
23	};
24
25	function menuDropdownToggle() {
26		$( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a, .widget_nav_menu .page_item_has_children > a, .widget_nav_menu .menu-item-has-children > a' ).each( function() {
27			if ( ! $( this ).find( '.dropdown-toggle' ).length ) {
28				$( this ).append( '<button class="dropdown-toggle" aria-expanded="false"/>' );
29			}
30		} );
31
32		if ( $( window ).width() > 839 ) {
33			$( '.main-navigation .dropdown-toggle' ).remove();
34		}
35	}
36
37	$( window ).load( menuDropdownToggle ).resize( debounce( menuDropdownToggle, 500 ) );
38
39	$( window ).load( function() {
40		$( '.dropdown-toggle' ).click( function( event ) {
41			event.preventDefault();
42			$( this ).toggleClass( 'toggled' );
43			$( this ).parent().next( '.children, .sub-menu' ).toggleClass( 'toggled' );
44			$( this ).attr( 'aria-expanded', $( this ).attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
45		} );
46	} );
47
48} )( jQuery );
49
50( function() {
51
52	var container, button, menu;
53
54	container = document.getElementById( 'site-navigation' );
55	if ( ! container ) {
56		return;
57	}
58
59	button = container.getElementsByTagName( 'button' )[0];
60	if ( 'undefined' === typeof button ) {
61		return;
62	}
63
64	menu = container.getElementsByTagName( 'ul' )[0];
65	if ( 'undefined' === typeof menu ) {
66		button.style.display = 'none';
67		return;
68	}
69	menu.setAttribute( 'aria-expanded', 'false' );
70
71	if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
72		menu.className += ' nav-menu';
73	}
74
75	button.onclick = function() {
76		if ( -1 !== container.className.indexOf( 'toggled' ) ) {
77			container.className = container.className.replace( ' toggled', '' );
78			button.setAttribute( 'aria-expanded', 'false' );
79			menu.setAttribute( 'aria-expanded', 'false' );
80		} else {
81			container.className += ' toggled';
82			button.setAttribute( 'aria-expanded', 'true' );
83			menu.setAttribute( 'aria-expanded', 'true' );
84		}
85	};
86
87} )();;
88( function( $ ) {
89
90	var debounce = function( func, wait ) {
91		var timeout, args, context, timestamp;
92		return function() {
93			context = this;
94			args = [].slice.call( arguments, 0 );
95			timestamp = new Date();
96			var later = function() {
97				var last = ( new Date() ) - timestamp;
98				if ( last < wait ) {
99					timeout = setTimeout( later, wait - last );
100				} else {
101					timeout = null;
102					func.apply( context, args );
103				}
104			};
105			if ( ! timeout ) {
106				timeout = setTimeout( later, wait );
107			}
108		};
109	};
110
111	var featuredContent, header, primary;
112	featuredContent = $( '#featured-content' );
113	header = $( '#masthead' );
114	primary = $( '#primary' );
115
116	if ( ! featuredContent.length ) {
117		return;
118	}
119
120	/* Use Featured Image as a Background Image */
121	featuredContent.find( '.hentry' ).each( function() {
122		if ( ! $( this ).hasClass( 'background-done' ) && $( this ).hasClass( 'has-post-thumbnail' ) ) {
123			var entryImage = $( this ).find( '.post-thumbnail' ),
124			    thumbnail = $( this ).find( 'img' );
125			entryImage.css( 'background-image', 'url(' + thumbnail.attr( 'src' ) + ')' );
126			$( this ).addClass( 'background-done' );
127		}
128	} );
129
130	if ( ! header.length || ! primary.length ) {
131		return;
132	}
133
134	/* Move Featured Content in the DOM depending on the screen size */
135	function featuredContentPosition() {
136		if ( $( window ).width() > 959 ) {
137			featuredContent.insertBefore( header );
138		} else {
139			featuredContent.insertBefore( primary );
140		}
141		featuredContent.show();
142	}
143
144	$( window ).load( featuredContentPosition ).resize( debounce( featuredContentPosition, 500 ) );
145
146} )( jQuery );
147;
148( function( $ ) {
149
150	var debounce = function( func, wait ) {
151		var timeout, args, context, timestamp;
152		return function() {
153			context = this;
154			args = [].slice.call( arguments, 0 );
155			timestamp = new Date();
156			var later = function() {
157				var last = ( new Date() ) - timestamp;
158				if ( last < wait ) {
159					timeout = setTimeout( later, wait - last );
160				} else {
161					timeout = null;
162					func.apply( context, args );
163				}
164			};
165			if ( ! timeout ) {
166				timeout = setTimeout( later, wait );
167			}
168		};
169	};
170
171	function headerStyle() {
172		var featuredContent, featuredContentHeight;
173
174		featuredContent = $( '#featured-content' );
175		featuredContentHeight = 0;
176		if ( featuredContent.length ) {
177			featuredContentHeight = featuredContent.outerHeight();
178		}
179
180		if ( $( '.site-branding' ).outerWidth() === 0 ) {
181			$( 'body' ).addClass( 'no-branding' );
182		} else {
183			$( 'body' ).removeClass( 'no-branding' );
184		}
185
186		if ( $( '.site-branding' ).outerWidth() + $( '.main-navigation' ).outerWidth() + 15 >= $( '.site-header-inner' ).outerWidth() && $( window ).width() > 839 ) {
187			$( 'body' ).addClass( 'long-menu' );
188			$( '.main-navigation' ).css( 'margin-top', '' );
189		} else if ( $( window ).width() < 840 ) {
190			$( 'body' ).removeClass( 'long-menu' );
191			$( '.main-navigation' ).css( 'margin-top', '' );
192		} else {
193			$( 'body' ).removeClass( 'long-menu' );
194			$( '.main-navigation' ).css( 'margin-top', ( $( '.site-header' ).height() - $( '.main-navigation' ).outerHeight() ) / 2 );
195		}
196
197		$( window ).scroll( function() {
198			if ( $( document.body ).hasClass( 'unfixed-header' ) ) {
199				return;
200			}
201
202			if ( $( document ).scrollTop() > featuredContentHeight && $( window ).width() > 959 ) {
203				$( document.body ).addClass( 'fixed' ).css( 'padding-top', $( '#masthead' ).outerHeight() );
204			} else {
205				$( document.body ).removeClass( 'fixed' ).css( 'padding-top', '' );
206			}
207		} );
208	}
209
210	$( window ).load( headerStyle ).resize( debounce( headerStyle, 500 ) );
211
212} )( jQuery );
213;
214( function( $ ) {
215
216	$( window ).load( function() {
217
218		function searchAddClass() {
219			$( this ).closest( '.search-form' ).addClass( 'hover' );
220		}
221		function searchRemoveClass() {
222			$( this ).closest( '.search-form' ).removeClass( 'hover' );
223		}
224		var searchSubmit = $( '.search-submit' );
225		searchSubmit.hover( searchAddClass, searchRemoveClass );
226		searchSubmit.focusin( searchAddClass );
227		searchSubmit.focusout( searchRemoveClass );
228
229	} );
230
231} )( jQuery );
232
233( function() {
234
235	var container, button, form, siteHeaderInner, siteNavigation, div;
236	var windowWidth = window.innerWidth;
237
238	container = document.getElementById( 'search-header' );
239	if ( ! container ) {
240		return;
241	}
242
243	button = container.getElementsByTagName( 'button' )[0];
244	if ( 'undefined' === typeof button ) {
245		return;
246	}
247
248	form = container.getElementsByTagName( 'form' )[0];
249	if ( 'undefined' === typeof form ) {
250		button.style.display = 'none';
251		return;
252	}
253	form.setAttribute( 'aria-expanded', 'false' );
254
255	siteHeaderInner = document.getElementsByClassName( 'site-header-inner' )[0];
256
257	button.onclick = function() {
258		if ( -1 !== container.className.indexOf( 'toggled' ) ) {
259			document.body.className = document.body.className.replace( ' search-toggled', '' );
260			container.className = container.className.replace( ' toggled', '' );
261			button.setAttribute( 'aria-expanded', 'false' );
262			form.setAttribute( 'aria-expanded', 'false' );
263		} else {
264			document.body.className += ' search-toggled';
265			container.className += ' toggled';
266			button.setAttribute( 'aria-expanded', 'true' );
267			form.setAttribute( 'aria-expanded', 'true' );
268		}
269	};
270
271	siteNavigation = document.getElementById( 'site-navigation' );
272	if ( ! siteNavigation ) {
273		return;
274	}
275
276	div = siteNavigation.getElementsByTagName( 'div' )[0];
277
278	function searchPosition() {
279		if ( window.innerWidth > 599 ) {
280			siteHeaderInner.appendChild( container );
281			document.body.className = document.body.className.replace( ' search-toggled', '' );
282			container.className = container.className.replace( ' toggled', '' );
283			button.setAttribute( 'aria-expanded', 'false' );
284			form.setAttribute( 'aria-expanded', 'false' );
285		} else {
286			div.insertBefore( container, div.firstChild );
287			document.body.className += ' search-toggled';
288			container.className += ' toggled';
289			button.setAttribute( 'aria-expanded', 'true' );
290			form.setAttribute( 'aria-expanded', 'true' );
291		}
292	}
293
294	window.onload = function() {
295		searchPosition();
296	};
297
298	window.onresize = function() {
299		// Prevent the Android keyboard from triggering searchPosition
300		if ( windowWidth !== window.innerWidth ) {
301			searchPosition();
302		}
303
304		windowWidth = window.innerWidth;
305	}
306
307} )();
308;
309( function( $ ) {
310
311	var debounce = function( func, wait ) {
312		var timeout, args, context, timestamp;
313		return function() {
314			context = this;
315			args = [].slice.call( arguments, 0 );
316			timestamp = new Date();
317			var later = function() {
318				var last = ( new Date() ) - timestamp;
319				if ( last < wait ) {
320					timeout = setTimeout( later, wait - last );
321				} else {
322					timeout = null;
323					func.apply( context, args );
324				}
325			};
326			if ( ! timeout ) {
327				timeout = setTimeout( later, wait );
328			}
329		};
330	};
331
332	function authorInfo() {
333		var authorInfo = $( '.author-info' );
334		if ( authorInfo.length ) {
335			if ( $( window ).width() > 959 ) {
336				authorInfo.prependTo( '.widget-area' );
337			} else {
338				authorInfo.insertAfter( '.entry-content' );
339			}
340		}
341	}
342
343	$( window ).load( authorInfo ).resize( debounce( authorInfo, 500 ) );
344
345	$( window ).load( function() {
346		// Move Sharedaddy & Related Posts
347		var sharedaddy = $( '.sd-sharing-enabled:not(#jp-post-flair), .sd-like.jetpack-likes-widget-wrapper, .sd-rating' ),
348		    relatedPosts = $( '#jp-relatedposts' );
349		if ( sharedaddy.length ) {
350			sharedaddy.appendTo( '.entry-footer' );
351		}
352		if ( relatedPosts.length ) {
353			$( "#jp-post-flair" ).insertAfter( '.entry-footer' );
354		}
355
356		// Make sure tables don't overflow in Entry Content.
357		$( '.entry-content' ).find( 'table' ).each( function() {
358			if ( $( this ).width() > $( this ).parent().width() ) {
359				$( this ).css( 'table-layout', 'fixed' );
360			}
361		} );
362	} );
363
364} )( jQuery );
365;
366( function() {
367
368	var sidebar, button, footer;
369
370	sidebar = document.getElementById( 'secondary' );
371	if ( ! sidebar ) {
372		return;
373	}
374
375	button = document.getElementsByClassName( 'sidebar-toggle' )[0];
376	if ( 'undefined' === typeof button ) {
377		return;
378	}
379
380	footer = document.getElementById( 'colophon' );
381
382	sidebar.setAttribute( 'aria-expanded', 'false' );
383
384	button.onclick = function() {
385		if ( -1 !== sidebar.className.indexOf( 'toggled' ) ) {
386			sidebar.className = sidebar.className.replace( ' toggled', '' );
387			button.className = button.className.replace( ' toggled', '' );
388			footer.className = footer.className.replace( ' sidebar-toggled', '' );
389			sidebar.setAttribute( 'aria-expanded', 'false' );
390			button.setAttribute( 'aria-expanded', 'false' );
391		} else {
392			sidebar.className += ' toggled';
393			button.className += ' toggled';
394			footer.className += ' sidebar-toggled';
395			sidebar.setAttribute( 'aria-expanded', 'true' );
396			button.setAttribute( 'aria-expanded', 'true' );
397		}
398	};
399
400} )();
401;
402( function() {
403	var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
404	    is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
405	    is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
406
407	if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
408		window.addEventListener( 'hashchange', function() {
409			var id = location.hash.substring( 1 ),
410				element;
411
412			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
413				return;
414			}
415
416			element = document.getElementById( id );
417
418			if ( element ) {
419				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
420					element.tabIndex = -1;
421				}
422
423				element.focus();
424			}
425		}, false );
426	}
427})();
428;

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.