PageSourceSearch

https://seashell-mongoose-275639.hostingersite.com/wp-content/plug…/assets/js/calculation.js?ver=1.0.0

js seashell-mongoose-275639.hostingersite.com collected 2026-10-03 04:53:13 UTC 2,116 bytes, 48 lines download raw bytes

1jQuery(document).ready(function ($) {
2    function calculateLoanDetails(loanAmount, downPayment, loanInterest, loanPeriod) {
3        if (loanAmount && downPayment && loanInterest && loanPeriod) {
4            $.ajax({
5                url: loanEmiCalculator.ajaxurl,
6                type: 'POST',
7                data: {
8                    action: 'calculate_loan_details',
9                    loan_amount: loanAmount,
10                    down_payment: downPayment,
11                    loan_interest: loanInterest,
12                    loan_period: loanPeriod,
13                },
14                success: function (response) {
15                    if (response.success) {
16                        $('#monthly-emi-value').text(response.data.emi);
17                        $('#total-repay-cost-value').text(response.data.total_repay_cost);
18                        $('#interest-rate-value').text(response.data.total_interest_cost);
19                        $('#principal-amount-value').text(response.data.principal_amount);
20                    } else {
21                        alert('Error: ' + response.data.message);
22                    }
23                },
24                error: function () {
25                    alert('There was an issue with the request. Please try again later.');
26                },
27            });
28        }
29    }
30
31    $('#calculate-loan').on('click', function () {
32        var loanAmount = $('#loan-amount').val();
33        var downPayment = $('#down-payment').val();
34        var loanInterest = $('#loan-interest').val();
35        var loanPeriod = $('input[name="loan_period"]:checked').val();
36
37        calculateLoanDetails(loanAmount, downPayment, loanInterest, loanPeriod);
38    });
39
40    $(window).on('load', function () {
41        var defaultLoanAmount = $('#loan-amount').val();
42        var defaultDownPayment = $('#down-payment').val();
43        var defaultLoanInterest = $('#loan-interest').val();
44        var defaultLoanPeriod = $('input[name="loan_period"]:checked').val();
45
46        calculateLoanDetails(defaultLoanAmount, defaultDownPayment, defaultLoanInterest, defaultLoanPeriod);
47    });
48});

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.