Refresh Anomaly Front pages and nav

This commit is contained in:
2026-01-14 20:12:40 +01:00
parent 328f872588
commit a7108bdc20
10 changed files with 875 additions and 1030 deletions
+79 -96
View File
@@ -3,115 +3,98 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>About Us - TRL Stats</title>
<link rel="icon" type="image/x-icon" href="/trlstats/static/img/TRL_Logo_Custom.jpg"/>
<title>About | Anomaly Front Toolkit</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
</head>
<body>
<header>
<nav>
<button class="hamburger" aria-label="Toggle menu" aria-expanded="false" aria-controls="nav-menu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<div class="nav-menu" id="nav-menu">
<a href="{{ url_for('calculator') }}">DPS/DPM CALCULATOR</a>
<a href="{{ url_for('index') }}">GUN STATS</a>
<a href="{{ url_for('suggestion') }}">SUGGESTIONS & FEEDBACK</a>
<a href="https://www.roblox.com/games/5766084948/SCP-The-Red-Lake-EVENT">PLAY THE RED LAKE</a>
<a href="https://discord.gg/2jDevH8aTd">OUR DISCORD</a>
<body class="af-body">
<header class="af-header">
<div class="af-brand">
<div class="af-logo" aria-hidden="true">
<span></span>
<span></span>
<span></span>
</div>
<div>
<p class="af-title">Anomaly Front</p>
<p class="af-subtitle">About the toolkit</p>
</div>
</div>
<button class="af-nav-toggle" type="button" aria-expanded="false" aria-controls="af-nav">
Menu
</button>
<nav class="af-nav" id="af-nav" aria-label="Primary">
<a class="af-nav-link" href="{{ url_for('index') }}">Home</a>
<a class="af-nav-link" href="{{ url_for('calculator') }}">Calculator</a>
<a class="af-nav-link" href="{{ url_for('suggestion') }}">Feedback</a>
</nav>
</header>
<main class="about_us_main">
<h1 class="about_us_h1">About Us</h1>
<h3 class="about_us_h3"><b>Hey there!</b> You found the TRL Stats Page by <b>Fretux</b> and <b>Losernoob124</b></h3>
<h2 class="about_us_h2">Our Mission</h2>
<p class="about_us_text">
We created this platform to help the TRL community quickly and easily calculate gun DPS and DPM. No
spreadsheets, no hassle. Whether you're theorycrafting a Deathwish loadout or comparing your sidearms, our
tool’s built to support your grind.
</p>
<p class="about_us_text">
Got ideas or stat suggestions? Hit us up on Discord or submit feedback via our <a
href="{{ url_for('suggestion') }}">Suggestions Page</a>.
</p>
<h2 class="about_us_h2">Our Story</h2>
<p class="about_us_text">
It started with a spreadsheet... and frustration. Calculating DPS manually was tedious and we knew we could do
better. What began as a side hobby by Losernoob124 was reignited by Fretux and evolved into a full web app
through plenty of bug fixing, community help, and caffeine.
</p>
<h2 class="about_us_h2">The Team</h2>
<div class="team-section">
<div class="team-member">
<b>Fretux</b> – Frontend Developer & Data Specialist. Designs the UI and ensures stat accuracy.
<main class="af-shell">
<section class="af-card">
<div class="af-card-header">
<h1>About the Anomaly Front toolkit</h1>
<p>
This site is the staging ground for an unreleased experience. We are rebuilding every tool from the
ground up to avoid legacy stats, old branding, or outdated data.
</p>
</div>
<div class="team-member">
<b>Losernoob124</b> – Backend Developer. Handles everything under the hood and makes sure the calculators
work.
<div class="af-copy-grid">
<div>
<h2>Purpose</h2>
<p>
Provide a shared workspace for balancing weapons, capturing loadout notes, and testing combat pacing
long before the official numbers land.
</p>
</div>
<div>
<h2>What is live today</h2>
<ul>
<li>Baseline combat calculator</li>
<li>Notes and modifier placeholders</li>
<li>Feedback capture workflow</li>
</ul>
</div>
<div>
<h2>What comes next</h2>
<ul>
<li>Shared weapon library for early drafts</li>
<li>Attachment tuning stacks</li>
<li>Operative perks and passive effects</li>
</ul>
</div>
</div>
</div>
</section>
<h2 class="about_us_h2">Frequently Asked Questions</h2>
<div class="faq">
<p><b>How do you calculate DPS and DPM?</b></p>
<p class="about_us_text">
We use data from <a
href="https://docs.google.com/spreadsheets/d/1hGGLMOKB5Tj3FSo38HX7WbIvOmMbgfE5ZApTSOZgnS8/edit?gid=0#gid=0"
target="_blank">Lanz1021's Stat Sheet</a>, convert it into a JSON structure, and use it with formulas
similar to what’s on the sheet.
</p>
<p><b>How often are stats updated?</b></p>
<p class="about_us_text">
We update our database every time TRL releases a gameplay patch or changes weapon stats.
</p>
</div>
<h2 class="about_us_h2">Special Thanks</h2>
<div class="thanks-section">
<p><b>gameknight90999 (holdenn)</b>: Helped with various stat and weapon data and ideas</p>
<p><b>Kris HD</b>: Motivation + bug hunting</p>
<p><b>Lanz1021</b>: Feedback & review</p>
<p><b>YOU</b>: For visiting — thank you!</p>
</div>
<h3 class="about_us_text" style="text-align: center; margin-top: 2rem;">
Thanks for using <b>TRL Stats</b>
</h3>
<section class="af-grid">
<div class="af-card">
<div class="af-card-header">
<h2>Team notes</h2>
<p>
This is a community-driven project. Use the feedback channel to share balancing ideas, feature
requests, and UI improvements.
</p>
</div>
</div>
<div class="af-card">
<div class="af-card-header">
<h2>Release posture</h2>
<p>
Anomaly Front is unreleased. Everything shown here is a placeholder designed to help us think
through combat pacing before the official data arrives.
</p>
</div>
</div>
</section>
</main>
<script>
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
const navToggle = document.querySelector('.af-nav-toggle');
const nav = document.getElementById('af-nav');
function setMenu(open) {
hamburger.classList.toggle('active', open);
navMenu.classList.toggle('active', open);
document.body.classList.toggle('menu-open', open);
hamburger.setAttribute('aria-expanded', open ? 'true' : 'false');
}
hamburger.addEventListener('click', () => {
const isOpen = hamburger.classList.contains('active');
setMenu(!isOpen);
navToggle.addEventListener('click', () => {
const isOpen = nav.classList.toggle('is-open');
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') setMenu(false);
});
navMenu.querySelectorAll('a').forEach(link =>
link.addEventListener('click', () => setMenu(false))
);
</script>
</body>
</html>
</html>
+155 -186
View File
@@ -3,200 +3,169 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/trlstats/static/img/TRL_Logo_Custom.jpg">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<title>DPM/DPS Calculator</title>
<title>Anomaly Front | Combat Calculator</title>
</head>
<header>
<nav>
<button class="hamburger" aria-label="Toggle menu" aria-expanded="false" aria-controls="nav-menu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<div class="nav-menu" id="nav-menu">
<a href="{{ url_for('index') }}">GUN STATS</a>
<a href="{{ url_for('about_us') }}">ABOUT US</a>
<a href="{{ url_for('suggestion') }}">SUGGESTIONS & FEEDBACK</a>
<a href="https://www.roblox.com/games/5766084948/SCP-The-Red-Lake-EVENT">PLAY THE RED LAKE</a>
<a href="https://discord.gg/2jDevH8aTd">OUR DISCORD</a>
<body class="af-body">
<header class="af-header">
<div class="af-brand">
<div class="af-logo" aria-hidden="true">
<span></span>
<span></span>
<span></span>
</div>
<div>
<p class="af-title">Anomaly Front</p>
<p class="af-subtitle">Combat Calculator</p>
</div>
</div>
<button class="af-nav-toggle" type="button" aria-expanded="false" aria-controls="af-nav">
Menu
</button>
<nav class="af-nav" id="af-nav" aria-label="Primary">
<a class="af-nav-link" href="{{ url_for('index') }}">Home</a>
<a class="af-nav-link" href="{{ url_for('suggestion') }}">Feedback</a>
<a class="af-nav-link" href="{{ url_for('about_us') }}">About</a>
</nav>
</header>
<body>
<main>
<div class="select-wrapper">
<label for="weapon-search" class="sr-only">Search weapons</label>
<input type="text" id="weapon-search" placeholder="Search weapons...">
<label for="weapon-select" class="sr-only">Select a weapon</label>
<select id="weapon-select" name="weapons">
<option value="">Select a Weapon</option>
</select>
</div>
<button id="weapon-create">Create New Weapon</button>
<button id="weapon-edit" disabled>Edit Weapon</button>
<div id="edit-error" class="error-message" aria-live="polite"></div>
<br>
<div id="guntype-filters">
<label><input type="checkbox" id="primary" value="PRIMARY"> Primary</label>
<label><input type="checkbox" id="secondary" value="SECONDARY"> Secondary</label>
<label><input type="checkbox" id="ww2" value="WW2"> WW2</label>
<label><input type="checkbox" id="soviet" value="SOVIET"> Soviet</label>
<label><input type="checkbox" id="rifle" value="RIFLE"> Rifle</label>
<label><input type="checkbox" id="smg" value="SMG"> SMG</label>
<label><input type="checkbox" id="shotgun" value="SHOTGUN"> Shotgun</label>
<label><input type="checkbox" id="lmg" value="LMG"> LMG</label>
<label><input type="checkbox" id="pistol" value="PISTOL"> Pistol</label>
<label><input type="checkbox" id="special" value="SPECIAL"> Special</label>
<label><input type="checkbox" id="semi-auto" value="SEMI-AUTO"> Semi-Auto</label>
</div>
<div class="select-wrapper">
<label for="operative-search" class="sr-only">Search operatives</label>
<input type="text" id="operative-search" placeholder="Search operatives...">
<label for="operative-select" class="sr-only">Select an operative</label>
<select id="operative-select">
<option value="">Select an operative</option>
</select>
</div>
<br>
<div id="stats-announcer" class="sr-only" aria-live="polite" aria-atomic="true"></div>
<div id="weapon-stats"></div>
<div id="calculated-stats"></div>
<button id="copy-stats">Copy to Clipboard</button>
<div id="copy-message" aria-live="polite"></div>
<h3>Operative Specific Modifiers</h3>
<div id="operative-modifiers"></div>
<div id="modifiers-container">
<div id="modifiers"></div>
<div id="abilities"></div>
</div>
<main class="af-shell">
<section class="af-hero">
<div>
<h1>Build a baseline weapon profile</h1>
<p>
Anomaly Front is still unreleased, so this calculator starts from scratch. Add your own
placeholder values to explore pacing, time-to-eliminate, and reload cadence.
</p>
</div>
<div class="af-status">
<div>
<p class="af-status-label">Stats library</p>
<p class="af-status-value">No official stats yet</p>
</div>
<div>
<p class="af-status-label">Modifier stack</p>
<p class="af-status-value">Coming soon</p>
</div>
<div>
<p class="af-status-label">Version</p>
<p class="af-status-value">Foundation v0.1</p>
</div>
</div>
</section>
<section class="af-grid">
<div class="af-card">
<div class="af-card-header">
<h2>Base inputs</h2>
<p>Enter a prototype loadout and tweak values to see combat pacing.</p>
</div>
<form class="af-form" id="af-calculator">
<label>
Weapon name
<input type="text" name="weaponName" placeholder="Prototype AR" autocomplete="off">
</label>
<label>
Base damage
<input type="number" name="baseDamage" step="0.01" min="0" placeholder="32">
</label>
<label>
Projectiles per shot
<input type="number" name="projectiles" step="1" min="1" value="1">
</label>
<label>
Rate of fire (RPM)
<input type="number" name="rpm" step="0.1" min="0" placeholder="720">
</label>
<label>
Magazine size
<input type="number" name="magazine" step="1" min="0" placeholder="30">
</label>
<label>
Reload time (seconds)
<input type="number" name="reload" step="0.1" min="0" placeholder="2.4">
</label>
<label>
Target health (optional)
<input type="number" name="targetHealth" step="1" min="0" placeholder="200">
</label>
<div class="af-form-actions">
<button type="button" id="af-reset">Reset</button>
<button type="button" id="af-copy">Copy summary</button>
</div>
</form>
</div>
<div class="af-card">
<div class="af-card-header">
<h2>Calculated outputs</h2>
<p>Instantly generated from the values you enter.</p>
</div>
<div class="af-metrics" id="af-metrics">
<div class="af-metric">
<p class="af-metric-label">Damage per shot</p>
<p class="af-metric-value" data-output="shotDamage">--</p>
</div>
<div class="af-metric">
<p class="af-metric-label">Burst DPS</p>
<p class="af-metric-value" data-output="burstDps">--</p>
</div>
<div class="af-metric">
<p class="af-metric-label">Sustained DPS</p>
<p class="af-metric-value" data-output="sustainedDps">--</p>
</div>
<div class="af-metric">
<p class="af-metric-label">Time to empty</p>
<p class="af-metric-value" data-output="timeToEmpty">--</p>
</div>
<div class="af-metric">
<p class="af-metric-label">Magazine damage</p>
<p class="af-metric-value" data-output="magDamage">--</p>
</div>
<div class="af-metric">
<p class="af-metric-label">Time to eliminate</p>
<p class="af-metric-value" data-output="ttk">--</p>
</div>
</div>
<div class="af-callout">
<h3>Placeholder roadmap</h3>
<ul>
<li>Attachment tuning stacks</li>
<li>Operative perks &amp; passive bonuses</li>
<li>Armor breakpoints + elemental statuses</li>
</ul>
</div>
</div>
</section>
<section class="af-grid">
<div class="af-card">
<div class="af-card-header">
<h2>Modifier library</h2>
<p>No live modifiers yet. Use this space to jot down prototype buffs.</p>
</div>
<div class="af-empty">
<p>Modifier slots are empty.</p>
<button type="button" class="af-muted-button">Add placeholder</button>
</div>
</div>
<div class="af-card">
<div class="af-card-header">
<h2>Loadout notes</h2>
<p>Capture ideas for upgrades, attachments, or role identity.</p>
</div>
<textarea class="af-notes" placeholder="Example: Assault rifle tuned for mid-range suppression."></textarea>
</div>
</section>
</main>
<div id="weapon-form">
<div>
<h2>New Weapon</h2>
<form id="weaponForm">
<label>
Name:<br>
<input type="text" name="name" required>
</label><br><br>
<label>
Damage:<br>
<input type="number" step="0.01" name="damage" min="0" required>
</label><br><br>
<label>
Rounds Per Minute:<br>
<input type="number" step="0.01" name="rpm" min="0" required>
</label><br><br>
<label>
Magazine Size:<br>
<input type="number" name="magazin" min="1" required>
</label><br><br>
<label>
Reload Time:<br>
<input type="number" step="0.01" name="reload-time" min="0" required>
</label><br><br>
<label>
Damage Multiplier (bullets per shot):
<br>
<input type="number" name="multiplier" min="0" required>
</label>
<fieldset class="checkbox-group">
<legend>Weapon Type<span class="required">*</span></legend>
<label><input type="checkbox" name="gun-type" value="PRIMARY"> Primary</label>
<label><input type="checkbox" name="gun-type" value="SECONDARY"> Secondary</label>
<label><input type="checkbox" name="gun-type" value="WW2"> WW2</label>
<label><input type="checkbox" name="gun-type" value="RIFLE"> Rifle</label>
<label><input type="checkbox" name="gun-type" value="SOVIET"> Soviet</label>
<label><input type="checkbox" name="gun-type" value="SMG"> SMG</label>
<label><input type="checkbox" name="gun-type" value="SHOTGUN"> Shotgun</label>
<label><input type="checkbox" name="gun-type" value="LMG"> LMG</label>
<label><input type="checkbox" name="gun-type" value="PISTOL"> Pistol</label>
<label><input type="checkbox" name="gun-type" value="SPECIAL"> Special</label>
<label><input type="checkbox" name="gun-type" value="SEMI-AUTO"> Semi-Auto</label>
</fieldset>
<button type="submit" id="submit-btn">Create</button>
<button type="button" id="weapon-cancel">Cancel</button>
</form>
</div>
</div>
</body>
<script src="{{ url_for('static', filename='filterWeapons.js') }}"></script>
<script>
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
const navToggle = document.querySelector('.af-nav-toggle');
const nav = document.getElementById('af-nav');
function lockBodyScroll() {
document.body.style.overflow = 'hidden';
}
function unlockBodyScroll() {
document.body.style.overflow = '';
}
openBtn.addEventListener('click', () => {
modal.classList.add('show');
lockBodyScroll();
});
closeBtn.addEventListener('click', () => {
modal.classList.remove('show');
form.reset();
isEditing = false;
unlockBodyScroll();
});
modal.addEventListener('click', e => {
if (e.target === modal) {
modal.classList.remove('show');
form.reset();
isEditing = false;
unlockBodyScroll();
}
});
submitBtn.addEventListener('click', () => {
modal.classList.remove('show');
unlockBodyScroll();
})
function setMenu(open) {
hamburger.classList.toggle('active', open);
navMenu.classList.toggle('active', open);
document.body.classList.toggle('menu-open', open);
hamburger.setAttribute('aria-expanded', open ? 'true' : 'false');
}
hamburger.addEventListener('click', () => {
const isOpen = hamburger.classList.contains('active');
setMenu(!isOpen);
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') setMenu(false);
});
navMenu.querySelectorAll('a').forEach(link =>
link.addEventListener('click', () => setMenu(false))
);
document.addEventListener('DOMContentLoaded', function () {
var coll = document.getElementsByClassName("collapsible-header");
for (var i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function () {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
navToggle.addEventListener('click', () => {
const isOpen = nav.classList.toggle('is-open');
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
</script>
</html>
</body>
</html>
+82 -64
View File
@@ -3,76 +3,94 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/trlstats/static/img/TRL_Logo_Custom.jpg">
<title>Gun Stats</title>
<title>Anomaly Front | Operations Hub</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<header>
<nav>
<button class="hamburger" aria-label="Toggle menu" aria-expanded="false" aria-controls="nav-menu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<div class="nav-menu" id="nav-menu">
<a href="{{ url_for('calculator') }}">DPS/DPM CALCULATOR</a>
<a href="{{ url_for('about_us') }}">ABOUT US</a>
<a href="{{ url_for('suggestion') }}">SUGGESTIONS & FEEDBACK</a>
<a href="https://www.roblox.com/games/5766084948/SCP-The-Red-Lake-EVENT">PLAY THE RED LAKE</a>
<a href="https://discord.gg/2jDevH8aTd">OUR DISCORD</a>
<body class="af-body">
<header class="af-header">
<div class="af-brand">
<div class="af-logo" aria-hidden="true">
<span></span>
<span></span>
<span></span>
</div>
<div>
<p class="af-title">Anomaly Front</p>
<p class="af-subtitle">Operations hub for the unreleased toolkit.</p>
</div>
</div>
<button class="af-nav-toggle" type="button" aria-expanded="false" aria-controls="af-nav">
Menu
</button>
<nav class="af-nav" id="af-nav" aria-label="Primary">
<a class="af-nav-link" href="{{ url_for('calculator') }}">Calculator</a>
<a class="af-nav-link" href="{{ url_for('suggestion') }}">Feedback</a>
<a class="af-nav-link" href="{{ url_for('about_us') }}">About</a>
</nav>
</header>
<body class="background-image">
<main>
<h1>Gun Stats</h1>
<div class="search-container">
<input type="text" id="search" placeholder="Search by name" onkeyup="filterTable()">
</div>
<table id="gun-stats" class="background-roster">
<thead>
<tr>
<th>Name</th>
<th>Damage</th>
<th>Rounds per minute</th>
<th>Magazine Size</th>
<th>Reload time</th>
<th>RPS</th>
<th>DPS</th>
<th>DPM</th>
<th>Avg DPS</th>
</tr>
</thead>
<tbody>
<!-- Gun stats will be populated here -->
</tbody>
</table>
<script src="{{ url_for('static', filename='populateTable.js') }}"></script>
<script src="{{ url_for('static', filename='filterTable.js') }}"></script>
<script>
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
<main class="af-shell">
<section class="af-hero">
<div>
<h1>Welcome to the Anomaly Front planning space</h1>
<p>
This hub replaces the legacy stats pages with a clean foundation for a new game. Start with the
calculator, capture balancing ideas, and iterate as official data arrives.
</p>
</div>
<div class="af-status">
<div>
<p class="af-status-label">Core modules</p>
<p class="af-status-value">Calculator • Notes • Roadmap</p>
</div>
<div>
<p class="af-status-label">Data state</p>
<p class="af-status-value">Prototype-only</p>
</div>
<div>
<p class="af-status-label">Next release</p>
<p class="af-status-value">Loadout library</p>
</div>
</div>
</section>
function setMenu(open) {
hamburger.classList.toggle('active', open);
navMenu.classList.toggle('active', open);
document.body.classList.toggle('menu-open', open);
hamburger.setAttribute('aria-expanded', open ? 'true' : 'false');
}
hamburger.addEventListener('click', () => {
const isOpen = hamburger.classList.contains('active');
setMenu(!isOpen);
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') setMenu(false);
});
navMenu.querySelectorAll('a').forEach(link =>
link.addEventListener('click', () => setMenu(false))
);
</script>
<section class="af-grid">
<div class="af-card">
<div class="af-card-header">
<h2>Start a baseline build</h2>
<p>Jump into the combat calculator and block out a weapon profile in minutes.</p>
</div>
<div class="af-card-actions">
<a class="af-cta" href="{{ url_for('calculator') }}">Open calculator</a>
</div>
</div>
<div class="af-card">
<div class="af-card-header">
<h2>Capture early feedback</h2>
<p>Use the feedback page to log concepts, UI tweaks, and balancing ideas.</p>
</div>
<div class="af-card-actions">
<a class="af-cta" href="{{ url_for('suggestion') }}">Leave feedback</a>
</div>
</div>
<div class="af-card">
<div class="af-card-header">
<h2>Align on the vision</h2>
<p>Keep the team on the same page with the updated Anomaly Front background.</p>
</div>
<div class="af-card-actions">
<a class="af-cta" href="{{ url_for('about_us') }}">Read the brief</a>
</div>
</div>
</section>
</main>
<script>
const navToggle = document.querySelector('.af-nav-toggle');
const nav = document.getElementById('af-nav');
navToggle.addEventListener('click', () => {
const isOpen = nav.classList.toggle('is-open');
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
</script>
</body>
</html>
+55 -52
View File
@@ -3,70 +3,73 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/trlstats/static/img/TRL_Logo_Custom.jpg">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<title>Suggestion</title>
<title>Feedback | Anomaly Front</title>
</head>
<header>
<nav>
<button class="hamburger" aria-label="Toggle menu" aria-expanded="false" aria-controls="nav-menu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<div class="nav-menu" id="nav-menu">
<a href="{{ url_for('calculator') }}">DPS/DPM CALCULATOR</a>
<a href="{{ url_for('about_us') }}">ABOUT US</a>
<a href="{{ url_for('index') }}">GUN STATS</a>
<a href="https://www.roblox.com/games/5766084948/SCP-The-Red-Lake-EVENT">PLAY THE RED LAKE</a>
<a href="https://discord.gg/2jDevH8aTd">OUR DISCORD</a>
<body class="af-body">
<header class="af-header">
<div class="af-brand">
<div class="af-logo" aria-hidden="true">
<span></span>
<span></span>
<span></span>
</div>
<div>
<p class="af-title">Anomaly Front</p>
<p class="af-subtitle">Feedback channel</p>
</div>
</div>
<button class="af-nav-toggle" type="button" aria-expanded="false" aria-controls="af-nav">
Menu
</button>
<nav class="af-nav" id="af-nav" aria-label="Primary">
<a class="af-nav-link" href="{{ url_for('index') }}">Home</a>
<a class="af-nav-link" href="{{ url_for('calculator') }}">Calculator</a>
<a class="af-nav-link" href="{{ url_for('about_us') }}">About</a>
</nav>
</header>
<body>
<main class="background-image">
<h1>Suggestion</h1>
<h3 class="suggestion-title"><b>Welcome to Suggestions!</b><br> We encourage you to share your ideas, improvments,
or even fun comments with us, so we can develop this website further.</h3>
<article>
<label for="name">Pseudoname:</label>
<input type="text" id="name" name="name" placeholder="not required"><br><br>
<main class="af-shell">
<section class="af-card">
<div class="af-card-header">
<h1>Share your feedback</h1>
<p>
Help us shape the Anomaly Front toolkit. Share feature requests, balance ideas, or UI tweaks and we
will log them for the next iteration.
</p>
</div>
<article class="af-form">
<label class="af-field" for="name">
Pseudoname
<input class="af-input" type="text" id="name" name="name" placeholder="Optional">
</label>
<label for="rate">Rating:</label>
<input type="number" id="rate" name="rating" min="1" max="10" required><br><br>
<label class="af-field" for="rate">
Rating
<input class="af-input" type="number" id="rate" name="rating" min="1" max="10" required>
</label>
<label for="text">Text:</label>
<textarea id="text" name="text" rows="4" cols="50" placeholder="Enter your comments here..." minlength="5"
maxlength="500" required></textarea><br><br>
</article>
<button class="button1" type="button" onclick="sendMessage()">Send</button>
<p id="successMessage" style="display: none;" aria-live="polite" role="status"></p>
<p id="errorMessage" style="display: none; color: crimson;" aria-live="polite" role="status"></p>
<label class="af-field" for="text">
Feedback
<textarea class="af-input" id="text" name="text" rows="4" cols="50" placeholder="Enter your comments here..." minlength="5"
maxlength="500" required></textarea>
</label>
</article>
<div class="af-form-actions">
<button class="af-cta" type="button" onclick="sendMessage()">Send feedback</button>
</div>
<p id="successMessage" style="display: none;" aria-live="polite" role="status"></p>
<p id="errorMessage" style="display: none; color: crimson;" aria-live="polite" role="status"></p>
</section>
</main>
<script src="{{ url_for('static', filename='suggestion.js') }}"></script>
<script>
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
const navToggle = document.querySelector('.af-nav-toggle');
const nav = document.getElementById('af-nav');
function setMenu(open) {
hamburger.classList.toggle('active', open);
navMenu.classList.toggle('active', open);
document.body.classList.toggle('menu-open', open);
hamburger.setAttribute('aria-expanded', open ? 'true' : 'false');
}
hamburger.addEventListener('click', () => {
const isOpen = hamburger.classList.contains('active');
setMenu(!isOpen);
navToggle.addEventListener('click', () => {
const isOpen = nav.classList.toggle('is-open');
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') setMenu(false);
});
navMenu.querySelectorAll('a').forEach(link =>
link.addEventListener('click', () => setMenu(false))
);
</script>
</body>
</html>