commit 9817331cfc0d02d5803f6b5c7aec01679610cdc1 Author: Matt Huntington Date: Mon Jan 4 20:36:04 2021 -0500 create diff --git a/app.js b/app.js new file mode 100644 index 0000000..040430c --- /dev/null +++ b/app.js @@ -0,0 +1,27 @@ +document.querySelector('button').addEventListener('click', () => { + const newRow = document.createElement('tr') + + const initiative = document.createElement('td'); + const initiativeInput = document.createElement('input'); + initiativeInput.setAttribute('type', 'number'); + initiativeInput.setAttribute('placeholder', 'initiative'); + initiative.appendChild(initiativeInput); + + const name = document.createElement('td'); + const nameInput = document.createElement('input'); + nameInput.setAttribute('type', 'text'); + nameInput.setAttribute('placeholder', 'name'); + name.appendChild(nameInput); + + const notes = document.createElement('td'); + const notesInput = document.createElement('textarea'); + notesInput.setAttribute('placeholder', 'notes'); + notes.appendChild(notesInput); + + newRow.appendChild(initiative); + newRow.appendChild(name); + newRow.appendChild(notes); + + document.querySelector('table').appendChild(newRow); + +}) diff --git a/index.html b/index.html new file mode 100644 index 0000000..cc78024 --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + + + + + +
+ + + +