pages/forum/index.html
2025-04-15 15:01:47 -04:00

38 lines
1,008 B
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">
<script src="https://cdn.jsdelivr.net/npm/@joeattardi/emoji-button@4.6.2/dist/index.min.js"></script>
</head>
<body>
<header>
<h1>MilkNet Forum</h1>
</header>
<div id="new-thread">
<h2>New Thread</h2>
<input type="text" id="thread-title" placeholder="Thread Title"><br>
<div class="emoji-wrap">
<textarea id="thread-content" placeholder="Post content..."></textarea>
<button class="emoji-button" data-target="thread-content">😊</button>
</div>
<input type="file" id="thread-image"><br>
<button onclick="createThread()">Post</button>
</div>
<hr>
<div id="threads"></div>
<script src="script.js"></script>
</body>
</html>