Skip to content

Commit

Permalink
moble state ok
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahID committed Feb 25, 2024
1 parent 37f5466 commit 7036f1c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dicee.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ <h1>Refresh Me</h1>

</div>

<button id="Refresh">Refresh</button>

<script src = "index.js"> </script>
</body>

Expand Down
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ else if (randomNumberTwo > randomNumberOne){
document.querySelector('h1').innerHTML = "PLAYER TWO WINS"
} else {
document.querySelector('h1').innerHTML = "DRAW..!"
}
}


const reload = document.querySelector('#Refresh');

reload.addEventListener('click', ()=>{
location.reload();
})
32 changes: 31 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ h1 {

p {
font-size: 2rem;
color: #fafafa;
color: rgba(218, 165, 32, 0.678);
font-family: 'Indie Flower', cursive;
}

Expand All @@ -33,10 +33,40 @@ img {
width: 80%;
}

#Refresh{
width: 10vw;
height: 5vh;
background-color: rgb(201, 25, 25);
border: 0px;
border-radius: 5px;
color: white;
font-family: Agency FB;
font-weight: 900;
font-size: 1.4rem;
margin-top: 3rem;
margin-left: 45vw;
cursor: pointer;
}

#Refresh:hover{
transition: all 0.5s ease-in-out 0s;
background-color: rgba(255, 0, 0, 0.767);

}

footer {
margin-top: 5%;
color: #EEEEEE;
text-align: center;
font-family: 'Indie Flower', cursive;

}


@media screen and (max-width: 790px) {
#Refresh{
width: 15vw;
margin-left: 40vw;

}
}

0 comments on commit 7036f1c

Please sign in to comment.