Airport Fast-Track Security Access Planner
Your Fast-Track Access Summary
Summary & Next Steps
Your best option: Use CLEAR to bypass the ID check line, then proceed to the standard screening lane.
`; } else { summaryHtml += `Recommendation: Consider applying for TSA PreCheck or Global Entry. Many premium travel credit cards cover the application fee, making it a free perk.
`; } summaryDetails.innerHTML = summaryHtml; } function createCard(program, hasAccess, reason) { const statusClass = hasAccess ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800'; const statusText = hasAccess ? 'Access Indicated' : 'No Access'; return `${program}
${statusText}${reason}
`; } // --- PDF GENERATION --- function generatePdf() { const { jsPDF } = window.jspdf; const content = document.getElementById('pdf-content'); html2canvas(content, { scale: 2, backgroundColor: '#ffffff' }).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 canvasWidth = canvas.width; const canvasHeight = canvas.height; const ratio = canvasWidth / canvasHeight; const imgHeight = (pdfWidth - 40) / ratio; pdf.addImage(imgData, 'PNG', 20, 20, pdfWidth - 40, imgHeight); pdf.save('Fast-Track-Access-Plan.pdf'); }).catch(err => { console.error("PDF generation failed:", err); }); } pdfDownloadButton.addEventListener('click', generatePdf); });