aboutsummaryrefslogtreecommitdiff
path: root/174bg
diff options
context:
space:
mode:
Diffstat (limited to '174bg')
-rw-r--r--174bg/manager/public/index.html109
1 files changed, 95 insertions, 14 deletions
diff --git a/174bg/manager/public/index.html b/174bg/manager/public/index.html
index 9e952e0..f3fe408 100644
--- a/174bg/manager/public/index.html
+++ b/174bg/manager/public/index.html
@@ -218,53 +218,125 @@
async function fetchRoles() {
ROLES = [
- { branch: "Naval", value: "Ship Captain", text: "Ship Captain" },
- { branch: "Naval", value: "Pilot", text: "Pilot" },
- { branch: "Naval", value: "Helmsman", text: "Helmsman" },
- { branch: "Naval", value: "Gunner", text: "Gunner" },
- { branch: "Marine", value: "Tactical Marine", text: "Tactical Marine" },
- { branch: "Marine", value: "Heavy Marine", text: "Heavy Marine" },
- { branch: "Marine", value: "Scout Marine", text: "Scout Marine" },
- { branch: "Marine", value: "Combat Medic", text: "Combat Medic" },
- { branch: "Marine", value: "Combat Engineer", text: "Combat Engineer" },
- { branch: "Marine", value: "Warden", text: "Warden" },
- { branch: "Auxiliary", value: "Engineer", text: "Engineer" },
+ {
+ branch: "Naval",
+ value: "Ship Captain",
+ text: "Ship Captain",
+ link: "https://handbook.174bg.net/#ship-captain",
+ },
+ {
+ branch: "Naval",
+ value: "Pilot",
+ text: "Pilot",
+ link: "https://handbook.174bg.net/#pilot",
+ },
+ {
+ branch: "Naval",
+ value: "Helmsman",
+ text: "Helmsman",
+ link: "https://handbook.174bg.net/#helmsman",
+ },
+ {
+ branch: "Naval",
+ value: "Gunner",
+ text: "Gunner",
+ link: "https://handbook.174bg.net/#gunner",
+ },
+ {
+ branch: "Marine",
+ value: "Tactical Marine",
+ text: "Tactical Marine",
+ link: "https://handbook.174bg.net/#tactical-marine",
+ },
+ {
+ branch: "Marine",
+ value: "Heavy Marine",
+ text: "Heavy Marine",
+ link: "https://handbook.174bg.net/#heavy-marine",
+ },
+ {
+ branch: "Marine",
+ value: "Scout Marine",
+ text: "Scout Marine",
+ link: "https://handbook.174bg.net/#scout-marine",
+ },
+ {
+ branch: "Marine",
+ value: "Combat Medic",
+ text: "Combat Medic",
+ link: "https://handbook.174bg.net/#combat-medic",
+ },
+ {
+ branch: "Marine",
+ value: "Combat Engineer",
+ text: "Combat Engineer",
+ link: "https://handbook.174bg.net/#combat-engineer",
+ },
+ {
+ branch: "Marine",
+ value: "Warden",
+ text: "Warden",
+ link: "https://handbook.174bg.net/#warden",
+ },
+ {
+ branch: "Auxiliary",
+ value: "Engineer",
+ text: "Engineer",
+ link: "https://handbook.174bg.net/#engineer",
+ },
{
branch: "Auxiliary",
value: "Hazardous Materials Specialist",
text: "Hazardous Materials Specialist",
+ link: "https://handbook.174bg.net/#hazardous-materials-specialist",
},
{
branch: "Auxiliary",
value: "Medical Doctor",
text: "Medical Doctor",
+ link: "https://handbook.174bg.net/#medical-doctor",
+ },
+ {
+ branch: "Auxiliary",
+ value: "Quartermaster",
+ text: "Quartermaster",
+ link: "https://handbook.174bg.net/#quartermaster",
},
- { branch: "Auxiliary", value: "Quartermaster", text: "Quartermaster" },
{
branch: "Auxiliary",
value: "Cargo Technician",
text: "Cargo Technician",
+ link: "https://handbook.174bg.net/#cargo-technician",
+ },
+ {
+ branch: "Auxiliary",
+ value: "Craftsman",
+ text: "Craftsman",
+ link: "https://handbook.174bg.net/#craftsman",
},
- { branch: "Auxiliary", value: "Craftsman", text: "Craftsman" },
{
branch: "Auxiliary",
value: "Mining Technician",
text: "Mining Technician",
+ link: "https://handbook.174bg.net/#mining-technician",
},
{
branch: "Auxiliary",
value: "Salvage Operator",
text: "Salvage Operator",
+ link: "https://handbook.174bg.net/#salvage-operator",
},
{
branch: "Auxiliary",
value: "Expeditionary Analyst",
text: "Expeditionary Analyst",
+ link: "https://handbook.174bg.net/#expeditionary-analyst",
},
{
branch: "Auxiliary",
value: "Intelligence Agent",
text: "Intelligence Agent",
+ link: "https://handbook.174bg.net/#intelligence-agent",
},
];
}
@@ -333,7 +405,16 @@
const tr = document.createElement("tr");
tr.dataset.roleValue = role.value;
const tdName = document.createElement("td");
- tdName.textContent = role.text;
+ if (role.link) {
+ const a = document.createElement("a");
+ a.href = role.link;
+ a.textContent = role.text;
+ a.target = "_blank";
+ a.rel = "noopener noreferrer";
+ tdName.appendChild(a);
+ } else {
+ tdName.textContent = role.text;
+ }
const tdCheck = document.createElement("td");
tr.append(tdName, tdCheck);
rolesTbody.appendChild(tr);