Skip to content

Commit

Permalink
minor examples fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
toorshia committed Dec 31, 2015
1 parent bebb787 commit 6c4c267
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions examples/counter.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@

<body>
<div class="container">
<div id="gg1" class="gauge"></div>
<a href="#" id="gg1_refresh">Random Refresh</a>
<div id="g1" class="gauge"></div>
<a href="#" id="g1_refresh">Random Refresh</a>
</div>
<script src="../raphael-2.1.4.min.js"></script>
<script src="../justgage.js"></script>
<script>
var g1;
document.addEventListener("DOMContentLoaded", function(event) {
var gg1 = new JustGage({
id: "gg1",
g1 = new JustGage({
id: "g1",
value: 72,
min: 0,
max: 100,
Expand All @@ -47,8 +48,8 @@
hideInnerShadow: true
});

document.getElementById('gg1_refresh').addEventListener('click', function() {
gg1.refresh(getRandomInt(0, 100));
document.getElementById('g1_refresh').addEventListener('click', function() {
g1.refresh(getRandomInt(0, 100));
});
});
</script>
Expand Down
6 changes: 3 additions & 3 deletions examples/custom-interval.htm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
var g1, g2, g3;

document.addEventListener("DOMContentLoaded", function(event) {
var g1 = new JustGage({
g1 = new JustGage({
id: "g1",
value: getRandomInt(350, 980),
min: 350,
Expand All @@ -52,7 +52,7 @@
label: "miles traveled"
});

var g2 = new JustGage({
g2 = new JustGage({
id: "g2",
value: 32,
min: 50,
Expand All @@ -61,7 +61,7 @@
label: ""
});

var g3 = new JustGage({
g3 = new JustGage({
id: "g3",
value: 120,
min: 50,
Expand Down

0 comments on commit 6c4c267

Please sign in to comment.