This repository contains a sample web page that demonstrates a modal to display employee data fetched from an API. The page is built using HTML, CSS, and JavaScript.
-
Ensure you have a modern web browser installed on your computer.
-
Download or clone this repository to your local machine.
-
Open the
index.html
file in a web browser. -
Click the "Open Modal" button on the page. This will trigger the modal to open.
-
The modal will display a table with employee data fetched from the dummy.restapiexample.com API.
-
Note that sending too many requests at a time may result in a "Too Many Requests" error message being displayed.
- This code is compatible with modern web browsers.
- The JavaScript code in
index.js
uses Fetch API to make HTTP requests. Ensure that your browser supports this feature.