js/script.js
// getting input from all mouse clicks
getting input from all mouse clicks
getting input from all mouse clicks
function mouseUp(event) {
        if (onplayhead == true) {
            moveplayhead(event);
            window.removeEventListener('mousemove', moveplayhead, true);
            audio.currentTime = duration * clickPercent(event);
            audio.addEventListener('timeupdate', timeUpdate, false);
        }
        onplayhead = false;
    }
function mouseUp ( event ) { if ( onplayhead == true ) { moveplayhead ( event ) ; window . removeEventListener ( 'mousemove' , moveplayhead , true ) ; audio . currentTime = duration * clickPercent ( event ) ; audio . addEventListener ( 'timeupdate' , timeUpdate , false ) ; } onplayhead = false ; }
getting input from all mouse clicks
getting input from all mouse clicks
// change current time