Skip to content

Commit

Permalink
remove 1s to the js watch so both time matches #98
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jan 8, 2016
1 parent e01b354 commit ca32d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/watch.animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ $( document ).ready(function() {
ctx.drawImage(img, 4, 7, dimensions.width, dimensions.height);



}

function drawTime(ctx, radius){
var now = new Date();
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
var second = now.getSeconds()-1;
var ms = now.getMilliseconds();

//hour
Expand All @@ -87,7 +87,7 @@ $( document ).ready(function() {
}else{
ctx.strokeStyle='#2d639a';
}

ctx.lineWidth = width;
ctx.lineCap = "square";
ctx.moveTo(0,0);
Expand Down

0 comments on commit ca32d68

Please sign in to comment.