Commit 4fa9eb18 authored by Jovan Maksimoski's avatar Jovan Maksimoski
Browse files

ss

parent b1a924a7
Showing with 2 additions and 0 deletions
+2 -0
......@@ -14,6 +14,7 @@
</head>
<body>
<ul id="bookList"></ul>
<ul id="list"></ul>
<div class="container-fluid">
<div class="row">
<div class="col-8">
......
......@@ -44,6 +44,7 @@ function renderBookList() {
books.forEach((book) => {
const listItem = document.createElement("li");
listItem.textContent = `${book.title} by ${book.author}`;
listItem.textContent = `${book.title} by ${book.author}`;
if (book.maxPages === book.onPage) {
listItem.style.color = "green";
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment