From a8b1454e1ac82e595b27af21c537bcc20b461294 Mon Sep 17 00:00:00 2001 From: IM23a-spirgif Date: Fri, 27 Sep 2024 21:41:51 +0200 Subject: [PATCH] added semi-auto option and minor code adjustments --- static/filterWeapons.js | 2 +- templates/calculator.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/filterWeapons.js b/static/filterWeapons.js index 58cc41f..9d16b96 100644 --- a/static/filterWeapons.js +++ b/static/filterWeapons.js @@ -6,7 +6,7 @@ let selectedGunTypes = []; // Track selected gun types for filtering // Function to fetch operatives data from JSON function fetchOperativesData() { - fetch('/static/json/operative.json') + fetch('static/json/operative.json') .then(response => response.json()) .then(data => { populateOperatives(data.operatives); // Populate the operative dropdown once data is loaded diff --git a/templates/calculator.html b/templates/calculator.html index a148b0d..563af33 100644 --- a/templates/calculator.html +++ b/templates/calculator.html @@ -89,6 +89,7 @@ +