css unso :3
This commit is contained in:
parent
c4863a8bb5
commit
89f35a4c9e
@ -8,6 +8,8 @@
|
|||||||
<title>Bingo</title>
|
<title>Bingo</title>
|
||||||
<meta name="description" content="Stammtisch Bingo">
|
<meta name="description" content="Stammtisch Bingo">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -41,9 +41,16 @@ function generateTable() {
|
|||||||
row = thead.insertRow();
|
row = thead.insertRow();
|
||||||
}
|
}
|
||||||
let cell = row.insertCell();
|
let cell = row.insertCell();
|
||||||
|
|
||||||
let text = document.createTextNode(field);
|
let text = document.createTextNode(field);
|
||||||
cell.appendChild(text);
|
cell.appendChild(text);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
table.addEventListener('click', (ev) => {
|
||||||
|
if (ev.target.tagName.toLowerCase() == "td" ) {
|
||||||
|
ev.target.style.borderColor = "green";
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
generateTable();
|
generateTable();
|
||||||
|
Loading…
Reference in New Issue
Block a user