mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-18 17:23:40 -05:00
41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
<script>
|
|
if (!localStorage.getItem('loggedInUser')) {
|
|
window.location.href = "auth.html";
|
|
}
|
|
</script>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>MilkNet Forum</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div class="auth-container">
|
|
<h1>MilkNet Forum</h1>
|
|
|
|
<!-- Forum Post Section -->
|
|
<div id="new-thread">
|
|
<textarea id="post-content" placeholder="Write your post..."></textarea>
|
|
<input type="file" id="image-upload" accept="image/*">
|
|
<button onclick="uploadImage()">Upload Image</button>
|
|
<button onclick="submitPost()">Submit Post</button>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<!-- Login/Registration Section -->
|
|
<div class="auth-container">
|
|
<h2>Already a member?</h2>
|
|
<input type="text" id="login-username" placeholder="Username"><br>
|
|
<input type="password" id="login-password" placeholder="Password"><br>
|
|
<button onclick="login()">Login</button>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|