This project offers a web page that displays key information about superheroes, using sortable table, search functionality, and pagination to sift through the data efficiently.
No framework is used. Everything is coded from scratch, using vanilla JavaScript and CSS.
- Superheroes data is fetched from a JSON API: Superhero API.
- Once the data is fetched and parsed, it is displayed in a table.
- Superheroes information includes:
- Icon, Name, Full Name, Powerstats, Race, Gender, Height, Weight, Place of Birth, and Alignment.
- Data is shown in a table with pagination. You can choose page size: 10, 20, 50, 100, or all results.
- The default page size is set to 20.
- Live search functionality filters superheroes by name as you type.
- No search button required — results update automatically on each keystroke.
- Each column can be sorted by clicking on the column heading.
- Toggle between ascending and descending order with multiple clicks.
- Sort by name, powerstats, race, and other fields, with special handling for numerical values (e.g., weight).
- Missing values are sorted last by default.
This project is open-sourced under the MIT License.