Skip to content

Commit

Permalink
add html
Browse files Browse the repository at this point in the history
  • Loading branch information
subthedubdub committed Dec 7, 2024
1 parent 7d18fe4 commit c36d7ef
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advent of Code Solutions</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 2em;
}
h1 {
text-align: center;
}
ul {
list-style: none;
padding: 0;
}
li {
margin: 0.5em 0;
}
a {
text-decoration: none;
color: #007BFF;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Advent of Code Solutions</h1>
<ul>
<!-- Automatically generated links -->
<script>
const numSolutions = 6; // Adjust this for the number of days
const list = document.querySelector("ul");
for (let i = 1; i <= numSolutions; i++) {
const li = document.createElement("li");
const a = document.createElement("a");
a.href = `${String(i).padStart(2, '0')}.html`;
a.textContent = `Day ${i}`;
li.appendChild(a);
list.appendChild(li);
}
</script>
</ul>
</body>
</html>

0 comments on commit c36d7ef

Please sign in to comment.