Skip to content

Commit fbe1805

Browse files
committed
Uzdevums
1 parent 48fd578 commit fbe1805

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎app.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ list.addEventListener('click', function(e){
2424
deleteBtn.textContent = 'delete'
2525
bookName.textContent = value
2626

27+
// add classes
28+
bookName.classList.add('name');
29+
deleteBtn.classList.add('delete');
30+
2731
// append to document
2832
li.appendChild(bookName);
2933
li.appendChild(deleteBtn);

0 commit comments

Comments
 (0)