| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | - const books = document.querySelectorAll('#book-list li .name'); | ||
| 1 | + const banner = document.querySelector('#page-banner'); | ||
| 2 | 2 | ||
| 3 | - Array.from(books).forEach(function(book){ | ||
| 4 | - book.textContent += ' (Book title)'; | ||
| 5 | - }); | ||
| 3 | + console.log('#page-banner node type is:', banner.nodeType); | ||
| 4 | + console.log('#page-banner node name is:', banner.nodeName); | ||
| 5 | + console.log('#page-banner has child nodes:', banner.hasChildNodes()); | ||
| 6 | 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>'; | ||
| 7 | + const clonedBanner = banner.cloneNode(true); | ||
| 8 | + console.log(clonedBanner); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments