| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,9 @@ | |||
| 1 | - const wmf = document.querySelector('#book-list li:nth-child(2) .name'); | ||
| 2 | - console.log(wmf); | ||
| 3 | - | ||
| 4 | - var books = document.querySelector('#book-list li .name'); | ||
| 5 | - console.log(books); | ||
| 6 | - | ||
| 7 | - books = document.querySelectorAll('#book-list li .name'); | ||
| 8 | - console.log(books); | ||
| 1 | + const books = document.querySelectorAll('#book-list li .name'); | ||
| 9 | 2 | ||
| 10 | 3 | Array.from(books).forEach(function(book){ | |
| 11 | - console.log(book); | ||
| 4 | + book.textContent += ' (Book title)'; | ||
| 12 | 5 | }); | |
| 6 | + | ||
| 7 | + const bookList = document.querySelector('#book-list'); | ||
| 8 | + bookList.innerHTML = '<h2>Books and more books...</h2>'; | ||
| 9 | + bookList.innerHTML += '<p>This is how you add HTML content</p>'; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments