Initial Commit
This commit is contained in:
15
public/script.js
Normal file
15
public/script.js
Normal 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
14
public/style.css
Normal file
@@ -0,0 +1,14 @@
|
||||
input {
|
||||
width: 25em;
|
||||
}
|
||||
|
||||
#form {
|
||||
text-align: center;
|
||||
margin: 2em;
|
||||
}
|
||||
|
||||
#logoutput {
|
||||
margin: 2em;
|
||||
white-space: pre-wrap;
|
||||
font-family: monospace;
|
||||
}
|
Reference in New Issue
Block a user