Skip to content

Commit

Permalink
Updated example to include refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhowell committed Jun 8, 2013
1 parent 2dc51c9 commit fc5c395
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions R&D/format-number/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,25 @@

<div class="container">
<div id="gg1" class="gauge"></div>
<a href="#" id="gg1_refresh" class="button grey">Random Refresh</a>
</div>

<script>
var gg1 = new JustGage({
id: "gg1",
value : 4096,
value : 40960,
min: 1024,
max: 10000,
max: 1000000,
gaugeWidthScale: 0.6,
counter: true,
formatNumber: true
});
$(document).ready(function(){
$('#gg1_refresh').bind('click', function() {
gg1.refresh(getRandomInt(1024, 1000000));
return false;
});
});
</script>
</body>
</html>

0 comments on commit fc5c395

Please sign in to comment.