Getting started
Setting up you HTML
Create div tag on page where you want to display the calculator<div class="econolease-calculator"></div> OR <div id="econolease_calculator"></div>
Installation
Include econolease calculator script before your closing tag<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script> <script src="https://www.econolease.com/js/jquery.efs-calculator.min.js"></script>
Usage
$('#econolease_calculator').efs({ lease: true, rental: true, loan:true, init: 'lease' }); OR $('.econolease-calculator').efs({ lease: true, rental: true, loan:true, init: 'lease' });
Settings
Default | Description | |
---|---|---|
lease | false | Set to true to turn on lease calculator. |
rental | false | Set to true to turn on rental calculator. |
loan | false | Set to true to turn on loan calculator. |
init | If you have multiple calculators set to true, then set init to either 'lease' or'rental' or'loan' to get that calculator to be displayed first. | |
lang | en-ca | Set language to 'en-ca' for english and'fr-ca' for french version of calculator |
color | blue | Use hex color codes to set theme color of the calculator, e.g., '000000' for black;'FF0000' for red;'00FF00' for green; etc. |
logo | logo: { src: '' } | Pass absolute URL path of your logo as a src to display your logo on the calculator. |