CA Remote Employee Hub
Live Preview
`], { type: 'application/msword' }); const link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = `CA_Remote_Employee_Agreement_${companyName.replace(/[^a-zA-Z0-9]/g, '_')}_${employeeName.replace(/[^a-zA-Z0-9]/g, '_')}.doc`; link.click(); } // Initialize document.addEventListener('DOMContentLoaded', function() { // Set default start date to 2 weeks from now const twoWeeks = new Date(Date.now() + 14 * 24 * 60 * 60 * 1000); document.getElementById('startDate').value = twoWeeks.toISOString().split('T')[0]; // Initialize checkbox states document.querySelectorAll('.checkbox-label input:checked').forEach(cb => { cb.parentElement.classList.add('selected'); }); updatePreview(); });