-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vamshivk/master
Change UI
- Loading branch information
Showing
12 changed files
with
689 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Hangman</title> | ||
</head> | ||
|
||
<body style="background-color: black"> | ||
|
||
<div class="video-container"> | ||
<video autoplay loop muted> | ||
<source src="Bats.mp4" type="video/mp4"> | ||
</video> | ||
</div> | ||
<section> | ||
<button id="btn1" class="btn1" value="easy">Beginner</button> | ||
<button id="btn2" class="btn2" value="medium">Intermediate</button> | ||
<button id="btn3" class="btn3" value="hard">Expert</button> | ||
|
||
|
||
<div class="container"> | ||
<h1 id="main2" style="color: beige">HANGMAN</h1> | ||
</div> | ||
<img class="hat" src="images/hat.png" width="100" height="80" alt="Hat"> | ||
<img id="broom" src="images/witch.png" alt="Broom"> | ||
|
||
|
||
</section> | ||
<script > | ||
var easybtn = document.getElementById("btn1"); | ||
var mediumbtn = document.getElementById("btn2"); | ||
var Hardbtn = document.getElementById("btn3"); | ||
|
||
var difficulty=""; | ||
var url =""; | ||
easybtn.addEventListener('click', function(event){ | ||
|
||
|
||
difficulty = event.target.value.toLowerCase(); | ||
|
||
// url = `https://opentdb.com/api.php?amount=10&category=18&difficulty=${difficulty}&type=multiple` | ||
url = `main.html?difficulty=${difficulty}`; | ||
|
||
window.location.href = url; | ||
|
||
}) | ||
|
||
mediumbtn.addEventListener('click',function(event){ | ||
difficulty = event.target.value.toLowerCase(); | ||
// url = `https://opentdb.com/api.php?amount=10&category=18&difficulty=${difficulty}&type=multiple` | ||
url = `main.html?difficulty=${difficulty}`; | ||
|
||
window.location.href = url; | ||
|
||
}) | ||
Hardbtn.addEventListener('click',function(evebt){ | ||
difficulty = event.target.value.toLowerCase(); | ||
// url = `https://opentdb.com/api.php?amount=10&category=18&difficulty=${difficulty}&type=multiple` | ||
url = `main.html?difficulty=${difficulty}`; | ||
|
||
window.location.href = url; | ||
}) | ||
|
||
console.log(url); | ||
|
||
</script> | ||
</body> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Hangman</title> | ||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
|
||
<body class="background-image" style="background-color: black "> | ||
<section class="onescreen"> | ||
<video id="pumpkin-video" src="Bats.mp4" autoplay muted loop></video> | ||
<h1 id="main1"> | ||
<span style="color:beige;">H</span> | ||
<span style="color:beige;">A</span> | ||
<span style="color:beige;">N</span> | ||
<span style="color:beige;">G</span> | ||
<span style="color:beige;">M</span> | ||
<span style="color:beige;">A</span> | ||
<span style="color:beige;">N</span> | ||
|
||
</h1> | ||
</section> | ||
<header style="color: beige">Hangman</header> | ||
|
||
<a href="Levels.html"> | ||
<button class="btn">Play Game</button> | ||
</a> | ||
<div class="pumpkin"></div> | ||
<div class="pumpkin"></div> | ||
<div class="pumpkin"></div> | ||
|
||
</body> | ||
</html> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.