Last active
October 7, 2015 10:37
-
-
Save victorjonsson/3151974 to your computer and use it in GitHub Desktop.
Pie chart count down example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<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