Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 2.4 KB

README.md

File metadata and controls

75 lines (51 loc) · 2.4 KB

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