Skip to content

Commit

Permalink
play button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyszhang committed Mar 18, 2017
1 parent c541a7e commit 8e3814b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/js/visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ $(document).ready(function () {
var source = audioElement.src;
$(this).addClass('highlight');
$('#original').removeClass('highlight');
$('#play').addClass('highlight');
audioElement.src = source.replace(/(\.[\w\d_-]+)$/i, 'bg$1');
audioElement.load();
audioElement.play();
Expand Down

0 comments on commit 8e3814b

Please sign in to comment.