node.js conversion

This commit is contained in:
Mikkeli Matlock
2024-02-21 15:58:29 +09:00
parent 462ca55412
commit ae746c23f4
11 changed files with 21568 additions and 16 deletions
+16
View File
@@ -0,0 +1,16 @@
var table = document.querySelector(".mdc-table");
function registerScore(score) {
var row = document.createElement("tr");
var cell1 = document.createElement("td");
cell1.textContent = "Shot " + (table.rows.length + 1);
var cell2 = document.createElement("td");
cell2.textContent = score;
row.appendChild(cell1);
row.appendChild(cell2);
table.appendChild(row);
}
document.querySelector(".mdc-button").addEventListener("click", function() {
registerScore(10);
});