Sagar-Sharma-7 / background-color-changer

A smile Background Color Changer. You can find new colors from this project. View Demo by clicking on link in README.md file

Home Page:https://sagar-sharma-7.github.io/background-color-changer/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi, I'm Sagar Sharma

This is Smile Background Color Change. You can find new colors with this project...


If you have any crazy idea then please pull request...

Result




Text Editor Used

alttext

Languages Used

html css js


JavaScript Algorithm For Random Color

const body = document.querySelector("body");
randomColor.addEventListener("click", () => {
    let r = Math.floor(Math.random() * 256);
    let g = Math.floor(Math.random() * 256);
    let b = Math.floor(Math.random() * 256);
    body.style.backgroundColor = `rgb(${r}, ${g}, ${b})`;
});

Cloning this repositary using command line

  1. Open Git Bash.
  2. Change the current working directory to the location where you want the cloned directory.
  3. Type git clone https://github.com/Sagar-Sharma-7/background-color-changer.git
  4. Press Enter to create the clone of this repositary. `

How to reach me?

ForTheBadge makes-people-smile



Follower


ForTheBadge built-with-love ForTheBadge makes-people-smile

alttext License: MIT

About

A smile Background Color Changer. You can find new colors from this project. View Demo by clicking on link in README.md file

https://sagar-sharma-7.github.io/background-color-changer/index.html

License:MIT License


Languages

Language:JavaScript 34.6%Language:CSS 34.0%Language:HTML 31.4%