-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (64 loc) · 2.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fight the Fire</title>
<link rel="stylesheet" href="./styles/style.css">
</head>
<body>
<!--Screen 1-->
<div id="startGame">
<div class="message">
<h1>Many parts of the world are currently affected by Wildfire. <br/>
Let us try to douse the fire! <br/></h1>
<h3> You have only 30 seconds to save as many trees as you can.<br/>
Click on the wildfires to splash some water and help the firefighters!<br/><br/>
<span class="urgent">HURRY UP!!!</span></h3>
<button id="startNewGame">Start</button>
</div>
</div>
<!--Screen 2-->
<div class="game-screen">
<div class="main">
<h1><iframe src="https://giphy.com/embed/26DNj3iQi58mrvTDW" frameBorder="0"></iframe>FIGHT THE FIRE
<iframe src="https://giphy.com/embed/26DNj3iQi58mrvTDW" frameBorder="0"></iframe></h1>
<div>
<h2 id="score">Trees saved: 0</h2>
<h2 id ="timeLeft">Time Left: 30</h2>
</div>
</div>
<div class="grid">
<div class="square" id="1"></div>
<div class="square" id="2"></div>
<div class="square" id="3"></div>
<div class="square" id="4"></div>
<div class="square" id="5"></div>
<div class="square" id="6"></div>
<div class="square" id="7"></div>
<div class="square" id="8"></div>
<div class="square" id="9"></div>
</div>
</div>
<!--Screen 3-->
<div id ="gameOverScreen">
<!-- Information End Page -->
<div class = "game-message">
<iframe src="https://giphy.com/embed/U4LpAIdyKoDC0ICxYW" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
<h2 id="score">Trees saved: <span id="finalScore"></span> </h2>
<h2>Hooray! <br/>
Your effort made a difference!</h2>
</div>
<div class = "game-information">
<button id="restart-button">Restart</button>
<br/>
<h3> For more information on how to contribute more in real life through technology
<br/>use <a href="https://www.ecosia.org/?c=en" target="_blank"><span>Ecosia</span></a>
- the search engine that plants trees & <br/><a href="https://www.forestapp.cc/" target="_blank"><span>
Forest App</span></a> - an app that helps you stay focused and plant trees.</h3>
</div>
</div>
<script src="scripts/game.js"></script>
<script src="scripts/index.js"></script>
</body>
</html>