aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/174bg.net
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-14 22:09:04 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-14 22:09:04 +0100
commit572cef5378302962b8f985044315165aca99a22b (patch)
tree41bf2990ef6ca662c4ed9587c5aca30590b3529c /communities/red-right-hand/174bg.net
parentdf597306b629170c76323c1b35b0462a4a8dbb35 (diff)
downloadunnamed-group-572cef5378302962b8f985044315165aca99a22b.tar
unnamed-group-572cef5378302962b8f985044315165aca99a22b.tar.gz
unnamed-group-572cef5378302962b8f985044315165aca99a22b.tar.bz2
unnamed-group-572cef5378302962b8f985044315165aca99a22b.tar.xz
unnamed-group-572cef5378302962b8f985044315165aca99a22b.zip
TOC now has nesting
Diffstat (limited to 'communities/red-right-hand/174bg.net')
-rw-r--r--communities/red-right-hand/174bg.net/public/handbook/index.html256
1 files changed, 251 insertions, 5 deletions
diff --git a/communities/red-right-hand/174bg.net/public/handbook/index.html b/communities/red-right-hand/174bg.net/public/handbook/index.html
index 41d3e09..db4536f 100644
--- a/communities/red-right-hand/174bg.net/public/handbook/index.html
+++ b/communities/red-right-hand/174bg.net/public/handbook/index.html
@@ -17,6 +17,24 @@
body {
text-align: justify;
}
+
+ /* table styles */
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ margin-bottom: 1em;
+ }
+
+ th,
+ td {
+ border: 1px solid #ddd;
+ padding: 0.5em;
+ text-align: left;
+ }
+
+ th {
+ background-color: #f4f4f4;
+ }
</style>
</head>
<body>
@@ -73,6 +91,209 @@
</li>
</ul>
</article>
+
+ <article id="ranks">
+ <h2>Ranks</h2>
+ <p>
+ Red Right Hand uses a rank system to denote hierarchy and roles within
+ its divisions. Below is a breakdown of the ranks for each division:
+ </p>
+ <table>
+ <thead>
+ <tr>
+ <th></th>
+ <th>Description</th>
+ <th>Naval</th>
+ <th>Marine</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Rank 0</td>
+ <td>Entry-level</td>
+ <td><a href="#cadet">Cadet</a></td>
+ <td><a href="#private">Private</a></td>
+ </tr>
+ <tr>
+ <td>Rank 1</td>
+ <td>Proven experience</td>
+ <td><a href="#ensign">Ensign</a></td>
+ <td><a href="#corporal">Corporal</a></td>
+ </tr>
+ <tr>
+ <td>Rank 2</td>
+ <td>Specialised role</td>
+ <td><a href="#lieutenant">Lieutenant</a></td>
+ <td><a href="#sergeant">Sergeant</a></td>
+ </tr>
+ <tr>
+ <td>Rank 3</td>
+ <td>Tactical leadership</td>
+ <td><a href="#captain">Captain</a></td>
+ <td><a href="#major">Major</a></td>
+ </tr>
+ <tr>
+ <td>Rank 4</td>
+ <td>Leads leadership</td>
+ <td><a href="#commodore">Commodore</a></td>
+ <td><a href="#commander">Commander</a></td>
+ </tr>
+ <tr>
+ <td>Rank 5</td>
+ <td>Strategic command</td>
+ <td><a href="#admiral">Admiral</a></td>
+ <td><a href="#general">General</a></td>
+ </tr>
+ </tbody>
+ </table>
+ <p>
+ Each rank comes with its own set of responsibilities and expectations,
+ contributing to the overall effectiveness and discipline of the Red
+ Right Hand.
+ </p>
+
+ <section id="naval-ranks">
+ <h3>Naval Ranks</h3>
+
+ <section id="cadet">
+ <h4>Cadet</h4>
+ <p>
+ The entry-level rank for new recruits in the Naval division. Cadets
+ undergo rigorous training to prepare for their roles and must
+ demonstrate commitment and discipline through their training period
+ before advancing to Ensign. They are usually assigned to basic
+ duties and learning tasks aboard ships.
+ </p>
+ </section>
+
+ <section id="ensign">
+ <h4>Ensign</h4>
+ <p>
+ Ensigns are officers who have completed their initial training and
+ demonstrated competence in basic naval operations. They take on more
+ responsibility than Cadets and are often assigned to specific
+ departments aboard ships. Ensigns are expected to lead small teams
+ and contribute to mission planning and execution.
+ </p>
+ </section>
+
+ <section id="lieutenant">
+ <h4>Lieutenant</h4>
+ <p>
+ Lieutenants are experienced officers with specialized skills in
+ areas such as navigation, engineering, tactical operations, or
+ communications. They serve as department heads or senior advisors on
+ vessels and are responsible for training and mentoring junior
+ officers. Lieutenants play a crucial role in operational
+ effectiveness.
+ </p>
+ </section>
+
+ <section id="captain">
+ <h4>Captain</h4>
+ <p>
+ Captains hold tactical leadership positions and typically command
+ individual vessels or small task forces. They are responsible for
+ mission execution, crew welfare, and tactical decision-making in
+ combat situations. Captains must demonstrate exceptional judgment,
+ leadership, and technical proficiency.
+ </p>
+ </section>
+
+ <section id="commodore">
+ <h4>Commodore</h4>
+ <p>
+ Commodores lead groups of Captains and coordinate multi-vessel
+ operations. They are responsible for strategic planning at the
+ squadron or fleet level and serve as senior advisors to the Admiral.
+ Commodores ensure that tactical leaders have the resources and
+ guidance needed to accomplish their missions.
+ </p>
+ </section>
+
+ <section id="admiral">
+ <h4>Admiral</h4>
+ <p>
+ Admirals hold the highest rank in the Naval division and are
+ responsible for strategic command and overall fleet operations. They
+ set long-term objectives, allocate resources across the division,
+ and represent the Naval forces in high-level organizational
+ decisions. Admirals shape the future direction of naval operations.
+ </p>
+ </section>
+ </section>
+
+ <section id="marine-ranks">
+ <h3>Marine Ranks</h3>
+
+ <section id="private">
+ <h4>Private</h4>
+ <p>
+ The entry-level rank for new recruits in the Marine division.
+ Privates undergo basic training to prepare for their roles and must
+ demonstrate commitment and discipline through their training period
+ before advancing to Corporal. They are usually assigned to
+ fundamental duties and learning tasks within the Marine Corps.
+ </p>
+ </section>
+
+ <section id="corporal">
+ <h4>Corporal</h4>
+ <p>
+ Corporals are Marines who have proven their abilities in the field
+ and demonstrated leadership potential. They often serve as team
+ leaders for small units and are responsible for the training and
+ welfare of Privates. Corporals are expected to lead by example and
+ maintain high standards of discipline and performance.
+ </p>
+ </section>
+
+ <section id="sergeant">
+ <h4>Sergeant</h4>
+ <p>
+ Sergeants are non-commissioned officers with specialized skills in
+ areas such as infantry tactics, logistics, reconnaissance, or heavy
+ weapons. They serve as squad leaders or technical experts and are
+ responsible for mission planning at the unit level. Sergeants bridge
+ the gap between enlisted personnel and commissioned officers.
+ </p>
+ </section>
+
+ <section id="major">
+ <h4>Major</h4>
+ <p>
+ Majors hold tactical leadership positions and typically command
+ platoons or companies. They are responsible for coordinating
+ multiple squads in combat operations and ensuring that their units
+ are properly trained and equipped. Majors must demonstrate strong
+ tactical acumen and the ability to make critical decisions under
+ pressure.
+ </p>
+ </section>
+
+ <section id="commander">
+ <h4>Commander</h4>
+ <p>
+ Commanders lead groups of Majors and coordinate battalion-level or
+ larger operations. They are responsible for operational planning,
+ resource allocation, and ensuring that tactical leaders can execute
+ their missions effectively. Commanders serve as the link between
+ tactical and strategic leadership.
+ </p>
+ </section>
+
+ <section id="general">
+ <h4>General</h4>
+ <p>
+ Generals hold the highest rank in the Marine division and are
+ responsible for strategic command and overall Marine Corps
+ operations. They establish doctrine, set long-term objectives, and
+ represent the Marine forces in organizational leadership. Generals
+ shape the identity and capabilities of the entire Marine division.
+ </p>
+ </section>
+ </section>
+ </article>
</body>
<script>
document.addEventListener("DOMContentLoaded", () => {
@@ -82,21 +303,46 @@
});
function generateTableOfContents() {
- const headings = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
+ const headings = document.querySelectorAll("h1, h2, h3");
const toc = document.createElement("nav");
toc.id = "table-of-contents";
- const tocList = document.createElement("ul");
+ const rootList = document.createElement("ul");
+ toc.appendChild(rootList);
+
+ let currentList = rootList;
+ let currentLevel = 0;
+ const listStack = {};
headings.forEach((heading) => {
- const tocItem = document.createElement("li");
+ const level = parseInt(heading.tagName[1]);
const tocLink = document.createElement("a");
tocLink.textContent = heading.textContent;
tocLink.href = `#${heading.id}`;
+ const tocItem = document.createElement("li");
tocItem.appendChild(tocLink);
- tocList.appendChild(tocItem);
+
+ if (currentLevel === 0) {
+ rootList.appendChild(tocItem);
+ listStack[level] = rootList;
+ currentList = rootList;
+ currentLevel = level;
+ } else if (level === currentLevel) {
+ currentList.appendChild(tocItem);
+ } else if (level > currentLevel) {
+ const nestedList = document.createElement("ul");
+ const lastItem = currentList.lastElementChild;
+ (lastItem || currentList).appendChild(nestedList);
+ listStack[level] = nestedList;
+ currentList = nestedList;
+ currentLevel = level;
+ nestedList.appendChild(tocItem);
+ } else {
+ currentList = listStack[level] || rootList;
+ currentList.appendChild(tocItem);
+ currentLevel = level;
+ }
});
- toc.appendChild(tocList);
document.body.insertBefore(toc, document.body.firstChild);
}
</script>