-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
62 lines (62 loc) · 2.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Wikihow game</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="style_mobile.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<div id="instructions">
<h2>Welcome to wikihow game!</h2>
<h4>How to play:</h4>
<ul>
<li>Guess the correct article name to go with the provided image</li>
<li>Every time you guess an incorrect name you will lose a life</li>
<li>Use the "hint" button to get another image from the article to help your guess, you may only use 4 hints per game</li>
<li>The game ends when you either run out of lives or the timer runs out of time</li>
</ul>
<div class="start_button_container">
<button id="main_start_button" class="start_button btn btn-info" onclick="startGame()" disabled>
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
loading...
</button>
</div>
</div>
<div id="game_div">
<div id="image_display"></div>
<div id="options_display"></div>
<div id="hint_display">
<button id="hint_button" class="btn btn-info" onclick="displayHint()">Get a hint (<b id="hints_left"></b> left)</button>
</div>
<div id="stats_box">
<div id="timer_container">
<img alt="timer icon" src="timer.svg"/>
<h4><b id="timer_display"></b></h4>
</div>
<h4><b id="score"></b> points</h4>
<h4><b id="health"></b> lives</h4>
</div>
</div>
<div id="post_game_div" class="center_div">
<h2>Game over!</h2>
<h4>Your score: <b id="post_score"></b></h4>
<div class="start_button_container">
<button onclick="startGame()" class="start_button btn btn-info">Play again</button>
</div>
</div>
<a href="https://github.com/Themis3000/wikihow_guess" target="_blank">
<img id="git_link" alt="github logo" src="github_logo.svg"/>
</a>
<script src="script.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-171020052-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-171020052-1');
</script>
</body>
</html>