/home/techb158/l2hypotheques.com/wp-content/themes/pylon/assets/js
NameSizeModeActions
bootstrap-bundle-min.js810900644editdlrm
bootstrap-select-min.js477060644editdlrm
bootstrap-select.js.map341230644editdlrm
bootstrap.bundle.min.js.map3183380644editdlrm
calculator.js22590644editdlrm
customizer.js12450644editdlrm
inline.js150644editdlrm
jquery-ajaxchimp-min.js23810644editdlrm
jquery-appear-min.js12660644editdlrm
jquery-magnific-popup-min.js202190644editdlrm
jquery-ui.js4517180644editdlrm
jquery.circleGraph.js27230644editdlrm
jquery.easing.min.js25320644editdlrm
jquery.matchHeight.js114920644editdlrm
navigation.js34440644editdlrm
nouislider-min.js238830644editdlrm
odometer-min.js98970644editdlrm
theme.js183760644editdlrm
wNumb-min.js22350644editdlrm
woocommerce.js00644editdlrm
wow.js63000644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/themes/pylon/assets/js/calculator.js (2259B)
(function($) { "use strict"; $("#pricipal-slide").slider({ range: "min", min: 10000, max: 5000000, value: 100000, step: 1000, slide: function(event, ui) { $("#pricipal").text(ui.value); loancalculate(); } }); $("#pricipal").text($("#pricipal-slide").slider("value")); $("#totalyear-slide").slider({ range: "min", min: 12, max: 360, step: 1, value: 120, slide: function(event, ui) { $("#totalyear").text(ui.value); loancalculate(); } }); $("#totalyear").text($("#totalyear-slide").slider("value")); $("#intrest-slide").slider({ range: "min", min: 6.10, max: 16.20, step: 0.01, value: 10, slide: function(event, ui) { $("#intrest").text(ui.value); loancalculate(); } }); $("#intrest").text($("#intrest-slide").slider("value")); loancalculate(); })(jQuery); function loancalculate() { var loanAmount =$("#pricipal").text(); var numberOfMonths =$("#totalyear").text(); var rateOfInterest=$("#intrest").text(); var monthlyInterestRatio = (rateOfInterest/100)/12; var top = Math.pow((1+monthlyInterestRatio),numberOfMonths); var bottom = top -1; var sp = top / bottom; var emi = ((loanAmount * monthlyInterestRatio) * sp); var full = numberOfMonths * emi; var interest = full - loanAmount; var int_pge = (interest / full) * 100; //$("#tbl_int_pge").html(int_pge.toFixed(2)+" %"); //$("#tbl_loan_pge").html((100-int_pge.toFixed(2))+" %"); var emi_str = emi.toFixed(2).toString().replace(/,/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","); var loanAmount_str = loanAmount.toString().replace(/,/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","); var full_str = full.toFixed(2).toString().replace(/,/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","); var int_str = interest.toFixed(2).toString().replace(/,/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","); $("#emi").html(emi_str); $("#tbl_emi").html(int_str); $("#tbl_la").html(full_str); }