Skip to content

Commit

Permalink
experimenting with refreshmax demo
Browse files Browse the repository at this point in the history
  • Loading branch information
toorshia committed Feb 18, 2015
1 parent b539863 commit 27cf990
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R&D/refreshmax/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<script>
var g1 = new JustGage({
id: "g1",
title : "Max is 100.",
value : 50,
min: 0,
max: 100,
Expand All @@ -65,16 +66,19 @@

$('#g1_setmax100').bind('click', function() {
g1.refresh(g1.originalValue, 100);
g1.txtTitle.attr({"text" : "Max is 100."});
return false;
});

$('#g1_setmax200').bind('click', function() {
g1.refresh(g1.originalValue, 200);
g1.txtTitle.attr({"text" : "Whoops, max jumped to 200."});
return false;
});

$('#g1_setmax400').bind('click', function() {
g1.refresh(g1.originalValue, 400);
g1.txtTitle.attr({"text" : "Blimey, max blasted to 400!"});
return false;
});

Expand Down

0 comments on commit 27cf990

Please sign in to comment.