This commit is contained in:
Christopher Cookman 2025-09-01 02:52:03 -06:00
parent 420595d23b
commit 660a423059

View file

@ -76,7 +76,7 @@
<td> <td>
<% for (const doorName of Object.keys(doorList)) { %> <% for (const doorName of Object.keys(doorList)) { %>
<label> <label>
<input type="checkbox" name="<%= doorName %>" checked /> <input type="checkbox" name="<%= doorName %>" value="<%= doorName %>" checked />
<%= doorName %> <%= doorName %>
</label> </label>
<% } %> <% } %>
@ -152,6 +152,7 @@
const Doors = []; const Doors = [];
tr.children[8].querySelectorAll('input[type="checkbox"]').forEach(cb => { tr.children[8].querySelectorAll('input[type="checkbox"]').forEach(cb => {
if (cb.checked) Doors.push(cb.name); if (cb.checked) Doors.push(cb.name);
console.log(cb.name, cb.checked);
}); });
credentials.push({ credentials.push({
CardNumber, CardNumber,