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