| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,9 +24,12 @@ addForm.addEventListener('submit', function(e){ | |||
| 24 | 24 | bookName.textContent = value; | |
| 25 | 25 | deleteBtn.textContent = 'delete'; | |
| 26 | 26 | ||
| 27 | + // add classes | ||
| 28 | + bookName.classList.add('name'); | ||
| 29 | + deleteBtn.classList.add('delete'); | ||
| 30 | + | ||
| 27 | 31 | // append to DOM | |
| 28 | 32 | li.appendChild(bookName); | |
| 29 | 33 | li.appendChild(deleteBtn); | |
| 30 | 34 | list.appendChild(li); | |
| 31 | - //list.insertBefore(li, list.querySelector('li:first-child')); | ||
| 32 | 35 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments