We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f827f commit c1db8fbCopy full SHA for c1db8fb
1 file changed
debugging/book-library/script.js
@@ -93,13 +93,17 @@ function render() {
93
94
//add and wait for action for read/unread button
95
let changeCompletedBtn = document.createElement("button");
96
- changeCompletedBtn.className = "btn btn-success";
+ changeCompletedBtn.className = "btn";
97
wasReadCell.appendChild(changeCompletedBtn);
98
let readStatus = "";
99
if (myLibrary[i].completed == true) {
100
readStatus = "Yes";
101
+ changeCompletedBtn.classList.add("btn-success");
102
+ changeCompletedBtn.classList.remove("btn-secondary");
103
} else {
104
readStatus = "No";
105
+ changeCompletedBtn.classList.remove("btn-success");
106
+ changeCompletedBtn.classList.add("btn-secondary");
107
}
108
changeCompletedBtn.innerText = readStatus;
109
0 commit comments