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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user