Change time rounding
This commit is contained in:
parent
ccfef6d154
commit
b8da17855f
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue