A simple, embeddable meter widget that display progress for a fundraising campaign.
- Add the
fundraising-meter.min.js
script just before the closingbody
tag. - Add
<div id="kindful-meter"></div>
to your page where you want the meter to appear. - Use optional
data
attributes to customize the meter (see below).
An optional title to display under the meter.
The goal amount you are trying to raise.
The actual amount raised to date.
The background color of your meter in RGB, for example: 35, 207, 130
(which is also the default). Will be displayed as gradient.
The height of your meter in pixels. Defaults to 300
.
The width of your meter in pixels. Defaults to 60
.
Feel free to override other styles with CSS. You may need to use the !important
override for some as they are inline.
This file can also be used as a Wordpress plugin. Simply ZIP and upload like any other local plugin. Use the short code [kindful-meter]
. Pass in data attributes to the short code minus the data-
string. For example, the bare minimum short code would be [kindful-meter kindful-url="YOUR_URL_HERE"]
.