1setTimeout(function() { 2 3 4 //Deal with slider input 5 $('#rate-slide').on("input change", function update_slider() { 6 7 $('#loan-amount').val($(this).val()); 8 9 if ($("#box1").is(':visible')) { 10 var value = $(this).val(); 11 12 var term = get_autoloan_term() 13 14 15 var rate = get_apr_float(); 16 var rate_string = get_apr_string(); 17 18 19 $("span#sub-term").html(term); 20 $("span#term_string").html(term + " Months"); 21 $("#loan-rate").html($("tr.activated td:first").html()); 22 $("span#term_string").html(term + " Months"); 23 //$("span#loan-interest").html(rate * 100); 24 $("span#loan-interest").html(rate_string.replace("%", "")); 25 26 var pmt = calculate_payment(value, rate, term); 27 pmt = Math.round10(pmt, -2); 28 29 var fm = calc_fm(value); 30 $('#loan-amount').val(fm); 31 var fm_pmt = calc_pmt(pmt); 32 $('#rate-slider-output-amount').html(fm_pmt); 33 } 34 if ($("#box2").is(':visible')) { 35 term = get_IRA_term_string(); 36 term = parseInt(term.substring(0,2)); 37 var value = $(this).val(); 38 var rate = get_apr_float(); 39 $("span#sub-term").html(term + " Months"); 40 $("span#term_string").html(term + " Months"); 41 $("#loan-rate").html(term + " Months"); 42 $("span#term_string").html(term + " Months"); 43 $("span#loan-interest").html(rate * 100); 44 var pmt = calculate_apy(value, rate, term); 45 pmt = Math.round10(pmt, -2); 46 47 var fm = calc_fm(value); 48 $('#loan-amount').val(fm); 49 var fm_pmt = calc_pmt(pmt); 50 $('#rate-slider-output-amount').html(fm_pmt); 51 } 52 if ($("#box3").is(':visible')) { 53 if($("tr.activated td:nth-child(2)").html().substring(0,1) == "2") { 54 var term = 24; 55 //$("span#sub-term").html(term); 56 $("span#term_string").html(term); 57 $("#loan-rate").html(term + " Months"); 58 } else { 59 var term = 12; 60 //$("span#sub-term").html("per month"); 61 $("span#term_string").html("per month"); 62 $("#loan-rate").html("per month"); 63 } 64 var value = $(this).val(); 65 66 var term = 12; 67 var rate = get_apr_float(); 68 69 70 $("span#term_string").html("per month"); 71 72 $("span#loan-interest").html(rate * 100); 73 $("span#loan-rate").html($("div#table-wrap-3 tr.activated>td.arrow").html()); 74 75 var pmt = calculate_apy(value, rate, term); 76 //pmt = pmt * 12; 77 pmt = Math.round10(pmt, -2); 78 79 var fm = calc_fm(value); 80 $('#loan-amount').val(fm); 81 var fm_pmt = calc_pmt(pmt); 82 $('#rate-slider-output-amount').html(fm_pmt); 83 } 84 85 86 87 }); 88 89 90})
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.