Automated Employee Rights Legal Assistant

Automated Employee Rights Legal Assistant

Identify potential workplace rights issues based on U.S. labor laws.

1

Intro

2

Wages

3

Safety & Leave

4

Discrimination

5

Report

Step 1: Your Employment Situation

${issue.info}

`; }); } else { summaryHtml += ` `; } summaryHtml += `

Important Disclaimer

This tool provides general information based on federal U.S. law and is not a substitute for professional legal advice. State and local laws may provide additional protections. An attorney can provide advice specific to your situation.

`; 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('Employee_Rights_Assessment.pdf'); pdfHeader.classList.add('hidden'); }).catch(err => { console.error("Error generating PDF:", err); pdfHeader.classList.add('hidden'); }); }); updateUI(); });
Scroll to Top