Retirement Community Selection Guide Retirement Community Selection Guide Create a personalized checklist to find the perfect community for your needs. Dashboard Data Configuration Your personalized guide will appear here. Please fill out the 'Data Configuration' tab first. Download Your Guide What's Most Important to You? Lifestyle & Amenities Dining Options (Restaurant, Bistro, etc.) Not ImportantSomewhat ImportantVery Important Fitness Center & Pool Not ImportantSomewhat ImportantVery Important Social Activities & Clubs Not ImportantSomewhat ImportantVery Important Care & Services Levels of Care (Independent, Assisted, Memory) Not ImportantSomewhat ImportantVery Important On-site Medical Staff / Clinic Not ImportantSomewhat ImportantVery Important Transportation Services Not ImportantSomewhat ImportantVery Important Generate Guide & View Dashboard → PRIORITY: ${priorityMap[item.priority]} `; }); } container.innerHTML = html; downloadBtn.classList.remove('hidden'); } function downloadPDF() { const { jsPDF } = window.jspdf; const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const contentToPrint = document.getElementById('dashboard-content'); if (!contentToPrint) return; // Temporarily hide checkboxes for printing const checkboxes = contentToPrint.querySelectorAll('input[type="checkbox"]'); checkboxes.forEach(cb => cb.style.display = 'none'); html2canvas(contentToPrint, { scale: 2, useCORS: true }).then(canvas => { checkboxes.forEach(cb => cb.style.display = 'block'); const imgData = canvas.toDataURL('image/png'); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (canvas.height * pdfWidth) / canvas.width; let heightLeft = pdfHeight; let position = 0; const pageHeight = pdf.internal.pageSize.getHeight(); pdf.addImage(imgData, 'PNG', 10, 10, pdfWidth - 20, pdfHeight > 277 ? 277 : pdfHeight - 20); heightLeft -= (pageHeight - 20); while (heightLeft > 0) { position = -heightLeft - 20; pdf.addPage(); pdf.addImage(imgData, 'PNG', 10, position, pdfWidth - 20, pdfHeight); heightLeft -= pageHeight; } pdf.save('Retirement-Community-Guide.pdf'); }); }