This project is a web-based application that allows users to explore historical events by entering a specific year. The application fetches real-time data from a public API and displays relevant historical information in a clean and interactive timeline format.
The goal of this project is to demonstrate the use of JavaScript, API integration, and modern UI design techniques.
- Wikipedia API Used to fetch historical events and summaries based on the entered year.
-
🔍 Search by Year Users can enter a year to fetch related historical events.
-
📊 Sorting Events can be sorted alphabetically (A–Z / Z–A) using JavaScript array
.sort(). -
❤️ Favorites System Users can save events using local storage and view them later.
-
🌙 Dark / Light Mode Toggle between themes for better user experience.
-
⚡ Debouncing (Bonus Feature) Optimizes performance by limiting how often search/filter functions are executed.
-
🎨 Responsive UI Works across mobile, tablet, and desktop devices.
- HTML
- CSS
- JavaScript
- Fetch API
- LocalStorage
-
API integration using
fetch() -
Array Higher-Order Functions:
.map()for rendering data.filter()(earlier version).sort()for sorting
-
Event handling
-
DOM manipulation
- Download or clone the repository
- Open
index.htmlin any web browser - Enter a year and explore events
index.html→ Home pagetimeline.html→ Displays eventsfavorites.html→ Saved eventsstyle.css→ Stylingapp.js→ Main logic
- Add category filters (science, war, etc.)
- Add pagination or infinite scroll
- Improve event accuracy with better APIs
This project helped in understanding how to work with APIs, manage data dynamically, and build a responsive and interactive user interface using JavaScript.