Documentation
ParametersMortgage Calculator Widget Cut & Paste Code
You can cut and paste the code below into any page that you like and the Mortgage Calculator Widget will work automatically.
New Users: The code below will work as soon as you Get Your API Key.
Please note thatYOUR-API-KEYparameter must be replaced with a valid API Key.
API Key:
Your API Key is already inserted into your Cut-and-Paste code.
<div id="mc-calc"></div>
<script>
document.addEventListener('DOMContentLoaded', function () {
let element = document.getElementById('mc-calc');
let calculator = new mortgagecalculator.ca.Calc(element, {
type: mortgagecalculator.ca.Type.WIDGET,
province: 'ON',
price: '$500,000',
style: {
backgroundColor: '',
borderColor: '',
textColor: '',
priceColor: '',
titleColor: '',
fontFamily: '',
fontSize: ''
}
});
});
</script>
<script src="https://widget.mortgagecalculator.ca/js?key={YOUR-API-KEY}"></script>
<div>Provided by <a href="https://mortgagecalculator.ca">MortgageCalculator.ca</a></div>