Skip to content

Commit

Permalink
Merge pull request #2 from hanachin/master
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
Yohei Yasukawa committed Dec 15, 2011
2 parents 7c1e4d9 + 866e0ec commit f9287cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public_html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@

time = (location.search || location.hash).split(/[^0-9]/).filter(function (x) { return x !== ""; }).slice(0, 3).map(function (x) { return parseInt(x, 10); }).reverse();
// Set Timer
$('#hours').val(time[2] || 0);
$('#minutes').val(time[1] || 0);
$('#seconds').val(time[0] || 10);
$('#hours').val(time[2] !== undefined ? time[2] : 0);
$('#minutes').val(time[1] !== undefined ? time[1] : 0);
$('#seconds').val(time[0] !== undefined ? time[0] : 10);

//alert($('#seconds').val());
//alert(h+m+s);
Expand Down

0 comments on commit f9287cc

Please sign in to comment.