Skip to content

AlizayAyesha/Random-Hex-Color-Code-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random-Hex-Color-Code-Generator

Its a jQuery-based web application that allows users to generate random hex color codes and copy them to the clipboard with a single click.

Table of Contents

Usage

Generating and Displaying Random Colors

Clicking the "Generate Color" button

generates a random hex color code.
It updates the input field with the generated color code and changes the text color and border color of the input field to match the generated color.
It also updates the background color of a preview box and a copy button to reflect the generated color.
Clicking the "Copy Code" button copies the generated color code to the clipboard.
It also displays a confirmation message with a slide effect for 2 seconds.

Contributing

Contributions are welcome! Here's how you can contribute:

Fork the repository

Create a new branch (git checkout -b feature) Make changes and commit (git commit -am 'Add feature') Push to the branch (git push origin feature) Create a new Pull Request

results

image

Installation

To use Project Name, include jQuery in your HTML file. You can use a CDN link to include jQuery:

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> ```



[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)