Home › Calculator widget
Put a material calculator on your own site
A free widget for garden centres, landscape yards and bulk suppliers. Your customers work out what they need on your page instead of leaving to find a calculator somewhere else.
Paste this where the calculator should go
<div class="pourplot-calc" data-material="mulch"></div>
<script src="https://pourplot.com/embed/v1.js" async></script> That is the whole installation. The script is about 9 KB, loads asynchronously and does nothing until it finds a pourplot-calc element.
Live examples
These are running on this page right now, with different settings.
Mulch, default settings
<div class="pourplot-calc" data-material="mulch"></div> Gravel, 4 in default depth, your own accent colour
<div class="pourplot-calc" data-material="gravel" data-depth="4" data-accent="#1a7f5a"></div> Topsoil, sold in 1.5 cu ft bags
<div class="pourplot-calc" data-material="topsoil" data-bag="1.5"></div> Options
| Attribute | Values | Default |
|---|---|---|
data-material | mulch · topsoil · compost · gravel · stone | mulch |
data-depth | starting depth, in inches (cm in metric) | per material |
data-bag | bag size in cubic feet (litres in metric) | per material |
data-accent | any CSS colour, to match your site | #E8772E |
data-units | imperial · metric | imperial |
data-weight | off, to hide the weight line | shown |
Put several on one page if you sell several materials. Each one is independent.
What it does not do
- No cookies, no local storage, no analytics, nothing saved.
- No network requests at all once the script has loaded, so there is nothing to add to your privacy policy and nothing to slow the page down.
- It renders in a shadow root, so it cannot restyle your page and your CSS cannot break it.
- It never collects or sends anything a visitor types.
Weights
The weight line uses loose US short tons per cubic yard: mulch 0.3, topsoil 1.1, gravel and stone 1.4. These are the same defaults the pourplot calculators use, from SelectSG, Aggregate Markets and Inch Calculator. Material from your own quarry or yard can differ, so add data-weight="off" if you would rather not show it. Compost shows no weight, because we have no sourced figure for it.
Terms
Free to use on any site. The only condition is that the small “Calculator by pourplot” line stays visible underneath it. Please link to the script on this domain rather than hosting a copy, so you get fixes automatically.
Want the defaults set to the bag sizes and depths you actually sell? Email [email protected] and I will send you the exact snippet.