From 69e2ee82582942bd7e38104839b2faa2dcfda573 Mon Sep 17 00:00:00 2001 From: Rainy21 Date: Wed, 25 Feb 2026 14:13:07 -0500 Subject: [PATCH] got the button to open the form --- db/my_library.db | Bin 32768 -> 32768 bytes static/css/style.css | 2 ++ static/js/main.js | 28 ++++++++++++++++++---------- templates/main.html | 17 +++++++++-------- 4 files changed, 29 insertions(+), 18 deletions(-) diff --git a/db/my_library.db b/db/my_library.db index 9763ca35c38abc5bccbe1f42ec5389f8aaf460c1..e7a6c9b1cf71615bb870f8b366d11bf4fbbf2447 100644 GIT binary patch delta 76 zcmZo@U}|V!njp=nJW 0) { + openBtns.forEach(btn => { + btn.addEventListener("click", function() { + modal.showModal(); + }); + }); + } -closebtn.addEventListener("click", function() { - modal.close(); -}) ; \ No newline at end of file + if (closeBtn && modal) { + closeBtn.addEventListener("click", function() { + modal.close(); + }); + } +}); \ No newline at end of file diff --git a/templates/main.html b/templates/main.html index 411b60c..27365a9 100644 --- a/templates/main.html +++ b/templates/main.html @@ -7,14 +7,14 @@ Show log - + - + @@ -50,7 +50,7 @@
-
+
+ log a book/show
@@ -79,13 +79,13 @@

📚 My Library

- {% comment %} button {% endcomment %} - + {# button #} + - {% comment %} this is the form {% endcomment %} + {# this is the form #} -
+ +
@@ -121,6 +122,6 @@
- +