A simple web application that fetches and displays random useless facts from an API. Click the button to get a new fact every time!
- Displays a random useless fact.
- Shows the source and the source URL of the fact.
- Each fact is tagged with a unique ID.
- Open
index.html
in your browser or click here. - Click the "🔄 Get a Fact" button to fetch a random useless fact.
- The fact will be displayed along with the source and a link to view more.
The app uses the Useless Facts API to fetch random facts. The API returns a fact in the following format:
text
: The fact.source
: The source of the fact.source_url
: The URL for the source.id
: A unique identifier for the fact.
If you'd like to contribute to this project, please fork the repository and create a pull request.
This project is licensed under the MIT License.