PageSourceSearch

https://theopiatemagazine.com/wp-content/themes/canard/js/search.js?ver=20150507

js theopiatemagazine.com collected 2026-10-02 07:56:14 UTC 1,501 bytes, 55 lines download raw bytes

1( function( $ ) {
2
3	$( window ).load( function() {
4
5		function searchAddClass() {
6			$( this ).closest( '.search-form' ).addClass( 'hover' );
7		}
8		function searchRemoveClass() {
9			$( this ).closest( '.search-form' ).removeClass( 'hover' );
10		}
11		var searchSubmit = $( '.search-submit' );
12		searchSubmit.hover( searchAddClass, searchRemoveClass );
13		searchSubmit.focusin( searchAddClass );
14		searchSubmit.focusout( searchRemoveClass );
15
16	} );
17
18} )( jQuery );
19
20( function() {
21
22	var container, button, form, siteHeaderInner, siteNavigation, div;
23
24	container = document.getElementById( 'search-header' );
25	if ( ! container ) {
26		return;
27	}
28
29	button = container.getElementsByTagName( 'button' )[0];
30	if ( 'undefined' === typeof button ) {
31		return;
32	}
33
34	form = container.getElementsByTagName( 'form' )[0];
35	if ( 'undefined' === typeof form ) {
36		button.style.display = 'none';
37		return;
38	}
39	form.setAttribute( 'aria-expanded', 'false' );
40
41	button.onclick = function() {
42		if ( -1 !== container.className.indexOf( 'toggled' ) ) {
43			document.body.className = document.body.className.replace( ' search-toggled', '' );
44			container.className = container.className.replace( ' toggled', '' );
45			button.setAttribute( 'aria-expanded', 'false' );
46			form.setAttribute( 'aria-expanded', 'false' );
47		} else {
48			document.body.className += ' search-toggled';
49			container.className += ' toggled';
50			button.setAttribute( 'aria-expanded', 'true' );
51			form.setAttribute( 'aria-expanded', 'true' );
52		}
53	};
54
55} )();

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.