Widget
Integrate the calculator on your website
The use of the widget is free and can be done without any prior request.
The tool remains the property of calculatrice.lu
It is forbidden to modify the appearance and content of the widget.
It is therefore not permitted, regardless of the method used, to modify colours, fonts, text sizes, links, etc...
To integrate the widget into your website:
1. Copy/paste the following code in the <head> tag of your website:
<script src="https://www.calculatrice.lu/apiwidget/widget.js?v=2.0"></script>
<script>calc.getWidget();</script>
2. Copy/paste the following code in the <body> tag of your website:
<div id="calculatricelu"></div>
3. Widget customization using the tool's functions to be called before the widget call:
calc.setLang(lang); // "fr", "en", "de", "lu", "pt" (default value: "en")
calc.setPosition(position); // "absolute", "inline" (default value: "absolute")
calc.setFamily(boolean); // true, false (default value: true)
calc.setChildren(boolean); // true, false (default value: true)
calc.setCar(boolean); // true, false (default value: true)
calc.setAdvantage(boolean); // true, false (default value: true)
calc.setDrivingFee(boolean); // true, false (default value: true)
calc.setCard2nd(boolean); // true, false (default value: true)
Widget customization example in French:
<script>
calc.setLang('fr');
calc.setPosition('inline');
calc.getWidget();
</script>