Skip to content

Commit

Permalink
Removed unwanted files and updated code
Browse files Browse the repository at this point in the history
Removed unwanted files and updated some code in the CSS and HTML
  • Loading branch information
vamshivk committed Oct 28, 2023
1 parent d6862a5 commit 7bcd5c2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
1 change: 0 additions & 1 deletion main.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ <h4>Game Over!</h4>
</div>
</div>
</div>
<script src="script2.js"></script>
<script src="script.js"></script>
</body>

Expand Down
Binary file removed pumpkin.mp4
Binary file not shown.
4 changes: 1 addition & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ function verifyOption(correctAnswer, e) {
selectedOption.style.backgroundColor = "#C43C3C";
wrongGuessCount++;
hangmanImage.src = `images/hangman-${wrongGuessCount}.svg`;

}

const optionContainer = document.getElementById("optionContainer");
Expand All @@ -111,15 +110,14 @@ function verifyOption(correctAnswer, e) {
}

const gameOver = (isVictory) => {
// After game complete.. showing modal with relevant details
console.log(isVictory)
const modalText = isVictory ? `You found the word:` : 'The correct word was:';
gameModal.querySelector("img").src = `images/${isVictory ? 'victory' : 'lost'}.gif`;
gameModal.querySelector("h4").innerText = isVictory ? 'Congrats!' : 'Game Over!';
gameModal.classList.add("show");
}
playAgainBtn.addEventListener("click", () => {
window.location.href = "index.html";
window.location.href = "Levels.html";
});


Empty file removed script2.js
Empty file.
22 changes: 13 additions & 9 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ video {
width: 100%;
text-align: center;
color: #393e46;
background: -webkit-linear-gradient(black, beige);
-webkit-background-clip: text;
-webkit-text-fill-color: black;
background: linear-gradient(to bottom, black, beige); /* Use the standard linear-gradient */
background-clip: text;
-webkit-background-clip: text;
color: transparent;
font-size: 205px;
font-weight: 800;
font-family: 'Poppins', sans-serif;
Expand Down Expand Up @@ -180,7 +181,8 @@ video {
font-size: 2rem;
font-weight: 700;
padding: 0.2em 1em;
background: -webkit-linear-gradient(beige, black);
background: linear-gradient(beige, black);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: beige;
Expand All @@ -198,9 +200,10 @@ video {
font-size: 2rem;
font-weight: 700;
padding: 0.2em 1em;
background: -webkit-linear-gradient(beige, black);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background: linear-gradient(beige, black);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: beige;
border: 10px solid medium;
border-radius: 35px;
Expand All @@ -215,7 +218,8 @@ video {
font-size: 2rem;
font-weight: 700;
padding: 0.2em 1em;
background: -webkit-linear-gradient(beige, black);
background: linear-gradient(beige, black);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: beige;
Expand Down Expand Up @@ -263,8 +267,8 @@ margin-top: 50%;
}

#main2 {

background: -webkit-linear-gradient(beige, black);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin: 0;
Expand Down

0 comments on commit 7bcd5c2

Please sign in to comment.