made DPS/DPM calculator use the data from the json file, removed the search bar from the calculator, and made it so the calculator displays the stats of the picked gun. Moved JSON from / to /static, this doesn't seem to have changed anything. filterWeapons.js has been updated with the required functions so the calculator can spit out the stats

This commit is contained in:
IM23a-spirgif
2024-09-14 23:34:27 +02:00
parent b44ff431b2
commit 420a0dc497
4 changed files with 64 additions and 106 deletions
+6 -3
View File
@@ -53,14 +53,17 @@
</header>
<main>
<label for="search">Search Weapon:</label>
<input type="text" id="search" placeholder="Search by name" onkeyup="filterWeapons()">
<label for="weapon-select">Choose a weapon:</label>
<select id="weapon-select" name="weapons">
<!-- Weapon options will be populated here dynamically -->
</select>
<!-- Weapon Stats will be displayed here -->
<div id="weapon-stats"></div>
<!-- Calculated DPS/DPM results will be shown here -->
<div id="calculated-stats"></div>
<script src="{{ url_for('static', filename='filterWeapons.js') }}"></script>
</main>
</body>