From 05b5181b3edd9f3df62d7555cb34b39af57c72f4 Mon Sep 17 00:00:00 2001 From: abdullahalam123 Date: Sat, 8 Nov 2025 13:23:57 +0530 Subject: [PATCH] refactor(toc): clean up HTML structure and comment out status message - Simplified the HTML structure of the table of contents page by removing unnecessary comments and whitespace. - Commented out the status message display in the TypeScript logic for file selection. - Enhanced readability and maintainability of the code. --- src/js/logic/table-of-contents.ts | 2 +- src/pages/table-of-contents.html | 590 ++++++++++++------------------ 2 files changed, 239 insertions(+), 353 deletions(-) diff --git a/src/js/logic/table-of-contents.ts b/src/js/logic/table-of-contents.ts index 5bfbd57..8df7579 100644 --- a/src/js/logic/table-of-contents.ts +++ b/src/js/logic/table-of-contents.ts @@ -107,7 +107,7 @@ function handleFileSelect(file: File) { pdfFile = file; generateBtn.disabled = false; renderFileDisplay(file); - showStatus(`File selected: ${file.name}`, 'success'); + // showStatus(`File selected: ${file.name}`, 'success'); } // Drag and drop handlers diff --git a/src/pages/table-of-contents.html b/src/pages/table-of-contents.html index 756e906..8dd725f 100644 --- a/src/pages/table-of-contents.html +++ b/src/pages/table-of-contents.html @@ -1,369 +1,255 @@ - - - - Generate Table of Contents - BentoPDF - - - - - - -
-
- -

- Generate Table of Contents -

-

- Upload a PDF with bookmarks to generate a table of contents page -

- - -
-
- -

- Click to select a file or drag - and drop -

-

A single PDF file

-

- Your files never leave your device. -

-
- + + -
-

Company

- -
+
+
+ +

+ Generate Table of Contents +

+

+ Upload a PDF with bookmarks to generate a table of contents page +

-
-

Legal

- -
+ +
+
+ +

+ Click to select a file or drag + and drop +

+

A single PDF file

+

+ Your files never leave your device. +

+
+ +
-
-

Follow Us

- + + + + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + + + + + +
+
+ + - - - - - +
+ + + + + + + \ No newline at end of file