-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (142 loc) · 6.96 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
155
156
157
158
159
160
161
162
163
164
<!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 href="assets/images/icons8-rock-and-roll-hand-32.png" rel="shortcut icon">
<meta name="description"
content="This is a word guessing game like the traditional hangman. The goal is to guess the correct word if you guess correctly you win the round and go up one point. Wins and Losses are kept track of and refreshing the pages restarts the game.">
<title>Word Guess Game</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat|Press+Start+2P|Ubuntu&display=swap" rel="stylesheet">
<!-- CSS Stylesheets / Boostrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/style.css?v=2.0">
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/fece22d596.js"></script>
<!-- Simplicity Via Clarity Listener JS -->
<script src="https://www.gstatic.com/firebasejs/7.0.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.0.0/firebase-database.js"></script>
<script src="https://simplicityviaclarity.com/svc/svc-client.js" type="text/javascript"></script>
</head>
<body class="page-template" id="Home">
<!-- Header -->
<header id="main-header">
<div class="container-fluid clearfix">
<!-- Main Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="main-nav">
<div class="navbar-brand mb-0 h1">
<span id="total_rounds"></span>
<span class="total_wins">Wins: <span class="badge badge-success" id="total_wins">0</span></span>
<span class="total_losses">Losses: <span class="badge badge-danger" id="total_losses">0</span></span>
</div>
<div class="progress" id="game_progress">
<div class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar"></div>
<div class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar"></div>
</div>
<div class="collapse navbar-collapse show">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#" onclick="GAME.newGame(); return false;">New Game</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="GAME.skipWord(); return false;">Skip Word</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="GAME.toggleHint(this); return false;">Hint</a>
</li>
</ul>
</div>
</nav><!-- #main-nav -->
</div><!-- .container -->
</header><!-- #main-header -->
<!-- Main Container -->
<article id="main-container" class="content-wrapper">
<section class="section-block jumbotron" id="main-section">
<h1 id="word_catetory"></h1>
<img src="https://placehold.it/900x300" class="img-thumbnail rounded w-100" id="current_word_image"
alt="Responsive image">
<div class="container">
<div class="row first-row">
<h4 class="mx-auto">Press Any Key To Guess This Word!</h4>
</div>
<hr />
<div class="row">
<div class="col-12 col-md-12 mx-auto" id="game_stats">
<ul class="list-group">
<li class="list-group-item d-flex justify-content-center align-items-center list-group-item-primary">
<span id="current_word">_ _ _</span>
<span class="badge badge-primary badge-pill" id="current_word_length"></span>
</li>
<li class="list-group-item d-flex justify-content-center align-items-center list-group-item-warning">
Number of Guesses Remaining
<span class="badge badge-warning badge-pill" id="guesses_remaining"></span>
</li>
<li class="list-group-item d-flex justify-content-center align-items-center list-group-item-warning">
Letters Already Guessed
<span class="badge badge-info badge-pill" id="letters_guest_counter">0</span>
</li>
<li class="list-group-item d-flex justify-content-center align-items-center list-group-item-warning"
id="letters_guest">
</li>
</ul>
<div id="alert_message" class="alert"></div>
</div>
</div>
</div>
</section><!-- #main-section -->
</article><!-- #main-container -->
<div id="audio_files">
</div>
<!-- Footer -->
<footer id="main-footer">
<!-- Footer Nav -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="footer-nav">
<div class="navbar-collapse">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="https://www.linkedin.com/in/ccollins1544/" target="_blank"
rel="noopener noreferrer">
<i class="fab fa-linkedin fa-2x"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://dev.to/ccollins" target="_blank">
<i class="fab fa-dev fa-2x" title="ccollins's DEV Profile"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://ccollins1544.github.io/">
<i class="fab fa-github fa-2x"></i>
</a>
</li>
</ul>
</div><!-- .container -->
</nav><!-- #footer-nav -->
<!-- Footer Credits -->
<div id="footer-bottom">
<div id="footer-info">Copyright © 2019 | <a class="footer-link" href="index.html">Christopher Collins</a> |
<a class="footer-link" href="https://github.com/ccollins1544/Word-Guess-Game">Coding Bootcamp</a>
</div>
</div><!-- #footer-bottom -->
</footer><!-- #main-footer -->
<!-- GAME JS -->
<script src="assets/javascript/game.js?v=2.0" type="text/javascript"></script>
<script src="assets/javascript/words.js?v=1.1" type="text/javascript"></script>
<script type="text/javascript">
const ThisGame = new WordGuessingGame(super_heros,"Super Heros Triva",8);
</script>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</body>
</html>