Skip to content
James Pederson edited this page May 17, 2014 · 15 revisions

#Getting Started with Accrue.js

The only file you need (besides a jQuery library) is jquery.accrue.min.js. The included css file is only for the example page. The intent is that you specify your own styles, and it will be nice that you don't have to override any of my crap. :)

Usage

For the most basic usage of the plugin, all you need is the code below. Of course, you may need to adjust src properties based on where you store files, and you'll want to add styles - but the core functionality will be there.

<div class="calculator"></div>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="jquery.accrue.min.js"></script>
<script>
$(document).ready(function(){
    $(".calculator").accrue();
});
</script>

For more information on the different options and customizations, refer to the index.html file in this repo, or visit http://accruejs.com/ to see the same demos and documentation from the example file.