Change time rounding

This commit is contained in:
dave 2014-08-28 22:51:08 -07:00
parent ccfef6d154
commit b8da17855f
1 changed files with 2 additions and 2 deletions

View File

@ -163,8 +163,8 @@ var behaviors = {
},
timeupdate:function(event) {
$(".time-holder .player-slider").slider('setValue', event.jPlayer.status.currentTime);
minutes = parseInt(event.jPlayer.status.currentTime/60)
seconds = parseInt(event.jPlayer.status.currentTime-(minutes*60))
minutes = Math.floor(event.jPlayer.status.currentTime/60)
seconds = Math.floor(event.jPlayer.status.currentTime-(minutes*60))
$(".timeshow").html(minutes+":"+(seconds<10?"0":"")+seconds)