Skip to content

Latest commit

 

History

History
66 lines (27 loc) · 1.35 KB

README.md

File metadata and controls

66 lines (27 loc) · 1.35 KB

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