-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHumans.html
213 lines (192 loc) · 11.1 KB
/
Humans.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Practice Vikings</title>
<link rel="stylesheet" href="Styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- ROBOTO FONT -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<!-- OSWALD FONT -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Oswald:[email protected]&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<!-- BOOTSTRAP: Latest compiled and minified CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="header">Dragon Practice Website</div>
<div class="navbar sticky-top navbar-expand-sm bg-dark" data-bs-theme="dark">
<div class="container">
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbarNav"><span class="navbar-toggler-icon"></span></button>
<div class="navbar-nav collapse navbar-collapse justify-content-evenly" id="navbarNav">
<a href="index.html" class="nav-link nav-item active">Homepage</a>
<a href="Humans.html" class="nav-link nav-item active">Human Characters</a>
<a href="DragonChars.html" class="nav-link nav-item active">Dragon Characters</a>
<a href="DragonSurvey.html" class="nav-link nav-item active">Survey</a>
<a href="FanGallery.html" class="nav-link nav-item active">Fan Art</a>
<a href="GamePage.html" class="nav-link nav-item active">Game</a>
</div>
</div>
</div>
<div class="content container-fluid">
<div class="info">
<h1>Human Characters</h1>
<p>Everything you need to know about the vikings of Berk!</p>
</div>
<div id="cardholder" class="mb-4">
</div>
<div class="row justify-content-center">
<div class="col-lg-8" id="fightAlert" style="display: none">
<div class="alert alert-warning alert-dimissible fade show text-center" role="alert">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-diamond" viewBox="0 0 16 16">
<path d="M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.48 1.48 0 0 1 0-2.098zm1.4.7a.495.495 0 0 0-.7 0L1.134 7.65a.495.495 0 0 0 0 .7l6.516 6.516a.495.495 0 0 0 .7 0l6.516-6.516a.495.495 0 0 0 0-.7L8.35 1.134z"/>
<path d="M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/>
</svg>
Viking Cannot Fight Themself!
<button type="button" class="btn-close" onclick="hideBoxTwo();" aria-label="Close"></button>
</div>
</div>
<div class="col-lg-8">
<form class="text-center" style="font-size: 20px">
<div class="row">
<label for="battlerOne" class="form-label">Please choose your fighters:</label><br>
<label for="battlerTwo" class="form-label"></label>
<div class="col-sm-6">
<select id="battlerOne" class="form-select">
</select>
</div>
<div class="col-sm-6">
<select id="battlerTwo" class="form-select">
</select><br>
</div>
</div>
<button type="button" id="fightButton" onclick="doBattle();" class="mb-2">Fight!</button>
<p id="battleWinner">The Winner is: </p><br>
</form>
<div class="container" id="alertBox" style="display: none">
<div class="alert alert-primary alert-dismissible fade show text-center" role="alert">
Please ignore this alert box!
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right-circle" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0M4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5z"/>
</svg>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
<form id="addVikings" class="text-center" style="font-size: 20px">
<p>Want to add your own viking? Fill out the form below and test them in battle!</p>
<div class="row my-4">
<div class="col-md-4">
<label for="fullName" class="form-label">Viking Name:</label>
</div>
<div class="col-md-8">
<input type="text" id="fullName" class="form-control" maxlength="50" required>
</div>
</div>
<div class="row mb-4">
<div class="col-md-4">
<label for="dragonName" maxlength="50" class="form-label">Dragon Name:</label>
</div>
<div class="col-md-8">
<input type="text" id="dragonName" class="form-control" required>
</div>
</div>
<div class="row mb-4">
<div class="col-md-4">
<label for="vikingAge" class="form-label">Viking Age (first movie):</label>
</div>
<div class="col-md-4">
<input type="number" class="form-control" id="vikingAge" min="1" max="114" required>
</div>
</div>
<div class="row mb-4">
<div class="col-md-4">
<label for="brave" class="form-label">Bravery:</label>
</div>
<div class="col-md-4">
<input type="number" id="brave" class="form-control" min="1" max="5" required>
</div>
</div>
<div class="row mb-4">
<div class="col-md-4">
<label for="smart" class="form-label">Intelligence:</label>
</div>
<div class="col-md-4">
<input type="number" id="smart" class="form-control" min="1" max="5" required>
</div>
</div>
<div class="row mb-4">
<div class="col-md-4">
<label for="fast" class="form-label">Speed:</label>
</div>
<div class="col-md-4">
<input type="number" id="fast" class="form-control" min="1" max="5" required>
</div>
</div>
<div class="row mb-4">
<div class="col-md-4">
<label for="punch" class="form-label">Attack:</label>
</div>
<div class="col-md-4">
<input type="number" id="punch" class="form-control" min="1" max="5" required>
</div>
</div>
<div class="row mb-4">
<div class="col-md-4">
<label for="block" class="form-label">Defense:</label>
</div>
<div class="col-md-4">
<input type="number" id="block" class="form-control" min="1" max="5" required>
</div>
</div>
<label for="colorSelection" class="form-label mb-2">What color card would you like?</label>
<div class="row justify-content-center mb-4">
<div class="col-md-6">
<select id="colorSelection" class="form-select">
</select>
</div>
</div>
<label for="imageSelection" class="form-label mb-2">Which image would you like?</label>
<div class="row justify-content-center mb-4">
<div class="col-md-6">
<select id="imageSelection" class="form-select">
</select>
</div>
</div>
<button type="button" id="addHumanBtn" class="mb-4" onclick="requireHuman();">Submit</button>
</form>
<div class="col-lg-12" id="deleteAlert" style="display: none">
<div class="alert alert-warning alert-dimissible fade show text-center" role="alert">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-diamond" viewBox="0 0 16 16">
<path d="M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.48 1.48 0 0 1 0-2.098zm1.4.7a.495.495 0 0 0-.7 0L1.134 7.65a.495.495 0 0 0 0 .7l6.516 6.516a.495.495 0 0 0 .7 0l6.516-6.516a.495.495 0 0 0 0-.7L8.35 1.134z"/>
<path d="M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/>
</svg>
Nobody to delete!
<button type="button" class="btn-close" onclick="hideBoxThree();" aria-label="Close"></button>
</div>
</div>
<form class="text-center" style="font-size: 20px">
<label for="deleteBox" class="form-label mb-2">Would you like to delete an added viking?</label>
<div class="row justify-content-center mb-4">
<div class="col-md-6">
<select id="deleteBox" class="form-select">
</select>
</div>
</div>
<button type="button" id="removeHumanBtn" class="mb-4" onclick="murder();">Delete</button>
</form>
</div>
</div>
</div>
<div class="footer">Made by K Zongker</div>
</div>
<script src="stats.js"></script>
<script>
pageLoader();
</script>
<!-- Latest compiled JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>