`;
});
} else {
summaryHtml += `
`;
}
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('Employee_Rights_Assessment.pdf');
pdfHeader.classList.add('hidden');
}).catch(err => {
console.error("Error generating PDF:", err);
pdfHeader.classList.add('hidden');
});
});
updateUI();
});
No potential issues identified.
Based on your selections, no common areas of concern were flagged. It's always good practice to stay informed about your rights.
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.
