Change all tabs to spaces in js file
It's bad to mix them
This commit is contained in:
parent
754c4b1a0d
commit
683c9cc66c
@ -116,9 +116,9 @@ var audioPlayer = new Object();
|
|||||||
var im = audioPlayer.imageElement;
|
var im = audioPlayer.imageElement;
|
||||||
var pos = (e.offsetX || e.originalEvent.layerX) / im.width();
|
var pos = (e.offsetX || e.originalEvent.layerX) / im.width();
|
||||||
|
|
||||||
console.log('pos', (e.offsetX || e.originalEvent.layerX) / im.width())
|
console.log('pos', (e.offsetX || e.originalEvent.layerX) / im.width())
|
||||||
console.log('setting current time to',
|
console.log('setting current time to',
|
||||||
pos * audioPlayer.audioElement.duration)
|
pos * audioPlayer.audioElement.duration)
|
||||||
|
|
||||||
audioPlayer.audioElement.currentTime = pos * audioPlayer.audioElement.duration;
|
audioPlayer.audioElement.currentTime = pos * audioPlayer.audioElement.duration;
|
||||||
audioPlayer.audioElement.play();
|
audioPlayer.audioElement.play();
|
||||||
@ -158,13 +158,13 @@ var audioPlayer = new Object();
|
|||||||
el = $('.audio-spectrogram .audio-control-play-pause')
|
el = $('.audio-spectrogram .audio-control-play-pause')
|
||||||
.removeClass('paused').addClass('playing')
|
.removeClass('paused').addClass('playing')
|
||||||
.text('▮▮').attr('aria-label', 'Pause');
|
.text('▮▮').attr('aria-label', 'Pause');
|
||||||
el[0].setAttribute('aria-label', 'Pause')
|
el[0].setAttribute('aria-label', 'Pause')
|
||||||
break;
|
break;
|
||||||
case audioPlayer.PAUSED:
|
case audioPlayer.PAUSED:
|
||||||
el = $('.audio-spectrogram .audio-control-play-pause')
|
el = $('.audio-spectrogram .audio-control-play-pause')
|
||||||
.removeClass('playing').addClass('paused')
|
.removeClass('playing').addClass('paused')
|
||||||
.text('▶').attr('aria-label', 'Play');
|
.text('▶').attr('aria-label', 'Play');
|
||||||
el[0].setAttribute('aria-label', 'Play')
|
el[0].setAttribute('aria-label', 'Play')
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user