GDPR Cookie Consent Compliance Checker

GDPR Cookie Consent Compliance Checker

Enter the full website URL to simulate a GDPR cookie compliance check.

Your compliance report will be displayed here.

Disclaimer: This tool performs a simulated check based on common GDPR criteria and does not constitute legal advice. The results are for informational purposes only.

Generated on: ${date}

${summaryText}

Detailed Checklist:

    ${resultsHTML}
`; reportContent.innerHTML = reportHTML; } /** * Handles the PDF download functionality. */ function downloadPDF() { const { jsPDF } = window.jspdf; const contentToCapture = document.getElementById('pdf-content'); if (!contentToCapture) { console.error("PDF content container not found."); return; } html2canvas(contentToCapture, { 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 pdfHeight = (canvas.height * pdfWidth) / canvas.width; pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight); pdf.save('GDPR-Compliance-Report.pdf'); }).catch(error => { console.error("Error generating PDF:", error); }); } // --- Event Listeners --- tabs.forEach((tab, index) => { tab.addEventListener('click', () => { // Prevent jumping to report tab without running check if (index === 1 && reportContent.innerHTML === '') { runComplianceCheck(); } else { switchTab(index); } }); }); nextBtn.addEventListener('click', () => { if (currentTab === 0) { runComplianceCheck(); } }); prevBtn.addEventListener('click', () => { if (currentTab > 0) { switchTab(currentTab - 1); } }); downloadPdfBtn.addEventListener('click', downloadPDF); // --- Initial Setup --- updateNavButtons(); });
Scroll to Top