PE Due Diligence Report Structure
Select a section from the navigation menu to view its details.
Section not found.
'; mainTitle.textContent = 'Error'; return; } mainTitle.textContent = `${sectionKey}. ${sectionData.title}`; contentArea.innerHTML = ''; // Clear previous content // Add introductory sentence const intro = document.createElement('p'); intro.className = 'mb-6 text-gray-600 italic'; intro.textContent = `This section outlines the ${sectionData.title.toLowerCase()} aspects typically covered in a private equity fund due diligence report. Key areas include:`; contentArea.appendChild(intro); const contentList = document.createElement('ul'); contentList.className = 'list-disc space-y-3 pl-5'; sectionData.content.forEach(item => { if (typeof item === 'string') { const li = document.createElement('li'); li.textContent = item; li.className = 'text-gray-800'; contentList.appendChild(li); } else if (typeof item === 'object' && item.subheading) { const subLi = document.createElement('li'); subLi.className = 'mt-4 text-gray-800'; // Add margin top for subheading list items const h3 = document.createElement('h3'); h3.textContent = item.subheading; h3.className = 'font-semibold text-sky-700 mb-2'; subLi.appendChild(h3); if (item.points && Array.isArray(item.points)) { const subUl = document.createElement('ul'); subUl.className = 'list-circle space-y-2 pl-5'; item.points.forEach(point => { const pointLi = document.createElement('li'); pointLi.textContent = point; subUl.appendChild(pointLi); }); subLi.appendChild(subUl); } contentList.appendChild(subLi); } }); contentArea.appendChild(contentList); } // Initialize document.addEventListener('DOMContentLoaded', () => { generateNavigation(); // Optionally display the first section by default // displaySectionContent('I'); // if (navigationElement.firstChild && navigationElement.firstChild.firstChild) { // navigationElement.firstChild.firstChild.classList.add('active-nav-link'); // } });