1 (function( $ ) { 2 'use strict'; 3 4 function next_step(page, container){ 5 6 var decider=container.find('.decider:visible:checked').val(); 7 //console.log(decider); 8 9 decider=decider.split('-'); 10 decider=decider[1]; 11 var newpage=decider; 12 //console.log('next to '+newpage); 13 14 container.find('.ci-inner-wrapper').hide('fast',function(){ 15 16 container.find('.inner-wrapper-'+newpage ).fadeIn(100,function(){ 17 18 if(newpage==100|| newpage==5){ 19 container.find('.inner-wrapper-'+newpage +' .back-step').attr('id','back-'+page); 20 // console.log('back btn changed to '+page); 21 } 22 23 24 25 }); 26 27 }); 28 29 } 30 31 jQuery(document).ready(function($){ 32 33 jQuery.extend(jQuery.validator.messages, { 34 required: "Please select an option" 35 }); 36 37 38 $('.hvac-troubleshooter-form').validate({ 39 errorPlacement: function (error, element) { 40 41 if (element.attr('type') === 'radio') { 42 error.insertBefore(element); 43 } 44 }, 45 messages:{ 46 radio:{ 47 required: "Please select an option" 48 } 49 50 } 51 52 }); 53 54 $('.nxt-step').click(function(){ 55 56 var container= $(this).closest('.ci-hvac-container'); 57 var idd=$(this).attr('id'); 58 idd=idd.split('-'); 59 idd=idd[2]; 60 61 if($('.hvac-troubleshooter-form').valid()) 62 { 63 64 next_step(idd, container); 65 66 } 67 68 }); 69 70 71 $('.back-step').click(function(){ 72 73 var container= $(this).closest('.ci-hvac-container'); 74 75 var backidd=$(this).attr('id'); 76 backidd=backidd.split('-'); 77 backidd=backidd[1]; 78 //console.log('back to '+ backidd ); 79 container.find('.ci-inner-wrapper').hide('fast',function(){ 80 81 container.find('.inner-wrapper-'+backidd ).fadeIn(100,function(){ 82 83 }); 84 85 }); 86 87 88 89 }); 90 }); 91 92 93 94})( 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.