removed ID from gun stats
This commit is contained in:
+9
-10
@@ -31,15 +31,14 @@ function populateTable(data) {
|
|||||||
table.innerHTML = ''; // Clear existing table data
|
table.innerHTML = ''; // Clear existing table data
|
||||||
data.forEach(gun => {
|
data.forEach(gun => {
|
||||||
const row = table.insertRow();
|
const row = table.insertRow();
|
||||||
row.insertCell(0).innerText = gun.id;
|
row.insertCell(0).innerText = gun.name;
|
||||||
row.insertCell(1).innerText = gun.name;
|
row.insertCell(1).innerText = gun.total_damage.toFixed(2);
|
||||||
row.insertCell(2).innerText = gun.total_damage.toFixed(2);
|
row.insertCell(2).innerText = gun.rpm;
|
||||||
row.insertCell(3).innerText = gun.rpm;
|
row.insertCell(3).innerText = gun.mag_size;
|
||||||
row.insertCell(4).innerText = gun.mag_size;
|
row.insertCell(4).innerText = gun.reload_time;
|
||||||
row.insertCell(5).innerText = gun.reload_time;
|
row.insertCell(5).innerText = gun.rps.toFixed(2);
|
||||||
row.insertCell(6).innerText = gun.rps.toFixed(2);
|
row.insertCell(6).innerText = gun.dps.toFixed(2);
|
||||||
row.insertCell(7).innerText = gun.dps.toFixed(2);
|
row.insertCell(7).innerText = gun.dpm.toFixed(2);
|
||||||
row.insertCell(8).innerText = gun.dpm.toFixed(2);
|
row.insertCell(8).innerText = gun.avg_dps.toFixed(2);
|
||||||
row.insertCell(9).innerText = gun.avg_dps.toFixed(2);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,6 @@
|
|||||||
<table id="gun-stats" class="background-roster">
|
<table id="gun-stats" class="background-roster">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Damage</th>
|
<th>Damage</th>
|
||||||
<th>Rounds per minute</th>
|
<th>Rounds per minute</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user