Home Equity Loan
Summary Estimate
Monthly Payment
.calculator-section.disabled .input-group{box-shadow:none!important;}
function disableRate(){
$(‘.input-rate’).prop( “disabled”, true );
$(‘.input-rate’).addClass( “disabled” );$(‘.input-rate’).parents(‘.calculator-section’).addClass( “disabled” );
}
let amount = document.URL.match(/la=([^&#]*)/)[1];
let score = document.URL.match(/cs=([^&#]*)/)[1];
let hv = document.URL.match(/hv=([^&#]*)/)[1];
let rb = document.URL.match(/rb=([^&#]*)/)[1];
hv=parseFloat(hv.replace(/[$,]+/g,””));
rb=parseFloat(rb.replace(/[$,]+/g,””));
let ltv = rb/hv;
ltv = ltv*100;
let rate = 6.49;
let term = 180;
let hide_high_term=false;
let calc_amount = 0;
switch(score){
case “700%2B”: rate=6.49;disableRate();break;
case “699%20or%20under”:rate=8.5;disableRate();break;
}
/*if(ltv 75 && ltv = 85) {
if(score==”700%2B”){rate = 7.25;}else{rate = 8.75;}
}
$(‘.input-amount’)[0].value = amount;
$(‘.input-rate’)[0].value = rate;
//$(‘.input-term’)[0].value = term;
if(hide_high_term){
$(‘.input-term[value=120]’).hide();
}
if(hide_high_term){
$(‘.input-term’).parent().parent().find(“span:nth-child(4)”).hide();
}
$(‘.input-amount’).keyup( function(e){
calc_amount=parseFloat($(‘.input-amount’).val().replace(/[$,]+/g,””));
if(hide_high_term){
$(‘.input-term’).parent().parent().find(“span:nth-child(4)”).hide();
}
});