diff --git a/static/filterTable.js b/static/filterTable.js index 30d2615..d69cb7d 100644 --- a/static/filterTable.js +++ b/static/filterTable.js @@ -3,7 +3,6 @@ function filterTable() { const filter = input.value.toLowerCase(); const table = document.getElementById('gun-stats'); const tr = table.getElementsByTagName('tr'); - for (let i = 1; i < tr.length; i++) { const td = tr[i].getElementsByTagName('td')[1]; if (td) { diff --git a/static/style.css b/static/style.css index f18ee22..d3b4115 100644 --- a/static/style.css +++ b/static/style.css @@ -24,7 +24,7 @@ input[type="text"] { } body { - background-image: url("/static/img/trlbg1.jpg"); + background-image: url("/trlstats/static/img/trlbg1.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; @@ -39,14 +39,14 @@ header nav { } header nav a { - color: #4CAF50; + color: red; text-decoration: none; font-weight: bold; padding: 10px 20px; } header nav a:hover { - color: gray; + color: red; } h1 { @@ -85,14 +85,14 @@ th { button { padding: 5px 10px; - background-color: #4CAF50; + background-color: red; color: white; border: none; cursor: pointer; } button:hover { - background-color: #45a049; + background-color: red; } input { @@ -318,7 +318,7 @@ textarea { /* Button hover effect */ .button1:hover { - background-color: #45a049; + background-color: red; transform: scale(1.05); } @@ -330,7 +330,6 @@ textarea { margin-top: 20px; } -/* Adjustments for mobile responsiveness */ @media screen and (max-width: 600px) { input[type="text"], input[type="number"], textarea { width: 80%; @@ -342,14 +341,13 @@ textarea { } #modifiers { - width: 100%; /* Adjust this percentage to control the width */ + width: 100%; } #abilities { width: 100%; } - /* Adjust spacing between different ability modifiers */ #abilities label { display: block; margin-bottom: 10px; @@ -357,13 +355,11 @@ textarea { white-space: nowrap; } - /* Optional: Adjust margin between checkbox and text */ #abilities input[type="checkbox"] { margin-right: 5px; } } -/* Styling for horizontal table */ .weapon-stats-table { width: 100%; border-collapse: collapse; @@ -373,7 +369,7 @@ textarea { .weapon-stats-table th, .weapon-stats-table td { border: 1px solid #ddd; padding: 8px; - text-align: center; /* Centers the text */ + text-align: center; } .weapon-stats-table th { @@ -459,9 +455,6 @@ textarea { font-size: 1.1rem; font-weight: 500; } -.nav-menu a:hover { - color: #4CAF50; -} .nav-menu.active { right: 0; diff --git a/templates/about_us.html b/templates/about_us.html index fdf9d17..0326486 100644 --- a/templates/about_us.html +++ b/templates/about_us.html @@ -1,14 +1,111 @@ - - - - - About Us - + + + About Us - TRL Stats + + + + +
- +

About Us

-

Hey there! You seem to have stumbled upon the TRL Stat Page created by Fretux and - Losernoob124!


+ +

Hey there! You found the TRL Stats Page by Fretux and Losernoob124 🎯

+

Our Mission

-

This website exists because we want to provide the - TRL Community with an easy go-to way to calculate DPS and DPM values to help players make informed decisions - about their gameplay. Whether you're fine-tuning your new Deathwish Strategy or simply curious about firearm - performance, we’ve got you covered. If you have suggestions, feedback, or want to contribute new stats or - features, we’d love to hear from you, just contact us on Discord or on the Suggestion Page! +

+ 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.

+

+ Got ideas or stat suggestions? Hit us up on Discord or submit feedback via our Suggestions Page. +

+

Our Story

- In the beginning, the only way to calculate DPS/DPM stats for certain operatives was, by using the Spreadsheet - by Lanz1021 and a calculator, which quickly turned out to be (shockers) really annoying. TRL Stats started out - as a side project, initially started by Losernoob124 to calculate gun stats more easily, but given up one after - a couple of weeks. Eventually Fretux started working on it again and what initially was just a fun hobby grew - into something much bigger, and through the help of Stack Overflow and many hours of programming, we - turned it into a full-fledged website. + 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.

-

The Team

-

- Fretux - Frontend Developer and Data Specialist. Responsible for the designing of the website and making - sure the gun stats are accurate and up to date. -

-

- Losernoob124 - Backend Developer. Responsible for all the scripts that make sure the website functions - correctly. -

-

Frequently Asked Questions

-

How do you calculate DPS and DPM?

-

We put the data given by - Lanz1021's - Stat Sheet into a .JSON (Javascript Object - Notation) file, which we use to calculate the DPS - (damage per second) and DPM (damage per minute) of each weapon via a formula that is also mentioned on Lanz1021' - Spreadsheet.

-

How often are stats updated?

-

We update the weapon stats every time a new update is released for TRL.

-

Special Thanks

-

- gameknight90999(holdenn/holdenisch): For supporting us with various informations, helping us add some unmentioned Balance Changes and overall supporting us all the way through development.
- Kris HD(krishd1337): For the motivation and help with finding bugs.
- Lanz1021: For reviewing and giving feedback.
- AND YOU!: We are thankful for every visitor we get on this website, and we hope you're enjoying it! -

-

Thank you for visiting TRL Stats.

- +

The Team

+
+
+ Fretux – Frontend Developer & Data Specialist. Designs the UI and ensures stat accuracy. +
+
+ Losernoob124 – Backend Developer. Handles everything under the hood and makes sure the calculators + work. +
+
+ +

Frequently Asked Questions

+
+

How do you calculate DPS and DPM?

+

+ We use data from Lanz1021's Stat Sheet, convert it into a JSON structure, and use it with formulas + similar to what’s on the sheet. +

+ +

How often are stats updated?

+

+ We update our database every time TRL releases a gameplay patch or changes weapon stats. +

+
+ +

Special Thanks 🙏

+
+

gameknight90999 (holdenn): Helped with various stat and weapon data and ideas

+

Kris HD: Motivation + bug hunting

+

Lanz1021: Feedback & review

+

YOU: For visiting — thank you!

+
+ +

+ Thanks for using TRL Stats 💚 +

+ + \ No newline at end of file diff --git a/templates/calculator.html b/templates/calculator.html index 9d1f367..256a2a7 100644 --- a/templates/calculator.html +++ b/templates/calculator.html @@ -6,23 +6,6 @@ DPM/DPS Calculator -