Seasonal Allergy Symptom Checker

Seasonal Allergy Symptom Checker

Identify potential triggers and get tips for relief.

What are you experiencing?

Select all symptoms that apply and rate their severity.

Tell us about your environment

Location

This helps identify common local allergens (USA only).

Recent Activities & Exposure

Check any relevant activities in the last 24 hours.

Recent Activities: ${userState.activities.length > 0 ? userState.activities.map(id => ACTIVITIES.find(a => a.id === id).name).join(', ') : 'None reported'}

`; document.getElementById('summary-environment').innerHTML = environmentHtml; // AI Insights const insightsHtml = insights .replace(/### (.*?)\n/g, '

$1

') .replace(/\n/g, '
'); document.getElementById('summary-insights').innerHTML = insightsHtml; }; // --- PDF GENERATION --- const handleDownloadPdf = () => { const content = document.getElementById('pdf-content'); if (!content) return; html2canvas(content, { scale: 2, useCORS: true, backgroundColor: '#ffffff' }) .then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const canvasWidth = canvas.width; const canvasHeight = canvas.height; const ratio = canvasWidth / canvasHeight; const imgWidth = pdfWidth - 20; const imgHeight = imgWidth / ratio; pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, imgHeight); pdf.save('My-Allergy-Report.pdf'); }) .catch(err => console.error("PDF Generation Error:", err)); }; // --- START THE APP --- initialize(); });
Scroll to Top