Skip to content

Commit

Permalink
fix: add .html to paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperwyczawski committed Aug 22, 2024
1 parent 3125227 commit 67f415b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<img src="bishop-knight-white.png">
<h1>Arx Chess</h1>
</li>
<li><a href="/select-map" class="filled">Local game</a></li>
<li><a href="/select-map.html" class="filled">Local game</a></li>
<li><a href="/" class="filled">Online game (soon)</a></li>
<li>
The main objective of Arx Chess is to capture all of the opponent's castles. To achieve this, you must gain
Expand All @@ -31,7 +31,7 @@ <h1>Arx Chess</h1>
<li>
To move a piece: <span class="no-touch">left-</span>click on the piece, then on the desired destination.
</li>
<li><a href="/pieces">All pieces</a></li>
<li><a href="/pieces.html">All pieces</a></li>
<li><a href="https://github.com/kacperwyczawski/arx-chess">Source code</a></li>
</menu>
</body>
4 changes: 2 additions & 2 deletions select-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
for (const mapPath in maps) {
const map = mapPath.slice(11, -4)
const mapCapitalized = mapPath[11].toUpperCase() + mapPath.slice(12, -4)
html += `<li><a href="/play?map=${map}" class="filled">${mapCapitalized}</a></li>`
html += `<li><a href="/play.html?map=${map}" class="filled">${mapCapitalized}</a></li>`
}
html += "<li><a href='/'>Back to main menu</a></li>"
menu.innerHTML = html
Expand All @@ -32,4 +32,4 @@
<body>
<menu id="menu">
</menu>
</body>
</body>

0 comments on commit 67f415b

Please sign in to comment.