This is a website clone project imitating html5games.com, used to showcase HTML5 games.
.
├── index.html # Main page
├── game.html # Dynamic game page (loads different games via URL parameters)
├── game-detail.html # Game details page (old version, replaced by game.html)
├── about.html # About page
├── admin/ # Management tools
│ └── game-manager.html # Game management tool (for batch adding games)
├── styles/ # CSS styles
│ ├── main.css # Main style file
│ ├── game-detail.css # Game detail page style
│ └── about.css # About page style
├── scripts/ # JavaScript files
│ ├── games-data.js # Game data
│ └── main.js # Main functionality script
└── assets/ # Resource files
└── images/ # Game images
- Responsive design, adapts to various screen sizes
- Game category navigation
- Game card display
- Interactive game selection
- Game iframe loading and fullscreen mode
- Game management tool (batch adding games)
- Clone or download this project
- Open the
index.htmlfile directly in your browser - Or run the project using a local server:
# If you have Python installed, you can start a simple HTTP server with: # Python 3: python -m http.server # Python 2: python -m SimpleHTTPServer
This project supports batch adding iframe games in two ways:
- Open the
admin/game-manager.htmlpage - In the "Add Game" tab, you can add games individually
- In the "Batch Add" tab, you can add multiple games at once
- In the "Manage Games" tab, you can view and delete added games
- In the "Export Data" tab, you can export game data, then copy the generated code to the
scripts/games-data.jsfile
Batch adding games format:
gameID|gameTitle|category|imageURL|iframeURL|section(new/popular/recommended)
For example:
western-sniper|Western Sniper|Shooting|assets/images/western-sniper.jpg|https://example.com/games/western-sniper/index.html|new
go-escape|Go Escape|Adventure|assets/images/go-escape.jpg|https://example.com/games/go-escape/index.html|popular
- Open the
scripts/games-data.jsfile - Add new game objects to the appropriate game array:
{ id: "gameID", title: "gameTitle", category: "category", image: "imageURL", url: "#", iframeUrl: "iframeURL" }
- Save the file and refresh the website to see the newly added games
- This project is implemented using pure HTML, CSS, and JavaScript
- Images use placeholders; in a real project, these should be replaced with actual game images
- Games are loaded via iframes and support fullscreen mode
- User login and game favorite functionality
- Game rating system
- Game search function
- Game category pages
- More comprehensive management backend
This project is for learning and demonstration purposes only, not for commercial use. The original website copyright belongs to html5games.com.