"By the foot" allows you to purchase the length of electrical wiring you need for that special project. Available in both solid and striped insulation, you can use to organize wiring configurations by color, or identify a specific connection in your Fightstick or arcade cabinet.
FEATURES
.304m (1ft) of wire
22 AWG
Stranded Tinned Copper Wire
insulation: Color Coded Polyvinylchloride (PVC)
Available in solid color or color + white or color stripe
Good wire quality. Nice flexible stranded wire to ensure flexibility. Printed text is faded enough not to be noticeable so it has a nice rich color for my clear fightstick but still legible up close to verify wire specs. Nice to have the option to get wire by the foot here so it's more of a one stop shop. Unlike other places here you know you have options and all are high quality without high prices. Unknown
on
Feb 4th 2020
// HTML Table Sorting
let sortDirection = {}; // Keep track of the sort direction for each column
function sortTableByColumn(columnIndex, type) {
const table = document.getElementById("sortableTable");
let rows, switching, i, x, y, shouldSwitch;
switching = true;
// Set the sorting direction to ascending or flip it if already sorting this column
let direction = sortDirection[columnIndex] === "asc" ? "desc" : "asc";
sortDirection[columnIndex] = direction; // Store the new direction
while (switching) {
switching = false;
rows = table.rows;
// Loop through all table rows (except the first, which contains table headers):
for (i = 1; i < (rows.length - 1); i++) {
shouldSwitch = false;
// Get the two elements you want to compare, one from current row and one from the next:
x = rows[i].getElementsByTagName("TD")[columnIndex];
y = rows[i + 1].getElementsByTagName("TD")[columnIndex];
let xContent = x.innerHTML.toLowerCase();
let yContent = y.innerHTML.toLowerCase();
// Type conversion for numeric sort
if (type === 'number') {
xContent = parseFloat(xContent) || 0;
yContent = parseFloat(yContent) || 0;
}
// Check if the two rows should switch place:
if (direction === "asc") {
if (xContent > yContent) {
shouldSwitch = true;
break;
}
} else if (direction === "desc") {
if (xContent < yContent) {
shouldSwitch = true;
break;
}
}
}
if (shouldSwitch) {
// If a switch has been marked, make the switch and mark that a switch is done:
rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
switching = true;
}
}
}