position: absolute;
top: 0;
left: -50%;
right: 0;
bottom: 0;
width: 9999px;
height: 100%;
background-color: $linestoke;
z-index: -1;
opacity: 0.2;
if (td.classList.contains("price") || td.classList.contains("amount")) {
let tr = td.parentElement;
console.log(tr.childNodes);
for (let elem of tr.childNodes) {
if (elem.closest(".cost")) {
elem.textContent = price.value * amount.value;
}
}
recountTotal();
}
let cost = td.parentElement.cells[3];
cost.textContent = price.value * amount.value;
recountTotal();