js/script.js
// returns click as decimal (.77) of the total timelineWidth
returns click as decimal (.77) of the total timelineWidth
returns click as decimal ( . 77 ) of the total timelineWidth
function clickPercent(event) {
        console.log("click percent: " + (event.clientX - getPosition(timeline)) / timelineWidth);
        return (event.clientX - getPosition(timeline)) / timelineWidth;
    }
function clickPercent ( event ) { console . log ( "click percent: " + ( event . clientX - getPosition ( timeline ) ) / timelineWidth ) ; return ( event . clientX - getPosition ( timeline ) ) / timelineWidth ; }
returns click as decimal (.77) of the total timelineWidth
returns click as decimal ( . 77 ) of the total timelineWidth