title: HTML5 Video Player Progress Bar Update
body: <p>I've been following thenewboston's HTML5 video tutorial and have reached the tutorials where we make the video player. I've copied the code exactly but the progress bar doesn't update when it is clicked. </p>
  
  <p><a href="http://jsfiddle.net/wqr7S/2/" rel="nofollow">My JSFiddle</a></p>
  
  <p>I think the reason this isn't working is because of something wrong with:</p>
  
  <pre><code>function clickedBar(e){
      if(!myMovie.paused &amp;&amp; !myMovie.ended){
          var mouseX=e.offsetX;
          var newtime=mouseX*myMovie.duration/barSize;
          myMovie.currentTime=newtime;
          progressBar.style.width=mouseX+'px';
      }
  }
  </code></pre>
  
  <p>I really can't figure out why it's not working but any help will be appreciated!</p>
  
  <p>EDIT: Fixed Link.</p>