Comprehensive Business Legal Audit & Risk Assessment System

Comprehensive Business Legal Audit & Risk Assessment System

Evaluate your organization's legal health across key compliance areas.

1

Setup

2

Governance

3

Contracts

4

Employment

5

IP

6

Data Privacy

7

Report

Step 1: Audit Details

${totalRisk}

Items requiring review and action.

`; for(const category in breakdown) { summaryHtml += `

${category}

    `; breakdown[category].forEach(item => { const isCompliant = item.status === 'compliant'; const icon = isCompliant ? `` : ``; const textColor = isCompliant ? 'text-gray-700' : 'text-gray-800 font-semibold'; summaryHtml += `
  • ${icon}${item.question}
  • `; }); summaryHtml += `
`; } summaryContainer.innerHTML = summaryHtml; }; nextBtn.addEventListener('click', () => { if (currentTab < totalTabs) { currentTab++; updateUI(); } }); prevBtn.addEventListener('click', () => { if (currentTab > 1) { currentTab--; updateUI(); } }); downloadPdfBtn.addEventListener('click', () => { const { jsPDF } = window.jspdf; const pdfContent = document.getElementById('summary-content'); const pdfHeader = document.getElementById('pdf-header'); if (!pdfContent || !pdfHeader) return; pdfHeader.classList.remove('hidden'); html2canvas(pdfContent, { scale: 2, useCORS: true }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const imgProps = pdf.getImageProperties(imgData); const imgHeight = (imgProps.height * pdfWidth) / imgProps.width; pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, imgHeight); pdf.save('Business_Legal_Audit_Report.pdf'); pdfHeader.classList.add('hidden'); }).catch(err => { console.error("Error generating PDF:", err); pdfHeader.classList.add('hidden'); }); }); updateUI(); });
Scroll to Top