-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (86 loc) · 4.38 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/style.css" />
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Quicksand:300,400" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<title>Hangman</title>
</head>
<body onkeydown="playerGuess(event)" onload="window.mobileAndTabletCheck()">
<h1>Countries you never heard of.</h1>
<main>
<p id="demo"></p>
<p id="wrong"></p>
<p id="winner"></p>
<div id="mini-grid4">
<div></div>
<div id="fraction">
<span><p id="wins"></p></span><span><p id="denominator"> /9</p></span>
</div>
</div>
<div id="mini-grid1">
<p id="wg">Wrong guesses: </p>
<p id="wrongGuesses"></p>
</div>
<div id="mini-grid2">
<p id="gr">Tries left: </p>
<p id="remainingGuesses"></p>
</div>
<div id="keyboard" style="display: none">
<div class="top-row">
<span><button id="letter" value="q"><p>q</p></button></span>
<span><button id="letter" value="w"><p>w</p></button></span>
<span><button id="letter" value="e"><p>e</p></button></span>
<span><button id="letter" value="r"><p>r</p></button></span>
<span><button id="letter" value="t"><p>t</p></button></span>
<span><button id="letter" value="y"><p>y</p></button></span>
<span><button id="letter" value="u"><p>u</p></button></span>
<span><button id="letter" value="i"><p>i</p></button></span>
<span><button id="letter" value="o"><p>o</p></button></span>
<span><button id="letter" value="p"><p>p</p></button></span>
</div>
<div class=" middle-row">
<span><button id="letter" value="a"><p>a</p></button></span>
<span><button id="letter" value="s"><p>s</p></button></span>
<span><button id="letter" value="d"><p>d</p></button></span>
<span><button id="letter" value="f"><p>f</p></button></span>
<span><button id="letter" value="g"><p>g</p></button></span>
<span><button id="letter" value="h"><p>h</p></button></span>
<span><button id="letter" value="j"><p>j</p></button></span>
<span><button id="letter" value="k"><p>k</p></button></span>
<span><button id="letter" value="l"><p>l</p></button></span>
</div>
<div class="bottom-row">
<span><button id="letter" value="z"><p>z</p></button></span>
<span><button id="letter" value="x"><p>x</p></button></span>
<span><button id="letter" value="c"><p>c</p></button></span>
<span><button id="letter" value="v"><p>v</p></button></span>
<span><button id="letter" value="b"><p>b</p></button></span>
<span><button id="letter" value="n"><p>n</p></button></span>
<span><button id="letter" value="m"><p>m</p></button></span>
</div>
</div>
<div id="map"></div>
</main>
<script type="text/javascript">
$(document).ready(function() {
$("#keyboard").on("click", "#letter", function() {
keyPressed = $(this).val();
bigBoy();
})
// $("<main>").on("click", "#winner", function() {
// document.getElementById("winner").onclick = firstSteps();
// document.getElementById("winner").onclick = playerGuess(event);
// })
});
</script>
<script src="./assets/javascript/game.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCdik-Ja5OJBVbLDLgeHUldmCEgIbq1dps&callback=initMap">
</script>
</body>
</html>