From c4bb3217742e26210683d49715b37aa07955e689 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Tue, 20 Jan 2026 23:21:10 +0800 Subject: admin panel --- frontend/admin/admin-style.css | 11 +++++++++++ frontend/admin/admin.js | 16 ++++++++++++++++ frontend/admin/index.html | 13 +++++++++++++ frontend/admin/panel.html | 31 +++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 frontend/admin/admin-style.css create mode 100644 frontend/admin/admin.js create mode 100644 frontend/admin/index.html create mode 100644 frontend/admin/panel.html (limited to 'frontend/admin') diff --git a/frontend/admin/admin-style.css b/frontend/admin/admin-style.css new file mode 100644 index 0000000..86be9f5 --- /dev/null +++ b/frontend/admin/admin-style.css @@ -0,0 +1,11 @@ +#unauthorised { + +} + +#authorised { + +} + +.admin-machine-container { + +} diff --git a/frontend/admin/admin.js b/frontend/admin/admin.js new file mode 100644 index 0000000..5a194c9 --- /dev/null +++ b/frontend/admin/admin.js @@ -0,0 +1,16 @@ +const API_URL = "https://backend.laundryweb.altafcreator.com" + +async function login() { + const field = document.getElementById("pwfield"); + + const response = await fetch(`${API_URL}/admin_login`, { + method: "POST", + credentials: "include", + headers: { + "Content-Type": "text/plain" + }, + body: field.value, + }); + + alert("loggin' in"); +} diff --git a/frontend/admin/index.html b/frontend/admin/index.html new file mode 100644 index 0000000..8d415a1 --- /dev/null +++ b/frontend/admin/index.html @@ -0,0 +1,13 @@ + + + + + Victoria Hall LaundryWeb Admin Panel + + + +

LaundryWeb Admin Panel Log In

+ + + + diff --git a/frontend/admin/panel.html b/frontend/admin/panel.html new file mode 100644 index 0000000..b912553 --- /dev/null +++ b/frontend/admin/panel.html @@ -0,0 +1,31 @@ + + + + + Victoria Hall LaundryWeb Admin Panel + + + +

LaundryWeb Admin Panel

+

You are unauthorised.

+ +
+
+
+ + +
+
+ + +
+
+
+ + -- cgit v1.2.3