Skip to content

Commit

Permalink
final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hassana123 committed Aug 12, 2022
1 parent d56d4e1 commit 6847b55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
}
}
</script>
<!-- instructions phase starts here -->
<div class="popup-container">
<div class="instructions">
<p>You probably already know how to play Tic-Tac-Toe. It's a really simple game, right? That's what most people think. But if you really wrap your brain around it, you'll discover that Tic-Tac-Toe isn't quite as simple as you think!
Expand All @@ -89,6 +90,7 @@ <h1>HOW CAN I WIN AT TIC-TAC-TOE?</h1>
<button id="start-btn">Start Game</button>
</div>
</div>
<!-- instruction phase ends here -->
<div class="container-custom">
<h1>Tic-Tac-Toe</h1>
<h4>Scoreboard</h4>
Expand Down
2 changes: 2 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

let instuctions = document.querySelector(".popup-container");
let startButtun = document.querySelector("#start-btn");
let customContainer = document.querySelector(".container-custom");

// adding functionalities to the instructions container
startButtun.addEventListener("click", () =>{
instuctions.style.display = "none";
customContainer.style.display = "flex";
Expand Down
8 changes: 1 addition & 7 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@ h1 {
.right {
text-align: right;
}
.container-custom{
display: none;
}


/* styling for instruction container */

.popup-container{
position: absolute;
width: 20%;
}

/*****************************/
/* Styling For Menu */
Expand Down

0 comments on commit 6847b55

Please sign in to comment.