Initial Commit

This commit is contained in:
2021-02-28 12:42:54 +01:00
commit 30c3419023
10 changed files with 169 additions and 0 deletions

15
public/script.js Normal file
View File

@@ -0,0 +1,15 @@
$(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();
});
});

14
public/style.css Normal file
View File

@@ -0,0 +1,14 @@
input {
width: 25em;
}
#form {
text-align: center;
margin: 2em;
}
#logoutput {
margin: 2em;
white-space: pre-wrap;
font-family: monospace;
}