Company Policy & Employee Handbook Generator
All employees are expected to conduct themselves in a professional and ethical manner. This includes treating colleagues, clients, and partners with respect. Harassment, discrimination, and any form of misconduct will not be tolerated.
Leave & Benefits
Paid Time Off (PTO)
Full-time employees are eligible for ${ptoDays} days of Paid Time Off (PTO) per year. PTO can be used for vacation, personal time, or sick leave. Please provide advance notice to your manager for planned time off.
Holidays
${companyName} observes all major public holidays in the United States, including New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, and Christmas Day.
`; handbookContent.innerHTML = content; switchTab(2); }; const generatePDF = () => { const { jsPDF } = window.jspdf; const doc = new jsPDF('p', 'pt', 'a4'); const source = document.getElementById('handbook-content'); doc.html(source, { callback: function (doc) { doc.save('Employee-Handbook.pdf'); }, x: 15, y: 15, width: 550, // A4 width in points is 595, leaving some margin windowWidth: source.scrollWidth }); }; // --- Event Listeners --- policyForm.addEventListener('submit', generateHandbook); downloadPdfBtn.addEventListener('click', generatePDF); tabButtons.forEach(btn => btn.addEventListener('click', () => switchTab(parseInt(btn.dataset.tab)))); nextBtn.addEventListener('click', () => { if (currentTab < totalTabs) switchTab(currentTab + 1); }); prevBtn.addEventListener('click', () => { if (currentTab > 1) switchTab(currentTab - 1); }); // --- Initialization --- document.getElementById('effectiveDate').valueAsDate = new Date(); updateNavButtons(); });