Skip to content
ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ Shade Shuffle

Shade Shuffle is a fun beginner-friendly JavaScript project that changes the background color of the webpage every time you click a button.

This project is designed as a practice exercise for learning HTML, CSS, and JavaScript.
In this version, the main logic has been removed, so you can write it yourself using the provided comments and hints.


๐ŸŒ Sample Site

You can see the completed sample site here: https://addison-haight.github.io/ShadeShuffle/


๐Ÿงฉ Project Structure

shade-shuffle/ โ”‚ โ”œโ”€โ”€ index.html # Basic page structure โ”œโ”€โ”€ style.css # Styling for the page and button โ”œโ”€โ”€ script.js # JavaScript logic (with TODOs for students) โ””โ”€โ”€ README.md # Project documentation


๐Ÿš€ What Youโ€™ll Learn

By completing this project, youโ€™ll practice:

  • Selecting and manipulating HTML elements using JavaScript DOM methods
  • Generating random colors using JavaScript logic
  • Handling button click events
  • Updating text and styles dynamically
  • Writing clean, commented code

๐Ÿง  Task for You

  1. Open script.js
  2. Implement the following:
    • A function to generate a random hex color code (e.g., #A1B2C3)
    • Logic to:
      • Change the background color
      • Display the new color code inside the <span> element
  3. Test your logic by clicking the Shuffle Shade button.
  4. Customize styles in style.css (optional).

๐Ÿ’ก Hints

  • Use Math.random() and Math.floor() to generate random numbers.
  • A hex color is made up of 6 characters (0โ€“9, Aโ€“F) after the #.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages