-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Grayson
authored and
Grayson
committed
Nov 14, 2024
1 parent
d3be2d2
commit f30386c
Showing
8 changed files
with
137 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"name": "World's Hardest Game", | ||
"icon": "/data/icon.png", | ||
"link": "/games/swf" | ||
}, | ||
{ | ||
"name": "Game 2", | ||
"icon": "/data/icon.png", | ||
"link": "/game/nonexistent" | ||
} | ||
] | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>iidk.dev</title> | ||
<link rel="icon" type="image/png" href="/data/icon.png"> | ||
<link rel="stylesheet" href="/css/style.css"> | ||
</head> | ||
<body> | ||
<script src="/js/header.js"></script> | ||
<script src="/js/games.js"></script> | ||
<div class="container" style="width: 95%;"> | ||
<p>Games</p> | ||
<div class="grid"> </div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>iidk.dev</title> | ||
<link rel="icon" type="image/png" href="/data/icon.png"> | ||
<link rel="stylesheet" href="/css/style.css"> | ||
</head> | ||
<body> | ||
<script src="/js/header.js"></script> | ||
<div class="container" style="width: 95%;"> | ||
<p>World's Hardest Game</p> | ||
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script> | ||
<object><param name="movie" value="Worlds Hardest Game.swf"><embed src="/data/games/swf/whg.swf" width="100%" height="100%"/></object> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
document.addEventListener("DOMContentLoaded", function() { | ||
fetch('/data/games.json') | ||
.then(response => response.json()) | ||
.then(data => { | ||
const grid = document.querySelector('.grid'); | ||
|
||
data.forEach(game => { | ||
const gameElement = document.createElement('a'); | ||
gameElement.href = game.link; | ||
gameElement.classList.add('no-style'); | ||
|
||
const innerContainer = document.createElement('div'); | ||
innerContainer.classList.add('inner-container'); | ||
|
||
document.createElement('br'); | ||
|
||
const img = document.createElement('img'); | ||
img.src = game.icon; | ||
innerContainer.appendChild(img); | ||
|
||
const gameName = document.createElement('gameTitle'); | ||
gameName.textContent = game.name; | ||
innerContainer.appendChild(gameName); | ||
|
||
gameElement.appendChild(innerContainer); | ||
grid.appendChild(gameElement); | ||
}); | ||
}) | ||
.catch(error => console.error('Error loading games:', error)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.