Class Action Lawsuit Eligibility Checker

Class Action Lawsuit Eligibility Checker

Find out if you might be eligible to join a class action lawsuit by answering a few simple questions.

1

Case Details

2

Eligibility

3

Results

Case Information

Case Description:

This lawsuit alleges that Acme Corp. USA failed to adequately protect the personal information of its customers, leading to a significant data breach between January 1, 2023, and December 31, 2023.

Selected Case: ${caseSelect.value}

`; answers.forEach(a => { summaryContainer.innerHTML += `

${a.question} ${a.answer}

`; }); if (isEligible) { resultText.innerHTML = `

You may be eligible.

Based on your answers, you meet the preliminary criteria for this class action lawsuit. This is not legal advice. Consider consulting with an attorney.

`; } else { resultText.innerHTML = `

You are likely not eligible.

Based on your answers, you do not appear to meet the preliminary criteria for this class action lawsuit. This is not legal advice.

`; } }; const downloadPDF = () => { const { jsPDF } = window.jspdf; const content = document.getElementById('pdf-content'); if (!content) { console.error("PDF content element not found!"); return; } // Temporarily make the content visible for capture if it's not content.style.color = '#000'; // Ensure text is black for PDF html2canvas(content, { scale: 2, // Higher scale for better quality backgroundColor: '#ffffff', useCORS: true }).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; // with margin const imgHeight = imgWidth / ratio; let height = imgHeight > pdfHeight - 20 ? pdfHeight - 20 : imgHeight; pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, height); pdf.save('Eligibility-Summary.pdf'); // Restore original styles content.style.color = ''; }).catch(err => { console.error("Error generating PDF: ", err); content.style.color = ''; }); }; // --- Event Listeners --- prevBtn.addEventListener('click', () => nextPrev(-1)); nextBtn.addEventListener('click', () => nextPrev(1)); caseSelect.addEventListener('change', loadQuestions); if (downloadPdfBtn) { downloadPdfBtn.addEventListener('click', downloadPDF); } // --- Initial Setup --- loadQuestions(); showTab(currentTab); });
Scroll to Top