diff --git a/public/script.js b/public/script.js
index e99ad78..81caee2 100644
--- a/public/script.js
+++ b/public/script.js
@@ -17,20 +17,20 @@ dropZone.addEventListener("dragleave", () => {
});
dropZone.addEventListener("drop", (e) => {
- e.preventDefault();
- dropZone.classList.remove("dragover");
-
- const files = e.dataTransfer.files;
-
- if (files.length === 0) {
- console.warn("No files dropped — likely a URL or unsupported source.");
- return;
- }
-
- for (const file of files) {
- console.log("Handling dropped file:", file.name);
- handleFile(file);
- }
+ e.preventDefault();
+ dropZone.classList.remove("dragover");
+
+ const files = e.dataTransfer.files;
+
+ if (files.length === 0) {
+ console.warn("No files dropped — likely a URL or unsupported source.");
+ return;
+ }
+
+ for (const file of files) {
+ console.log("Handling dropped file:", file.name);
+ handleFile(file);
+ }
});
// Extracted handleFile function for reusability in drag-and-drop and file input
@@ -40,7 +40,7 @@ function handleFile(file) {
const row = document.createElement("tr");
row.innerHTML = `
+
+
Results
+
+
+
+
+
+
+
+
+ |
+ Converted File Name
+ |
+
+ Status
+ |
+
+ View
+ |
+
+ Download
+ |
+
+
+
+ {files.map((file) => (
+
+ |
+ {file.output_file_name}
+ |
+ {file.status} |
+
+
+ View
+
+ |
+
+
+ Download
+
+ |
+
+ ))}
+
+
+
+ )
+}
+
export const results = new Elysia()
.use(userService)
.get(
@@ -59,114 +165,7 @@ export const results = new Elysia()
sm:px-4
`}
>
-
-
-
Results
-
-
-
-
-
-
-
-
- |
- Converted File Name
- |
-
- Status
- |
-
- View
- |
-
- Download
- |
-
-
-
- {files.map((file) => (
-
- |
- {file.output_file_name}
- |
- {file.status} |
-
-
- View
-
- |
-
-
- Download
-
- |
-
- ))}
-
-
-
+
-
-
Results
-
-
-
-
-
-
-
-
- |
- Converted File Name
- |
-
- Status
- |
-
- View
- |
-
- Download
- |
-
-
-
- {files.map((file) => (
-
- |
- {file.output_file_name}
- |
- {file.status} |
-
-
- View
-
- |
-
-
- Download
-
- |
-
- ))}
-
-
-
- );
+ return