Icons for games

This commit is contained in:
2024-08-22 01:37:55 +02:00
parent 3b939ca612
commit 8d63fe402d
6 changed files with 2 additions and 1 deletions

BIN
Games/2048/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

View File

@@ -4,6 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="icon.png" type="image/x-icon">
<script src="main.js"></script>
<title>2048</title>
</head>

BIN
Games/DiceWar/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

BIN
Games/NumberQuess6/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

View File

@@ -18,7 +18,7 @@ window.onload = () => {
for(let i=0; i<games.length; i++){
document.body.innerHTML += `
<a href="./${games[i].link}" class="game">
<img src="./img/${games[i].link}.png" alt="${games[i].name}">
<img src="./${games[i].link}/icon.png" alt="${games[i].name}">
</a>`
}
}