Update time while dragging
This commit is contained in:
parent
1e6af559a6
commit
bbe9987239
|
@ -157,7 +157,6 @@ var behaviors = {
|
||||||
// Add a class to the slider on hover
|
// Add a class to the slider on hover
|
||||||
$(this).addClass("dragging")
|
$(this).addClass("dragging")
|
||||||
}).on("slideStop", function(){
|
}).on("slideStop", function(){
|
||||||
|
|
||||||
$(this).removeClass("dragging");
|
$(this).removeClass("dragging");
|
||||||
}).on("slide", function(){
|
}).on("slide", function(){
|
||||||
paused = $("#player").data().jPlayer.status.paused
|
paused = $("#player").data().jPlayer.status.paused
|
||||||
|
@ -167,6 +166,9 @@ var behaviors = {
|
||||||
} else {
|
} else {
|
||||||
$("#player").jPlayer("play", parseInt(newTime))
|
$("#player").jPlayer("play", parseInt(newTime))
|
||||||
}
|
}
|
||||||
|
minutes = Math.floor(newTime/60)
|
||||||
|
seconds = Math.floor(newTime-(minutes*60))
|
||||||
|
$(".timeshow").html(minutes+":"+(seconds<10?"0":"")+seconds)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
play:function() {
|
play:function() {
|
||||||
|
|
Loading…
Reference in New Issue