-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsr_gusher.html
336 lines (311 loc) · 13.4 KB
/
sr_gusher.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<style>
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.content {
flex: 1;
padding: 20px;
}
.footer {
margin-top: auto;
text-align: center;
padding: 20px;
background-color: #f8f9fa;
}
.tab-image {
max-width: 100%;
height: auto;
margin-bottom: 20px;
}
.table {
margin-bottom: 20px;
}
.table thead th {
background-color: #f8f9fa;
color: #212529;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: #f8f9fa;
}
.table-striped tbody tr:nth-of-type(even) {
background-color: #ffffff;
}
</style>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"
integrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.10.2/umd/popper.min.js"
integrity="sha512-nnzkI2u2Dy6HMnzMIkh7CPd1KX445z38XIu4jG1jGw7x5tSL3VBjE44dY4ihMU1ijAQV930SPM12cCFrB18sVw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<title>Salmon Run Next Wave - Goldie Gusher Goals</title>
</head>
<body>
<div class="wrapper">
<header>Salmon Run Next Wave - Goldie Gusher Goals</header>
<div class="container-fluid mt-3">
<ul class="nav nav-tabs" id="tabList" role="tablist">
<!-- Tab Links will be dynamically added here -->
</ul>
<div class="tab-content" id="tabContent">
<!-- Tab Content will be dynamically added here -->
</div>
</div>
<footer class="footer">
<p>Webpage created by Lean. Framework used is <a href="https://getbootstrap.com/">Bootstrap</a>.</p>
<p>
Feedback or suggestions are welcome. Please contact me via Twitter
<a href="https://twitter.com/LeanYoshi"><span class="fa fa-twitter"></span></a> or Github
<a href="https://github.com/leanny/splat3"><span class="fa fa-github"></span></a>.
</p>
<p>
Map Images generated with help from zhuyifei1999<a href="https://github.com/zhuyifei1999">
<span class="fa fa-github"></span></a
>.
</p>
</footer>
</div>
<script>
function getPrefix() {
if (window.location.href.includes("leanny.github.io")) {
return "https://leanny.github.io/splat3/"
} else {
return "http://127.0.0.1:5500/"
}
}
// Add a new tab link and content
function addTab(tabName, tabId, imageUrl, tableContent) {
// Tab Link
const tabLink = document.createElement("a")
tabLink.classList.add("nav-item", "nav-link")
tabLink.id = tabId + "-tab"
tabLink.href = "#" + tabId
tabLink.setAttribute("data-toggle", "tab")
tabLink.setAttribute("role", "tab")
tabLink.setAttribute("aria-controls", tabId)
tabLink.setAttribute("aria-selected", "false")
tabLink.textContent = tabName
// Tab Content
const tabContent = document.createElement("div")
tabContent.classList.add("tab-pane", "fade")
tabContent.id = tabId
tabContent.setAttribute("role", "tabpanel")
tabContent.setAttribute("aria-labelledby", tabId + "-tab")
// Tab Name Heading
const tabNameHeading = document.createElement("h2")
tabNameHeading.classList.add("text-center")
tabNameHeading.textContent = tabName
// Image
const image = document.createElement("img")
image.classList.add("tab-image")
image.src = imageUrl
// Table
const table = document.createElement("table")
table.classList.add("table", "table-bordered", "table-striped")
const tbody = document.createElement("tbody")
for (const row of tableContent) {
const tr = document.createElement("tr")
for (const cell of row) {
const td = document.createElement("td")
td.textContent = cell
tr.appendChild(td)
}
tbody.appendChild(tr)
}
table.appendChild(tbody)
// Create row container for image and table
const rowContainer = document.createElement("div")
rowContainer.classList.add("row")
// Create columns for image and table
const imageColumn = document.createElement("div")
imageColumn.classList.add("col-md-6")
imageColumn.appendChild(image)
const tableColumn = document.createElement("div")
tableColumn.classList.add("col-md-6")
const tableContainer = document.createElement("div")
tableContainer.classList.add("table-container")
tableContainer.appendChild(table)
tableColumn.appendChild(tableContainer)
// Append columns to row container
rowContainer.appendChild(imageColumn)
rowContainer.appendChild(tableColumn)
// Append tab name heading and row container to tab content
tabContent.appendChild(tabNameHeading)
tabContent.appendChild(rowContainer)
const tabLinks = document.getElementById("tabList")
const tabContentContainer = document.getElementById("tabContent")
tabLinks.appendChild(tabLink)
tabContentContainer.appendChild(tabContent)
// Check if this is the first tab added
if (tabLinks.children.length === 1) {
tabLink.classList.add("show", "active")
tabContent.classList.add("show", "active")
}
}
addTab("Spawning Grounds - Mid", "Shakeup_Mid", getPrefix() + "sr/Shakeup_Mid.png", [
["Gusher", "Possible Destinations"],
["A", "B, E, G, I"],
["B", "A, C, D, F, H"],
["C", "B, G, H"],
["D", "B, F, G"],
["E", "A, F, H"],
["F", "B, D, E, G, H, I"],
["G", "A, C, D, F, H"],
["H", "B, C, E, F, G, I"],
["I", "A, F, H"],
])
addTab("Spawning Grounds - High", "Shakeup_High", getPrefix() + "sr/Shakeup_High.png", [
["Gusher", "Possible Destinations"],
["A", "B, E"],
["B", "A, C, D"],
["C", "B"],
["D", "B"],
["E", "A"],
])
addTab("Sockeye Station - Mid", "Shakespiral_Mid", getPrefix() + "sr/Shakespiral_Mid.png", [
["Gusher", "Possible Destinations"],
["A", "B, F, G"],
["B", "A, D, E, G"],
["C", ""],
["D", "B, E, F, G"],
["E", "B, D, F"],
["F", "A, D, E"],
["G", "A, B, D"],
])
addTab("Sockeye Station - High", "Shakespiral_High", getPrefix() + "sr/Shakespiral_High.png", [
["Gusher", "Possible Destinations"],
["A", "B"],
["B", "A, D"],
["C", ""],
["D", "B"],
])
addTab("Salmonid Smokeyard - Mid", "Shakelift_Mid", getPrefix() + "sr/Shakelift_Mid.png", [
["Gusher", "Possible Destinations"],
["A", "C, D, F"],
["B", "C, E, G"],
["C", "A, B, G"],
["D", "A, G"],
["E", "B, F"],
["F", "A, E, G"],
["G", "B, C, D, F"],
])
addTab("Salmonid Smokeyard - High", "Shakelift_High", getPrefix() + "sr/Shakelift_High.png", [
["Gusher", "Possible Destinations"],
["A", "C, D"],
["B", "C, E"],
["C", "A, B"],
["D", "A"],
["E", "B"],
])
addTab("Marooner's Bay - Mid", "Shakeship_Mid", getPrefix() + "sr/Shakeship_Mid.png", [
["Gusher", "Possible Destinations"],
["A", "C, H"],
["B", "C, H"],
["C", "A, B, F, G"],
["D", "F"],
["E", "F, G"],
["F", "C, D, E, H"],
["G", "C, E"],
["H", "A, B, F"],
])
addTab("Marooner's Bay - High", "Shakeship_High", getPrefix() + "sr/Shakeship_High.png", [
["Gusher", "Possible Destinations"],
["A", "C"],
["B", "C"],
["C", "A, B"],
["D", ""],
])
addTab("Gone Fission Hydroplant - Mid", "Shakedent_Mid", getPrefix() + "sr/Shakedent_Mid.png", [
["Gusher", "Possible Destinations"],
["A", ""],
["B", "D, F, G"],
["C", "F, G, H"],
["D", "B, E, F, H"],
["E", "D, F, G"],
["F", "B, C, D, E, H"],
["G", "B, C, E, H"],
["H", "C, D, F, G"],
])
addTab("Gone Fission Hydroplant - High", "Shakedent_High", getPrefix() + "sr/Shakedent_High.png", [
["Gusher", "Possible Destinations"],
["A", ""],
["B", "D"],
["C", ""],
["D", "B"],
])
addTab("Jammin' Salmon Junction - Mid", "Shakehighway_Mid", getPrefix() + "sr/Shakehighway_Mid.png", [
["Gusher", "Possible Destinations"],
["A", "B, F, G, H"],
["B", "A, D, E, G"],
["C", "D, E, G, H"],
["D", "B, C, F"],
["E", "B, C, F, H"],
["F", "A, D, E, G"],
["G", "A, B, C, F"],
["H", "A, C, E"],
])
addTab("Jammin' Salmon Junction - High", "Shakehighway_High", getPrefix() + "sr/Shakehighway_High.png", [
["Gusher", "Possible Destinations"],
["A", "B"],
["B", "A, D"],
["C", "D"],
["D", "B, C"],
])
addTab("Bonerattle Arena - Mid", "Shakerail_Mid", getPrefix() + "sr/Shakerail_Mid.png", [
["Gusher", "Possible Destinations"],
["A", "B, D, F, G, H"],
["B", "A, C, D, H, I"],
["C", "B, E, F, G, H, I"],
["D", "A, B, E, G, I"],
["E", "C, D, F, H"],
["F", "A, C, E, G, I"],
["G", "A, C, D, F, H, I"],
["H", "A, B, C, E, G, I"],
["I", "B, C, D, F, G, H"],
])
addTab("Bonerattle Arena - High", "Shakerail_High", getPrefix() + "sr/Shakerail_High.png", [
["Gusher", "Possible Destinations"],
["A", "B, D, F"],
["B", "A, C, D"],
["C", "B, E, F"],
["D", "A, B, E"],
["E", "C, D, F"],
["F", "A, C, E"],
])
// Handle tab change event
const tabLinks = document.querySelectorAll(".nav-link")
tabLinks.forEach(function (tabLink) {
tabLink.addEventListener("click", function (event) {
event.preventDefault()
const activeTab = document.querySelector(".nav-link.active")
activeTab.classList.remove("active")
const activeTabContent = document.querySelector(".tab-pane.show.active")
activeTabContent.classList.remove("show", "active")
})
})
</script>
</body>
</html>