From eec838423e0349ff3611ae28f42a34cdde52733f Mon Sep 17 00:00:00 2001 From: Voxel Date: Tue, 15 Apr 2025 17:42:45 -0400 Subject: [PATCH] Delete forum directory --- forum/auth.html | 37 --------------------------- forum/auth.js | 20 --------------- forum/index.html | 36 --------------------------- forum/script.js | 46 ---------------------------------- forum/style.css | 65 ------------------------------------------------ 5 files changed, 204 deletions(-) delete mode 100644 forum/auth.html delete mode 100644 forum/auth.js delete mode 100644 forum/index.html delete mode 100644 forum/script.js delete mode 100644 forum/style.css diff --git a/forum/auth.html b/forum/auth.html deleted file mode 100644 index 7b2ebe2..0000000 --- a/forum/auth.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - MilkBoard | Login / Register - - - - -
-

Login / Register

-
- -
-
-
- - - - -
-
-
- -
-
-
- - - - - - diff --git a/forum/auth.js b/forum/auth.js deleted file mode 100644 index 63c33c6..0000000 --- a/forum/auth.js +++ /dev/null @@ -1,20 +0,0 @@ -document.getElementById("auth-form").addEventListener("submit", function (event) { - event.preventDefault(); - - const username = document.getElementById("username").value; - const password = document.getElementById("password").value; - - const turnstileResponse = document.querySelector(".cf-turnstile-response").value; - if (!turnstileResponse) { - alert("Please complete the CAPTCHA"); - return; - } - - // Simulate authentication (In a real application, verify credentials and CAPTCHA on the server) - if (username && password) { - localStorage.setItem("username", username); - window.location.href = "index.html"; - } else { - alert("Invalid login credentials"); - } -}); diff --git a/forum/index.html b/forum/index.html deleted file mode 100644 index 482bfed..0000000 --- a/forum/index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - MilkBoard - - - -
-

MilkBoard

- -
- -
-
- -
- -
-

Create

- - -
-
- - - - - - diff --git a/forum/script.js b/forum/script.js deleted file mode 100644 index 2ae06f7..0000000 --- a/forum/script.js +++ /dev/null @@ -1,46 +0,0 @@ -document.addEventListener("DOMContentLoaded", () => { - const postContent = document.getElementById("post-content"); - const postSubmit = document.getElementById("post-submit"); - const postList = document.getElementById("post-list"); - const authLinks = document.getElementById("auth-links"); - - let currentUser = null; // Store the current user info - - // Check if user is logged in - const checkUser = () => { - // Simulate user authentication for now (In real case, check from the server) - const user = localStorage.getItem("username"); - if (user) { - currentUser = user; - postContent.disabled = false; - postSubmit.disabled = false; - authLinks.innerHTML = `Logged in as ${user} | Logout`; - } else { - postContent.disabled = true; - postSubmit.disabled = true; - } - }; - - // Handle post creation - postSubmit.addEventListener("click", () => { - const content = postContent.value.trim(); - if (content) { - const newPost = document.createElement("div"); - newPost.classList.add("post"); - newPost.innerHTML = ` -

${currentUser}

-

${content}

- `; - postList.prepend(newPost); - postContent.value = ''; - } - }); - - // Logout functionality - const logout = () => { - localStorage.removeItem("username"); - checkUser(); - }; - - checkUser(); -}); diff --git a/forum/style.css b/forum/style.css deleted file mode 100644 index e5d0e0d..0000000 --- a/forum/style.css +++ /dev/null @@ -1,65 +0,0 @@ -body { - font-family: Arial, sans-serif; - margin: 0; - padding: 0; -} - -header { - background-color: #333; - color: white; - padding: 10px; - text-align: center; -} - -header h1 { - margin: 0; -} - -#auth-links a { - color: white; - text-decoration: none; -} - -main { - padding: 20px; -} - -textarea { - width: 100%; - height: 100px; - padding: 10px; - margin-bottom: 10px; -} - -button { - padding: 10px 20px; - background-color: #333; - color: white; - border: none; - cursor: pointer; -} - -button:disabled { - background-color: #ccc; -} - -#post-list { - margin-top: 20px; -} - -.post { - background-color: #f9f9f9; - padding: 15px; - margin: 10px 0; - border: 1px solid #ccc; -} - -footer { - background-color: #333; - color: white; - padding: 10px; - text-align: center; - position: fixed; - width: 100%; - bottom: 0; -}