-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (132 loc) · 4.54 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hangman CSOC-2022</title>
<!-- linking stylesheet -->
<link rel="stylesheet" href="./assets/css/style.css" />
<link
rel="stylesheet"
media="screen and (max-width: 600px)"
href="./assets/css/mediaquery.css"
/>
</head>
<body>
<!-- HEADER -->
<header>
<center>
<p class="head1">A CSOC 2022 Project</p>
<p class="head2">
A SCIENCE AND TECHNOLOGY COUNCIL OF IIT-BHU INITIATIVE
</p>
</center>
</header>
<!-- Main Heading -->
<div class="home__heading">Hangman</div>
<!-- Image 1 -->
<div class="cartoon1">
<img src="./assets/images/Cartoon 1.png" />
</div>
<!-- Image 2 -->
<div class="cartoon2">
<img src="./assets/images/Cartoon 2.png" />
</div>
<!-- BODY -->
<!-- home -->
<section id="home" class="flex_style">
<!-- welcome message -->
<div class="welcome__message">Welcome! Player</div>
<!-- player name -->
<input
type="text"
class="player__name"
placeholder="Enter Your Name"
required
/>
<br /><br />
<!-- play button -->
<button class="play__button" type="submit">Play Game</button>
<div class="button__group">
<!-- Github Source -->
<button class="play__button">Github Repo</button>
<!-- Leaderboard -->
<button
class="play__button"
style="background: #ffffff58; cursor: auto"
>
Leader Board
</button>
</div>
</section>
<!-- options -->
<section id="rules" class="flex_style">
<!-- description -->
<div class="welcome__message">Choose your difficulty level</div>
<!-- levels -->
<div class="levels">
<button class="easy lvl">
<div class="title">Easy</div>
<div class="right">
<div class="desc">Gives you 5 lives and 5 hints</div>
<div class="max__word">Max Word Length : 5</div>
<div class="Timer">Timer : 15 mins</div>
</div>
</button>
<button class="difficult lvl">
<div class="title">Difficult</div>
<div class="right">
<div class="desc">Gives you 3 lives and 3 hints</div>
<div class="max__word">Max Word Length > 5</div>
<div class="Timer">Timer : 10 mins</div>
</div>
</button>
</div>
</section>
<!-- game -->
<section id="game">
<div class="game__left">
<div class="timer">
<span class="minutes"></span>:
<span class="seconds"></span>
</div>
<div class="hangman__image">
</div>
</div>
<div class="game__right">
<div class="game__details">
<div class="game__hints">Hints Left : <span id="hintsleft"></span></div>
<div class="game__lives">Lives Left : <span id="life-count"></span></div>
</div>
<div class="game__word flex_style">
<div class="game__head">Your Word</div>
<div class="your__word"></div>
<input class="input__letter" placeholder="Enter a Letter"><br>
<button class="check-letter" value="submit">Submit</button><br>
<button class="play__button" id="useHint">Use Hint</button>
</div>
</div>
</section>
<!-- FOOTER -->
<footer>
<div class="block_group">
<div class="block"></div>
<div class="block grey"></div>
<div class="block grey"></div>
<div class="block"></div>
</div>
<center>
<p class="foot1">
Designed and Built by <span class="name">Nanduri Jayant Vishnu</span>
</p>
<p class="foot2">4 Stars 2 Forks</p>
</center>
</footer>
<!-- javascript -->
<script src="./assets/js/script.js"></script>
<script src="./assets/js/liveGame.js"></script>
<script src="./assets/js/game.js"></script>
<script src="./assets/js/guess.js"></script>
</body>
</html>