-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (82 loc) · 4.04 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Hangman</title>
<!--Bootstrap is used to make game look nicer-->
<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">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css">
</head>
<body>
<!--Bootstrap container will hold evetyring-->
<div class="container">
<!--Jumbotron hold the title dection-->
<div class="jumbotron" style="background-image: url(ops1.jpg); background-size: cover; color: white;">
<div class="container">
<div class="container">
<h1>Hangman</h1>
</div>
<div class="container">
<h2>Guess the name of the Rainbow Six Siege operator</h2>
</div>
<div class="container">
<small>Click any letter to begin...</small>
</div>
</div>
</div>
<!--Game counters all held here. Pannels are being used to hold various sections-->
<div class="row">
<div class="col-lg-4">
<!--First pannel: holds the word to guess (blanks and guessed words<)-->
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><strong>Word To Guess</strong></h3>
</div>
<div class="panel-body">
<!--This h3 section called worldblanks-->
<h3 id="word-blanks">_ _ _ _ _ _ _ _</h3>
</div>
</div>
<!--Second Panel: Holds the list of wrong user guesses-->
<div class="panel-default">
<div class="panel-body">
<!--This span section called userGuesses is where we will be dumping wrong guesses-->
<strong>Wrong Guesses: </strong> <span id="wrong-guesses"></span>
</div>
</div>
<!--Third Panel: Holds the list of guesses left-->
<div class="panel-default">
<div class="panel-body">
<!--This span section called guesses-left will show number of guesses left-->
<strong>Guesses Left: </strong> <span id="guesses-left"></span>
</div>
</div>
<!--Fourth Panel: Holds the number of right guesses-->
<div class="panel-default">
<div class="panel-body">
<!--This span section called guesses-left will show right guesses-->
<strong>Wins: </strong> <span id="win-counter"></span>
</div>
</div>
<!--Fourth Panel: Holds the number of losses-->
<div class="panel-default">
<div class="panel-body">
<!--This span section called guesses-left will show wins count-->
<strong>Losses: </strong> <span id="loss-counter"></span>
</div>
</div>
<button type="button" class="btn btn-warning btn-lg" onclick="startGame()">Try New</button>
</div>
<div class="col-lg-8" id="result">
<div id="op-name"></div>
<img>
</div>
</div>
</div>
<!--Placed at the bottom so it waits for HTML content to load first-->
<script src="logic.js"></script>
</body>
</html>