Player progress point margin fixed
This commit is contained in:
@@ -76,7 +76,7 @@ function updatePlayer() {
|
||||
$('#player .time-left').html(formatTime(duration - cur_time));
|
||||
progress = Math.round((cur_time / duration) * 390);
|
||||
$('#player .progress-loaded').css('width', loaded +'px')
|
||||
$('#player .progress-point').css('margin-left', progress +'px')
|
||||
$('#player .progress-point').css('margin-left', progress - $('#player .progress-point').width() +'px')
|
||||
|
||||
/* Starting buffering next track */
|
||||
if (Math.round(cur_time / duration * 100) > 10) {
|
||||
@@ -97,8 +97,8 @@ function playTrack(artist, track, id) {
|
||||
$('#player .track-title').html(artist +' — '+ track);
|
||||
$('#player .time-played').html('0:00');
|
||||
$('#player .time-left').html('0:00');
|
||||
$('#player .progress-loaded').css('width', 0 +'px')
|
||||
$('#player .progress-point').css('margin-left', 0 +'px')
|
||||
$('#player .progress-loaded').css('width', '0px')
|
||||
$('#player .progress-point').css('margin-left', '-6px')
|
||||
$('#player .play').trigger('click');
|
||||
}
|
||||
function setPrev() {
|
||||
|
||||
Reference in New Issue
Block a user