1 2 3/*-------------------------------------------------------------- 4# Document Ready 5--------------------------------------------------------------*/ 6jQuery( document ).ready(function($) { 7 //check if auto selected 8 var type = jQuery('input[name="model-type"]:checked').val(); 9 if(type){ 10 //console.log('do the thing'); 11 spp_steptwo(type); 12 } 13 //check on change event 14 jQuery('input[type=radio][name="model-type"]').on('change', function() { 15 var type = jQuery('input[name="model-type"]:checked').val(); 16 jQuery('#spp-price').html('$$$'); 17 //console.log('oof'); 18 19 if(type){ 20 //console.log('do the thing'); 21 spp_steptwo(type); 22 } 23 }); 24 25 //reset price 26 jQuery('.models-moto').on('change', function() { 27 jQuery('#spp-price').html('$$$'); 28 }); 29 jQuery('.models-atv').on('change', function() { 30 jQuery('#spp-price').html('$$$'); 31 }); 32 jQuery('.terms').on('change', function() { 33 jQuery('#spp-price').html('$$$'); 34 }); 35 36 37}); 38 39/*-------------------------------------------------------------- 40# When Type is selected switch model dropdowns 41--------------------------------------------------------------*/ 42function spp_steptwo(type){ 43 //console.log('step: '+type); 44 jQuery('.steptwo').removeClass('disable'); 45 if(type == 'atv'){ 46 jQuery('.models-atv').removeClass('d-none'); 47 jQuery('.models-moto').addClass('d-none'); 48 jQuery('.moto-only').addClass('d-none'); 49 jQuery('.blank').addClass('d-none'); 50 jQuery('.terms').removeClass('d-none'); 51 }else if(type == 'moto'){ 52 jQuery('.models-atv').addClass('d-none'); 53 jQuery('.models-moto').removeClass('d-none'); 54 jQuery('.moto-only').removeClass('d-none'); 55 jQuery('.blank').addClass('d-none'); 56 jQuery('.terms').removeClass('d-none'); 57 } 58}
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.