Skip to content

choguun/rf-loan-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rf-loan-widget

refinn loan calculator widget

Installation


<script>

(function (w, d, s, o, f, js, fjs) {

w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };

js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];

js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);

}(window, document, 'script', 'loancalculator_widget', './rf-loan-widget.js'));

  
  

loancalculator_widget('init', {}, 'refinn-loan-calculator-widget', 'price', 2, '', '', 'prod');

loancalculator_widget_2('init', {}, 'refinn-loan-calculator-widget-2', '', 5, '', '', 'dev');

</script>

loancalculator_widget('init', {}, id, price, promotions per page, affiliateid, utm, environment) to init widget need to config like this

id value is mandatory

price value is optional

promotions per page are mandatory

affiliateid for affiliate model can set = ''

utm for tracking can set = ''

environment is mandatory can set dev and prod it will affect refinn redirect url

refinn-loan-calculator-widget = div id that will render widget

price = id of value to point to reference when what to auto detect price if not to specific can use empty string eg.

loancalculator_widget('init', {}, 'refinn-loan-calculator-widget', '');

Note: Can see example source code in index.html file