Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	app.py
#	docker-compose.yaml
#	templates/base.html
#	templates/get_transcript.html
#	templates/main.html
#	templates/solution.html
#	templates/view_solution.html
  • Loading branch information
huwf committed Jun 24, 2020
2 parents 09c797a + ca76502 commit d31f5d1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions static/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $(document).ready(function () {
// TODO: Don't know why this isn't working with jQuery, but this is simple enough for vanilla JS
document.getElementById('retrieve').parentNode.parentNode.innerHTML = data;
// Keep the "seconds available" up to date...
document.getElementById('seconds_available').innerHTML = parseInt($('audio')[0].duration);
$('#seconds_available').text(Math.floor(parseInt($('#seconds_available').text()) - $('audio')[0].duration));
$('.spinner-border').hide();

});
Expand All @@ -51,4 +51,9 @@ $(document).ready(function () {
$('#playerSpeed').text(rate * 100);
});

});
// Only works on the POST solution view
$('#exercise').height($('#solution').height());

});


0 comments on commit d31f5d1

Please sign in to comment.