Anti-Bribery and Corruption Policy Generator

Anti-Bribery & Corruption Policy Generator

Create a comprehensive ABC policy for your organization.

Organization Information

It is the responsibility of all personnel to report any suspected violations of this policy. Reports should be made promptly to ${data.reportingContact}. If preferred, reports can be made anonymously to ${data.reportingEmail}. The Company prohibits retaliation against any individual who reports a concern in good faith.

6. Policy Review

This policy will be reviewed ${data.reviewCycle} by the ${data.policyOwner} to ensure its continued effectiveness and compliance with applicable laws.

`; policyOutput.innerHTML = policyText; }; tabs.forEach((tab, index) => { if (tab.btn) tab.btn.addEventListener('click', () => { currentTab = index; updateUI(); }); }); nextBtn.addEventListener('click', () => { if (currentTab < tabs.length - 1) { currentTab++; updateUI(); } }); prevBtn.addEventListener('click', () => { if (currentTab > 0) { currentTab--; updateUI(); } }); downloadPdfBtn.addEventListener('click', () => { const { jsPDF } = window.jspdf; const pdfExportContainer = document.getElementById('pdfExportContainer'); pdfExportContainer.innerHTML = policyOutput.innerHTML; html2canvas(pdfExportContainer, { scale: 3, useCORS: true, windowWidth: pdfExportContainer.scrollWidth, windowHeight: pdfExportContainer.scrollHeight }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = pdf.internal.pageSize.getHeight(); const canvasWidth = canvas.width; const canvasHeight = canvas.height; const ratio = canvasWidth / canvasHeight; const imgWidth = pdfWidth - 20; // margin const imgHeight = imgWidth / ratio; let heightLeft = imgHeight; let position = 10; pdf.addImage(imgData, 'PNG', 10, position, imgWidth, imgHeight); heightLeft -= (pdfHeight - 20); while (heightLeft > 0) { position = -imgHeight + heightLeft + 10; pdf.addPage(); pdf.addImage(imgData, 'PNG', 10, position, imgWidth, imgHeight); heightLeft -= (pdfHeight - 20); } pdf.save('Anti_Bribery_and_Corruption_Policy.pdf'); pdfExportContainer.innerHTML = ''; }); }); // --- INITIALIZE APP --- document.getElementById('effectiveDate').value = new Date().toISOString().split('T')[0]; updateUI(); });
Scroll to Top