Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 129 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1,129 @@
<!DOCTYPE html> <html> <head><style>table{font-family: arial, sans-serif;border-collapse: collapse;width: 100% ;}.tab { margin-left: 40px; }td, th{text-align: left;padding: 8px;}tr:nth-child(even) {background-color: #dddddd;}div#expand{display:block;}</style> </head> <body><a href = "html/types.html">Types Table</a><br><a href = "html/enums.html">Enumerations Table</a><br><a href = "html/packets.html">Packets Table</a><br><a href = "html/packetHeader.html">Packet Header</a><br><a href = "html/reliabilityHeader.html">RakNet Header</a></body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mojang Protocol Documentation</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
background-color: #f9f9f9;
color: #333;
}

header {
background-color: #1e88e5;
color: white;
padding: 1rem;
text-align: center;
font-size: 1.5rem;
}

main {
max-width: 800px;
margin: 2rem auto;
padding: 1rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

ul {
list-style: none;
padding: 0;
}

li {
margin: 0.5rem 0;
}

a {
text-decoration: none;
color: #1e88e5;
font-weight: bold;
transition: color 0.2s;
}

a:hover {
color: #0d47a1;
}

table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
margin-top: 1rem;
}

td, th {
text-align: left;
padding: 8px;
border: 1px solid #ddd;
}

tr:nth-child(even) {
background-color: #f2f2f2;
}

.tab {
margin-left: 40px;
}

.collapsible {
cursor: pointer;
background-color: #e3f2fd;
padding: 0.5rem 1rem;
border-radius: 5px;
border: none;
text-align: left;
outline: none;
font-size: 1rem;
width: 100%;
}

.active, .collapsible:hover {
background-color: #bbdefb;
}

.content {
display: none;
padding-left: 1rem;
margin-bottom: 1rem;
}
</style>
</head>
<body>

<header>Mojang Protocol Documentation</header>

<main>
<button class="collapsible">Tables & Headers</button>
<div class="content">
<ul>
<li><a href="html/types.html" target="_blank">Types Table</a></li>
<li><a href="html/enums.html" target="_blank">Enumerations Table</a></li>
<li><a href="html/packets.html" target="_blank">Packets Table</a></li>
<li><a href="html/packetHeader.html" target="_blank">Packet Header</a></li>
<li><a href="html/reliabilityHeader.html" target="_blank">RakNet Header</a></li>
</ul>
</div>
</main>

<script>
const coll = document.querySelectorAll(".collapsible");
coll.forEach(button => {
button.addEventListener("click", function() {
this.classList.toggle("active");
const content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
});
</script>

</body>
</html>