/random-word

I create this page for my self and my friends

Primary LanguageJavaScript

A simple web application that generates random words and phrases. I made this project to make it easier for myself and my friends to randomize for learning purposes.

Features

  • Generate random words and phrases.
  • Copy the generated text to the clipboard.
  • Toggle between light and dark modes for a customized viewing experience.
  • Scroll to the top of the page with a single click.
  • Supports user input, file input, and default server-side data for word generation.

Getting Started

To get started with the Random Word Generator, follow these steps:

  1. Clone the repository to your local machine.
  2. Open the index.html file in a web browser to launch the application.

Or you can start with this: https://quoczuong.github.io/random-word/

Usage

  1. Input the number of random words or phrases you'd like to generate.
  2. Click the "Generate" button to generate random text based on your input.
  3. Use the "Copy" button to copy the generated text to your clipboard.
  4. Toggle the "Dark Mode" button to change the appearance of the application.
  5. Click the "Scroll to Top" button to quickly return to the top of the page.

File Input

The Random Word Generator supports generating text from a local file. To use this feature, follow these steps:

  1. Click the "Choose File" button.
  2. Select a text file from your local machine.
  3. Click the "Generate" button to generate random text based on the content of the selected file.

Note

The web will automatically take priority according to upload file -> import -> default server-side source

Credits

This project uses the following technologies and libraries:

  • HTML
  • CSS
  • JavaScript