Skip to content

Commit

Permalink
Update cl.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonTDM authored Oct 7, 2024
1 parent 4142d2f commit 65453e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions game/cl.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
<title>Changelog</title>
</head>
<body>
<ul id="commit-list"></ul>

<script>
document.addEventListener("DOMContentLoaded", () => {
const commitList = document.getElementById("commit-list");
const commitList = document.createElement("ul");
document.body.appendChild(commitList);
const apiUrl =
"https://api.github.com/repos/roblnet13/pvz/commits";

Expand All @@ -19,8 +18,10 @@
.then((commits) => {
commits.forEach((commit) => {
const listItem = document.createElement("li");
listItem.textContent = `${commit.commit.author.name}: ${commit.commit.message}`;
const itemText = document.createElement("pre");
itemText.textContent = `${commit.commit.author.name}: ${commit.commit.message}`;
commitList.appendChild(listItem);
listItem.appendChild(itemText);
});
})
.catch((error) => {
Expand Down

0 comments on commit 65453e0

Please sign in to comment.