diff --git a/admin-side.html b/admin-side.html
index e5d465e..e166684 100644
--- a/admin-side.html
+++ b/admin-side.html
@@ -4,7 +4,7 @@
-
Mit Canteen | Sie
+ Canteen Automation System | Sie
diff --git a/assets/images/footer-illustration.webp b/assets/images/footer-illustration.webp
index 014a67d..0668555 100644
Binary files a/assets/images/footer-illustration.webp and b/assets/images/footer-illustration.webp differ
diff --git a/assets/js/admin.js b/assets/js/admin.js
index 81c83ea..9dfb872 100644
--- a/assets/js/admin.js
+++ b/assets/js/admin.js
@@ -1,3 +1,5 @@
+console.log("Admin JS loaded!");
+
// --- Admin Product Management Btns ---
const addProductBtn = document.querySelector("#add-product-menu");
const removeProductBtn = document.querySelector("#remove-product-menu");
@@ -6,21 +8,33 @@ const removeProductBtn = document.querySelector("#remove-product-menu");
const addContainer = document.querySelector(".add-container");
const removeContainer = document.querySelector(".remove-container");
-// Admin Side URL
-const adminSRC = "http://127.0.0.1:5502/admin-side.html";
-
-// --- Admin Side ---
-if (adminSRC === window.location.href) {
- console.log("admin side");
- // Admin Management Btns
+// Check if elements exist before adding event listeners
+if (addProductBtn && addContainer && removeContainer) {
addProductBtn.addEventListener("click", () => {
addContainer.classList.toggle("show-container");
removeContainer.classList.remove("show-container");
});
+}
- // Admin Management Btns
+if (removeProductBtn && addContainer && removeContainer) {
removeProductBtn.addEventListener("click", () => {
removeContainer.classList.toggle("show-container");
addContainer.classList.remove("show-container");
});
}
+
+// --- Order Page Fix ---
+document.addEventListener("DOMContentLoaded", () => {
+ const orderPage = document.querySelector("body"); // Check if we're on order.html
+ if (orderPage) {
+ console.log("Order page detected!");
+
+ // Example: Ensuring order-related elements exist
+ const orderTable = document.querySelector("table");
+ if (orderTable) {
+ console.log("Order table found!");
+ } else {
+ console.warn("Order table not found.");
+ }
+ }
+});
diff --git a/assets/js/features.js b/assets/js/features.js
index f091122..e9478bd 100644
--- a/assets/js/features.js
+++ b/assets/js/features.js
@@ -288,11 +288,6 @@ function customerFooterUI() {
-
-
- © Copyright 2020 - 2021. All Rights Reserved
-
-
`;
})
@@ -342,12 +337,6 @@ function userFooterUI() {
For Professional Courses, Visit: www.altius.ac.in
-
-
-
- © Copyright 2020 - 2021. All Rights Reserved
-
-
`;
})
diff --git a/assets/js/functioning.js b/assets/js/functioning.js
index 93aae6e..8f8df47 100644
--- a/assets/js/functioning.js
+++ b/assets/js/functioning.js
@@ -1,12 +1,13 @@
// --- Authentication Part ---
// Your web app's Firebase configuration
var firebaseConfig = {
- apiKey: "AIzaSyDBn5GMIvsqhTPMVAeylq-I_2R8SSJYzmI",
- authDomain: "js-login-form.firebaseapp.com",
- projectId: "js-login-form",
- storageBucket: "js-login-form.appspot.com",
- messagingSenderId: "1039987076182",
- appId: "1:1039987076182:web:e51f940647b55c0cd7dff7",
+ apiKey: "AIzaSyBQKKbbd_0skAQidmlyqMEgeSky5hfPNI0",
+ authDomain: "mit-canteen-21c53.firebaseapp.com",
+ projectId: "mit-canteen-21c53",
+ storageBucket: "mit-canteen-21c53.firebasestorage.app",
+ messagingSenderId: "162842621279",
+ appId: "1:162842621279:web:92663f913df89adf5cf2ea",
+ measurementId: "G-28Y95R0R65"
};
// Initialize Firebase
diff --git a/client-side.html b/client-side.html
index 675a2e6..595478d 100644
--- a/client-side.html
+++ b/client-side.html
@@ -4,7 +4,7 @@
- Mit Canteen | Menu
+ Canteen Automation System | Menu
@@ -108,35 +108,32 @@
-