Add these dependencies to the head of your page.
<head>
...
<script src="https://leasetools.alcredis.nl/louwman/main.js" type="module"></script>
</head>
Then add a LeaseTool component <div>
with some configuration as described
below somewhere in your page.
The basic LeaseTool component renders a Faceting overview.
<div data-component="LeaseTool"></div>
To create a brand specific Lease Tool page, add 3 attributes.
data-prop-brand
for the brand slug;data-prop-overview-url
link to the general overview;data-prop-brand-url
link template to the other model specific urls. In
this template the variable %brand%
is replaced with the actual model slug;
<div data-component="LeaseTool"
data-prop-brand="toyota"
data-prop-overview-url="https://www.louwman.nl/private-lease/index.html"
data-prop-brand-url="https://www.louwman.nl/private-lease/brand_%brand%.html"></div>
To create a model specific Lease Tool page, add 3 attributes.
data-prop-model
for the model slug;data-prop-overview-url
link to the general overview;data-prop-model-url
link template to the other model specific urls. In
this template the variable %model%
is replaced with the actual model slug;
<div data-component="LeaseTool"
data-prop-model="yaris"
data-prop-overview-url="https://www.louwman.nl/private-lease/index.json"
data-prop-model-url="https://www.louwman.nl/private-lease/%model%.json"></div>