diff --git a/bun.lockb b/bun.lockb
index 64f89a1..bd8f292 100644
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/package.json b/package.json
index 7ba9fd6..ec10e89 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "1.0.50",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
- "dev": "bun run --watch src/index.ts"
+ "dev": "bun run --hot src/index.ts"
},
"dependencies": {
"@elysiajs/html": "^1.0.2",
diff --git a/src/pages/index.html b/src/pages/index.html
index 0f6be82..2c8c9a7 100644
--- a/src/pages/index.html
+++ b/src/pages/index.html
@@ -1,15 +1,63 @@
+
ConvertX
+
+
-
-
Hello world!
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/public/index.js b/src/public/index.js
new file mode 100644
index 0000000..218563c
--- /dev/null
+++ b/src/public/index.js
@@ -0,0 +1,26 @@
+// Select the file input element
+const fileInput = document.querySelector('input[type="file"]');
+
+// Add a 'change' event listener to the file input element
+fileInput.addEventListener("change", (e) => {
+ console.log(e.target.files);
+ // Get the selected files from the event target
+ const files = e.target.files;
+
+ // Select the file-list table
+ const fileList = document.querySelector("#file-list");
+
+ // Loop through the selected files
+ for (let i = 0; i < files.length; i++) {
+ // Create a new table row for each file
+ const row = document.createElement("tr");
+ row.innerHTML = `
+