Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
fix url not read from field
Browse files Browse the repository at this point in the history
  • Loading branch information
the-codeboy committed Feb 27, 2024
1 parent 22def96 commit 71a2053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ <h1 class="text-center mt-5 mb-4">Studyscraper: A Studydrive Downloader</h1>
class="form-control rounded my-3"
placeholder="Paste URL here e.g. https://www.studydrive.net/en/doc/effi-alle-folien/1440343"
value=""
id="url-input"
/>
<button
class="btn btn-primary btn-download rounded"
Expand Down Expand Up @@ -147,7 +148,7 @@ <h2>StudyScraper: Download Studydrive Documents</h2>
function download() {
window.open(
"/download/" +
encodeURIComponent(document.querySelector("input").value),
encodeURIComponent(document.getElementById("url-input").value),
"_blank",
);
}
Expand Down

0 comments on commit 71a2053

Please sign in to comment.