Tamina allows to display the current total amount per e.g. campaign or purpose. Filter criteria can be defined via Javascript.
Tamina contains and enables:
-
Donation barometer
-
Searching/filtering customizable
-
Responsive design
-
Multi language support
A code example can be found here:
<script type="text/javascript">
window.rnwWidget = window.rnwWidget || {};
window.rnwWidget.configureWidget = function(options) {
//Target level in CHF
options.barometerTargetLevel = 2500;
//Search sub query, please do not use whitespace or special characters or camelCase in key and value
options.searchQuery = [{'stored_campaigner_name' : 'foobar'}];
options.widget.on(window.rnwWidget.constants.events.SEARCH_RESULT_LOADED, function (e) {
//Current level
alert("current level " + e.level);
//Add CHF 100.- to current level, e.g. to add offline donations
e.widget.setLevel(100 + e.level);
});
};
</script>
Comments
0 comments
Please sign in to leave a comment.