Add noticeboard.md

This commit is contained in:
support 2025-11-02 02:15:55 +00:00
parent c445acda9b
commit 4e2f7cbae7

37
docs/noticeboard.md Normal file
View file

@ -0,0 +1,37 @@
# 🗞️ KH3 Noticeboard
<div id="noticeboard">
<p><em>Loading latest updates...</em></p>
</div>
<script>
async function loadNoticeboard() {
const container = document.getElementById("noticeboard");
try {
const response = await fetch("/_files/noticeboard_data.json");
const data = await response.json();
container.innerHTML = `
<p><strong>Last updated:</strong> ${new Date(data.lastUpdated).toLocaleString()}</p>
${data.sections.map(section => `
<div class="md-typeset" style="margin-top: 2em;">
<h2>${section.title}</h2>
<ul>
${section.items.map(item => `
<li>
<strong>${item.assignee}</strong>: ${item.description}
${item.type === "action_item" ? "🔥" : ""}
</li>
`).join("")}
</ul>
</div>
`).join("")}
`;
} catch (err) {
container.innerHTML = `<p style="color:red;">Error loading noticeboard: ${err}</p>`;
}
}
loadNoticeboard();
</script>