![image|150](https://covers.openlibrary.org/b/OLID/OL26797639M-L.jpg) # The Collapsing Empire (The Interdependency Book 1) ## Review ### Progress ```dataviewjs // Retrieve frontmatter values const currentPage = dv.current().currentPage; const pages = dv.current().pages; // Check for valid values if (!currentPage || !pages || pages <= 0) { dv.span("Error: Invalid or missing values for 'currentPage' or 'pages'."); } else { // Calculate progress as a percentage const progress = Math.round((currentPage / pages) * 100); // Create the progress bar wrapper const wrapper = document.createElement("div"); wrapper.className = "progress-wrapper"; // Create the progress element const progressBar = document.createElement("progress"); progressBar.className = "bar"; progressBar.value = progress; progressBar.max = 100; // Create the percentage label const label = document.createElement("span"); label.textContent = `${progress}%`; // Append elements to the wrapper wrapper.appendChild(progressBar); wrapper.appendChild(label); // Append the wrapper to the Dataview container dv.container.appendChild(wrapper); } ``` ### Thoughts & Themes ## Highlights ### Highlights #### Chapter X