Lines Matching refs:cell
25 cells.forEach(cell => {
26 cell.addEventListener("click", function() {
27 setStatusColor(cell, selectedColor);
30 cell.addEventListener("mousedown", function() {
32 currentRow = cell.parentElement; // Speichert die aktuelle Zeile
33 setStatusColor(cell, selectedColor);
36 cell.addEventListener("mouseover", function() {
37 if (isDragging && cell.parentElement === currentRow) {
38 setStatusColor(cell, selectedColor);
42 cell.addEventListener("mouseup", function() {
50 function setStatusColor(cell, color) { argument
51 cell.style.backgroundColor = color;
52 cell.setAttribute("data-status", color);
60 cells.forEach((cell, cellIndex) => {
61 const color = cell.getAttribute("data-status");
122 … const cell = row.querySelectorAll(".status-cell")[cellIndex]; // Hole die entsprechende Zelle
123 if (cell) {
124 setStatusColor(cell, color); // Setze die Farbe der Zelle