qobuz-docker/public/script.js

16 lines
437 B
JavaScript
Raw Normal View History

2021-02-28 12:42:54 +01:00
$(document).ready(function() {
$("#download").click(function(e) {
dl_button = $(this);
dl_button.html('Downloading...');
$("#logoutput").html('Loading...');
$.post("/download", {"url": $("input[name='url']").val()})
.done(function(string) {
dl_button.html('Download');
$("#logoutput").html(string);
});
e.preventDefault();
});
});