Skip to content

Instantly share code, notes, and snippets.

@victorjonsson
Last active October 7, 2015 10:37
Show Gist options
  • Save victorjonsson/3151974 to your computer and use it in GitHub Desktop.
Save victorjonsson/3151974 to your computer and use it in GitHub Desktop.
Pie chart count down example
...
<body>
<div id="counter"></div>
<a href="#" id="start-counter">Count down</a>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.piechartcountdown.min.js"></script>
<script>
$('#start-counter').click(function() {
$('#counter').pieChartCountDown({
time : 10,
color : '#FF0000',
background: '#111111',
size : 80,
border: 8,
infinite : false,
callback : function($counter) {
$counter.html('Finito!');
}
});
return false;
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment