js/main.js
// This function will change the colour of the background randomly
This function will change the colour of the background randomly
This function will change the colour of the background randomly
function change()
{
    if (count === 0)
    {
        unsetBackgroundAnimation();
    }
    clickMe.style.animationName = "hit";
    let colour = generateRandomColour();
    body.style.backgroundColor = colour;
    count++;
    setTimeout(() => {
        clickMe.style.animationName = "unset";
    }, 50);
}
function change ( ) { if ( count === 0 ) { unsetBackgroundAnimation ( ) ; } clickMe . style . animationName = "hit" ; let colour = generateRandomColour ( ) ; body . style . backgroundColor = colour ; count ++ ; setTimeout ( ( ) => { clickMe . style . animationName = "unset" ; } , 50 ) ; }
This function will change the colour of the background randomly
This function will change the colour of the background randomly