Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whack a mole #7

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Binary file modified assets/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/mole.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/wp2568544.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 40 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,64 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./src/styles.css">
</head>

<body>
<h1></h1>
<header>
<h1 id="title"> Catch-Me-If-You-Can!! </h1>
</header>
<main>
<div>
<div>
<h2>Click start to play!</h2>
<h2>Click <button id="start">start</button> to play!</h2>
</div>
<div>
<h2>score: <span id="score">0</span></h2>
</div>
<div>
<h2><span id="timer">0</span> seconds left.</h2>
<h2><span id="timer">0</span> seconds left.</h2>
</div>
</div>
<div class="grid">

<div class="grid">
<div id="hole0" class="hole">
<div id="mole0" class="mole"></div>
</div>
<div id="hole1" class="hole">
<div id="mole1" class="mole"></div>
</div>
<!--TODO: Add the missing holes and moles. -->
<div id="hole2" class="hole">
<div id="mole2" class="mole"></div>
</div>
<div id="hole3" class="hole">
<div id="mole3" class="mole"></div>
</div>
<div id="hole4" class="hole">
<div id="mole4" class="mole"></div>
</div>
<div id="hole5" class="hole">
<div id="mole5" class="mole"></div>
</div>
<div id="hole6" class="hole">
<div id="mole6" class="mole"></div>
</div>
<div id="hole7" class="hole">
<div id="mole7" class="mole"></div>
</div>
<div id="hole8" class="hole">
<div id="mole8" class="mole"></div>
</div>

</div>

</main>
<footer>
<p>© Copyright Adil Azami</p>
</footer>
<script src="./src/index.js"></script>
</body>
</html>
Loading