Skip to content

Commit af7ffdb

Browse files
authored
Merge pull request #13 from BattlezoneScrapField/master
Release v2026.1
2 parents d44f7b0 + 97ec555 commit af7ffdb

File tree

3 files changed

+70
-57
lines changed

3 files changed

+70
-57
lines changed

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,30 @@ Website to pull multiplayer game data for [Battlezone: Combat Commander](https:/
4141
We'd be happy to have you contribute to this project! Here's how you can contribute:
4242

4343
### Local Environment
44-
- Clone this repo to your local pc.
45-
- Change `useCORSProxy` in `main.js:line 16` to **true**.
46-
- Open up `index.html` using the _Open with Live Server_ extension.
44+
45+
The site uses a `<base>` tag for GitHub Pages, which requires a local web server to work correctly. Opening `index.html` directly via a browser (`file://`) will result in missing CSS and images.
46+
47+
#### Prerequisites
48+
- **Node.js 18 or newer** (includes `npx`)
49+
Download from [Node.js](https://nodejs.org)
50+
51+
Verify installation:
52+
```bash
53+
node -v
54+
npx -v
55+
```
56+
57+
#### Running the Site Locally
58+
```bash
59+
git clone https://github.com/BattlezoneScrapField/BZCC-Website.git
60+
cd path/to/BZCC-Website/..
61+
npx serve .
62+
```
63+
You should see output like:
64+
```bash
65+
Serving!
66+
Local: http://localhost:3000
67+
```
4768

4869
### Pushing Changes
4970
> Note: the branching process looks like: `your-dev-branch → master → prod`
@@ -58,4 +79,4 @@ We'd be happy to have you contribute to this project! Here's how you can contrib
5879
- ODF data provided by [AI_Unit](https://discord.com/users/125055986632228865). 📄
5980
- Map size data provided by [VTrider](https://github.com/VTrider) ([Github](https://github.com/VTrider) | [Steam](https://steamcommunity.com/id/vtrider/)). 🗺️
6081
- Map scrap loose data provided by [Blue Banana](https://www.twitch.tv/blue_banana_bz2). 📍
61-
- Website maintained by [F9bomber](https://www.youtube.com/@F9bomber) and the Battlezone Community. 💖
82+
- Website maintained by the Battlezone Community. 💖

index.html

Lines changed: 43 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
<head>
77
<meta charset="UTF-8">
8+
<base href="/BZCC-Website/">
89
<meta name="viewport" content="width=device-width, initial-scale=1">
910
<title>Battlezone Combat Commander: Game Watch</title>
10-
<link rel="stylesheet" href="/BZCC-Website/css/bootstrap.min.css">
11-
<link rel="stylesheet" href="/BZCC-Website/css/main.css">
11+
<link rel="stylesheet" href="css/bootstrap.min.css">
12+
<link rel="stylesheet" href="css/main.css">
1213
<meta property="description" content="Track and join online games in Battlezone II: Combat Commander.">
1314
<!--<meta property="og:image" content="https://bz2vsr.com/img/opengraph.png" />-->
1415
<meta property="og:description" content="Track and join online games in Battlezone II: Combat Commander." />
@@ -20,7 +21,7 @@
2021
<div class="container-fluid">
2122
<div class="d-inline m-0 p-0">
2223
<a class="navbar-brand me-2">
23-
<img src="/BZCC-Website/img/logo.png" class="img-fluid ms-2 me-1" height="30" width="30">
24+
<img src="img/logo.png" class="img-fluid ms-2 me-1" height="30" width="30">
2425
<span class="d-none d-lg-inline" style="position:relative;top:1px;">GameWatch</span>
2526
</a>
2627
<ul id="liveIndicator" class="d-none" title="Live updates active.">
@@ -56,15 +57,16 @@
5657
</div>
5758

5859
<ul class="navbar-nav">
59-
<li class="nav-item mx-2">
60-
<a class="nav-link" href="/BZCC-Website/maps">
61-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
62-
class="bi bi-list-ul mb-1 me-1" viewBox="0 0 16 16">
63-
<path fill-rule="evenodd"
64-
d="M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m-3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2" />
65-
</svg>
66-
Maps
67-
</a>
60+
<li class="nav-item mx-2">
61+
<a class="nav-link" href="maps">
62+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
63+
class="bi bi-list-ul mb-1 me-1" viewBox="0 0 16 16">
64+
<path fill-rule="evenodd"
65+
d="M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m-3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2" />
66+
</svg>
67+
Maps
68+
</a>
69+
</li>
6870
</li>
6971

7072
<!--
@@ -103,16 +105,18 @@
103105
-->
104106

105107
<li class="nav-item mx-2">
106-
<a class="nav-link" href="/BZCC-Website/odf">
107-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
108-
class="bi bi-file-post mb-1 me-1" viewBox="0 0 16 16">
109-
<path
110-
d="M4 3.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5z" />
111-
<path
112-
d="M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm10-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1" />
113-
</svg>
114-
ODF
115-
</a>
108+
<li class="nav-item mx-2">
109+
<a class="nav-link" href="odf">
110+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
111+
class="bi bi-file-post mb-1 me-1" viewBox="0 0 16 16">
112+
<path
113+
d="M4 3.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5z" />
114+
<path
115+
d="M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm10-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1" />
116+
</svg>
117+
ODF
118+
</a>
119+
</li>
116120
</li>
117121

118122
<li class="nav-item mx-2">
@@ -222,9 +226,13 @@ <h5 class="modal-title">Host Game</h5>
222226
<div class="modal-body p-0">
223227
<div class="bg-dark-subtle rounded-top w-100">
224228
<div class="mv-image text-center">
225-
<img id="mmImage" class="border border-secondary-subtle border-2 rounded my-3" width="325"
226-
height="325" src="/BZCC-Website/img/no_steam_pfp.jpg" style="filter:brightness(1.25)" height="auto"
227-
onerror="this.src='/BZCC-Website/img/no_steam_pfp.jpg'">
229+
<img id="mmImage"
230+
class="border border-secondary-subtle border-2 rounded my-3"
231+
width="325"
232+
height="325"
233+
src="img/no_steam_pfp.jpg"
234+
style="filter:brightness(1.25)"
235+
onerror="this.src='img/no_steam_pfp.jpg'">
228236
</div>
229237
<div class="mv-body bg-secondary-subtle">
230238
<ul class="list-group list-group-flush">
@@ -260,7 +268,7 @@ <h5 class="modal-title">Host Game</h5>
260268
</div>
261269
</div>
262270
<div class="modal-footer">
263-
<a href="/BZCC-Website/maps" class="btn btn-purple text-light bg-gradient">
271+
<a href="maps" class="btn btn-purple text-light bg-gradient">
264272
Browse All Maps
265273
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
266274
class="bi bi-list-task" viewBox="0 0 16 16">
@@ -325,8 +333,7 @@ <h5>Credits</h5>
325333
Honoring the original foundation built by Sev.</a>.
326334
</li>
327335
<li>
328-
Website maintained by <a target="_blank"
329-
href="https://www.youtube.com/@F9bomber">F9bomber</a> and Battlezone Community.
336+
Website maintained by the Battlezone Community.
330337
</li>
331338

332339
</ul>
@@ -336,24 +343,6 @@ <h5>Credits</h5>
336343
</p>
337344
</div>
338345
<div class="modal-footer p-2">
339-
<a target="_blank" href="https://discord.com/invite/kw9Frv5"
340-
class="btn btn-success text-light bg-gradient">
341-
The Official Battlezone Server
342-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
343-
class="bi bi-discord mb-1 ms-1" viewBox="0 0 16 16">
344-
<path
345-
d="M13.545 2.907a13.2 13.2 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.2 12.2 0 0 0-3.658 0 8 8 0 0 0-.412-.833.05.05 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.04.04 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032q.003.022.021.037a13.3 13.3 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019q.463-.63.818-1.329a.05.05 0 0 0-.01-.059l-.018-.011a9 9 0 0 1-1.248-.595.05.05 0 0 1-.02-.066l.015-.019q.127-.095.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.05.05 0 0 1 .053.007q.121.1.248.195a.05.05 0 0 1-.004.085 8 8 0 0 1-1.249.594.05.05 0 0 0-.03.03.05.05 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.2 13.2 0 0 0 4.001-2.02.05.05 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.03.03 0 0 0-.02-.019m-8.198 7.307c-.789 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612m5.316 0c-.788 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612" />
346-
</svg>
347-
</a>
348-
<a target="_blank" href="https://discord.com/invite/4xJzDmQ27y"
349-
class="btn btn-primary text-light bg-gradient">
350-
Battlezone Community Server
351-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
352-
class="bi bi-discord mb-1 ms-1" viewBox="0 0 16 16">
353-
<path
354-
d="M13.545 2.907a13.2 13.2 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.2 12.2 0 0 0-3.658 0 8 8 0 0 0-.412-.833.05.05 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.04.04 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032q.003.022.021.037a13.3 13.3 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019q.463-.63.818-1.329a.05.05 0 0 0-.01-.059l-.018-.011a9 9 0 0 1-1.248-.595.05.05 0 0 1-.02-.066l.015-.019q.127-.095.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.05.05 0 0 1 .053.007q.121.1.248.195a.05.05 0 0 1-.004.085 8 8 0 0 1-1.249.594.05.05 0 0 0-.03.03.05.05 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.2 13.2 0 0 0 4.001-2.02.05.05 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.03.03 0 0 0-.02-.019m-8.198 7.307c-.789 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612m5.316 0c-.788 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612" />
355-
</svg>
356-
</a>
357346
<a target="_blank" href="https://store.steampowered.com/app/624970/Battlezone_Combat_Commander/"
358347
class="btn btn-purple text-light bg-gradient">
359348
Get Battlezone
@@ -446,7 +435,8 @@ <h5 class="modal-title">Random Maps</h5>
446435
<h5 id="pickerMapTitle-0"
447436
class="mb-0 rounded-0 rounded-top border-bottom-0 alert alert-secondary fw-bold"></h5>
448437
<img width="100%" height="250" class="img-thumbnail rounded-0 rounded-bottom bg-dark-subtle"
449-
id="pickerMapImage-0" onError="this.src='/BZCC-Website/img/no_steam_pfp.jpg'" />
438+
id="pickerMapImage-0"
439+
onError="this.src='/BZCC-Website/img/no_steam_pfp.jpg'" />
450440
<div
451441
class="alert alert-secondary mt-2 small d-flex justify-content-between align-middle mb-1">
452442
<span>
@@ -467,7 +457,8 @@ <h5 class="modal-title">Random Maps</h5>
467457
<h5 id="pickerMapTitle-1"
468458
class="mb-0 rounded-0 rounded-top border-bottom-0 alert alert-secondary fw-bold"></h5>
469459
<img width="100%" height="250" class="img-thumbnail rounded-0 rounded-bottom bg-dark-subtle"
470-
id="pickerMapImage-1" onError="this.src='/BZCC-Website/img/no_steam_pfp.jpg'" />
460+
id="pickerMapImage-1"
461+
onError="this.src='/BZCC-Website/img/no_steam_pfp.jpg'" />
471462
<div
472463
class="alert alert-secondary mt-2 small d-flex justify-content-between align-middle mb-1">
473464
<span>
@@ -488,7 +479,8 @@ <h5 class="modal-title">Random Maps</h5>
488479
<h5 id="pickerMapTitle-2"
489480
class="mb-0 rounded-0 rounded-top border-bottom-0 alert alert-secondary fw-bold"></h5>
490481
<img width="100%" height="250" class="img-thumbnail rounded-0 rounded-bottom bg-dark-subtle"
491-
id="pickerMapImage-2" onError="this.src='/BZCC-Website/img/no_steam_pfp.jpg'" />
482+
id="pickerMapImage-2"
483+
onError="this.src='/BZCC-Website/img/no_steam_pfp.jpg'" />
492484
<div
493485
class="alert alert-secondary mt-2 small d-flex justify-content-between align-middle mb-1">
494486
<span>
@@ -535,8 +527,8 @@ <h5 class="modal-title">Random Maps</h5>
535527
</div>
536528
</div>
537529

538-
<script src="/BZCC-Website/js/bootstrap.bundle.min.js"></script>
539-
<script src="/BZCC-Website/js/main.js"></script>
530+
<script src="js/bootstrap.bundle.min.js"></script>
531+
<script src="js/main.js"></script>
540532
<script async data-id="101466371" src="//static.getclicky.com/js"></script>
541533
</body>
542534

js/maps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ window.addEventListener("DOMContentLoaded", (event) => {
4444
<td>
4545
<img class="border border-secondary-subtle border-2 rounded" width="75" height="75px" src="${
4646
map.Image
47-
}" onerror="this.src='/img/no_steam_pfp.jpg'" style="filter:brightness(1.5)">
47+
}" onerror="this.src='/BZCC-Website/img/no_steam_pfp.jpg'" style="filter:brightness(1.5)">
4848
</td>
4949
<td class="fw-bold">${map.Name}</td>
5050
<td class="text-center">${map.Size.baseToBase}</td>
@@ -278,7 +278,7 @@ window.addEventListener("DOMContentLoaded", (event) => {
278278
<div class="mv-image text-center">
279279
<img class="border border-secondary-subtle border-2 rounded my-3" width="325" height="325" style="filter:brightness(1.25)" height="auto" src="${
280280
map.Image
281-
}" onerror="this.src='/img/no_steam_pfp.jpg'">
281+
}" onerror="this.src='/BZCC-Website/img/no_steam_pfp.jpg'">
282282
</div>
283283
<div class="mv-body bg-secondary-subtle">
284284
<ul class="list-group list-group-flush">

0 commit comments

Comments
 (0)