Skip to content

simple web application that fetches and displays random useless facts from an API. Click the button to get a new fact every time!

License

Notifications You must be signed in to change notification settings

ThatSINEWAVE/UselessFacts

Repository files navigation

A simple web application that fetches and displays random useless facts from an API. Click the button to get a new fact every time!

UselessFacts

Features

  • Displays a random useless fact.
  • Shows the source and the source URL of the fact.
  • Each fact is tagged with a unique ID.

How to Use

  1. Open index.html in your browser or click here.
  2. Click the "🔄 Get a Fact" button to fetch a random useless fact.
  3. The fact will be displayed along with the source and a link to view more.

API

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.

Contributing

If you'd like to contribute to this project, please fork the repository and create a pull request.

License

This project is licensed under the MIT License.