PageSourceSearch

https://gedu.tcu.edu.tw/wp-content/themes/memory/lib/components/searchform-modal/searchform-modal.js?ver=1.0

js tcu.edu.tw collected 2026-10-01 12:13:22 UTC 705 bytes, 32 lines download raw bytes

1/**
2 * Search Form modal script.
3 *
4 * @package Memory.
5 */
6
7jQuery(function($) {
8
9	$( '.header__search .search-toggle' ).on( 'click', function ( e ) {
10		e.stopPropagation();
11		var parent = jQuery( this ).parent();
12		$( '#page' ).addClass( 'gt-search-active' );
13		setTimeout( function () {
14			parent.find( '.search-field' ).focus();
15		}, 500 );
16
17		return false;
18
19	} );
20	jQuery( '.search-popup-bg' ).on( 'click', function () {
21		var parent = jQuery( this ).parent();
22		parent.find( '.search-field' ).val( '' );
23		$( '#page' ).removeClass( 'gt-search-active' );
24
25		return false;
26	} );
27
28	// $( '.header__search > a' ).on( 'click', function () {
29	// 	$( this ).siblings( 'form' ).slideToggle();
30	// } );
31
32});

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.