PageSourceSearch

http://henrystruckpartswholesale.com/wp-content/plugins/redparts-s…/js/widget-block-finder.js?ver=1.18.0

js henrystruckpartswholesale.com collected 2026-10-09 02:57:35 UTC 895 bytes, 40 lines download raw bytes

1( function( $ ) {
2	'use strict';
3
4	/* global redPartsSputnik */
5
6	const sputnik = redPartsSputnik;
7
8	function init( elements ) {
9		$( elements ).each( function() {
10			initSingle( this );
11		} );
12	}
13	function initSingle( element ) {
14		if ( $( element ).data( 'init' ) ) {
15			return;
16		}
17
18		$( element ).data( 'init', true );
19
20		const select = $( element ).find( '.th-block-finder__vehicle-select' );
21		const button = $( element ).find( '.th-block-finder__button' );
22		let selectedVehicle;
23
24		select.on( 'th-vehicle-select.change', function( event, vehicle ) {
25			selectedVehicle = vehicle;
26		} );
27
28		button.on( 'click', function( event ) {
29			event.preventDefault();
30
31			if ( selectedVehicle ) {
32				window.location.href = selectedVehicle.link;
33			}
34		} );
35	}
36
37	$( function() {
38		sputnik.initWidget( 'redparts_sputnik_block_finder', '.th-block-finder--type--default', init );
39	} );
40}( jQuery ) );

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.