Site Assistant

Search 150+ pages of vaccine science, safety, policy, history, and research

Enter any topic in the search bar below to find relevant pages on this site. You can also browse by section. This tool is an automated navigation guide — it does not provide medical advice.

Version: 1.0 (C3-Cleared) Deploy: Paste into Landingsite global or footer code block All CSS classes prefixed "vfw-" to avoid conflicts with Landingsite ================================================================ */ (function() { 'use strict'; // ── Google Fonts ── if (!document.querySelector('#vfw-fonts')) { var lnk = document.createElement('link'); lnk.id = 'vfw-fonts'; lnk.rel = 'stylesheet'; lnk.href = 'https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap'; document.head.appendChild(lnk); } // ── Inject CSS ── var css = ( "#vfw-fab{position:fixed;bottom:24px;right:24px;z-index:99998;width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#1976D2,#1565C0);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(21,101,192,.38);transition:transform .18s,box-shadow .18s;font-family:'DM Sans',sans-serif}" + "#vfw-fab:hover{transform:scale(1.08);box-shadow:0 6px 28px rgba(21,101,192,.45)}" + "#vfw-fab svg{width:26px;height:26px;pointer-events:none}" + "#vfw-panel{position:fixed;bottom:88px;right:24px;z-index:99999;width:360px;max-height:calc(100vh - 120px);border-radius:16px;background:#fff;box-shadow:0 8px 40px rgba(21,101,192,.2);border:1px solid #E0E0E0;display:none;flex-direction:column;overflow:hidden;font-family:'DM Sans',sans-serif;transition:opacity .2s,transform .2s}" + "#vfw-panel.vfw-open{display:flex}" + ".vfw-head{background:linear-gradient(to right,#1976D2,#1565C0);padding:12px 14px;display:flex;align-items:center;gap:10px;flex-shrink:0}" + ".vfw-head-av{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex-shrink:0}" + ".vfw-head-av svg{width:18px;height:18px}" + ".vfw-head-txt h2{font-family:'DM Serif Display',serif;font-size:14px;color:#fff;font-weight:400;margin:0}" + ".vfw-head-txt p{font-size:11px;color:rgba(255,255,255,.8);margin:1px 0 0}" + ".vfw-close{margin-left:auto;background:rgba(255,255,255,.18);border:none;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}" + ".vfw-close svg{width:14px;height:14px}" + ".vfw-disc{background:#FFF8E1;border-bottom:1.5px solid #F9A825;padding:6px 12px;display:flex;gap:7px;align-items:flex-start;flex-shrink:0}" + ".vfw-disc svg{flex-shrink:0;margin-top:1px}" + ".vfw-disc p{font-size:11px;color:#E65100;line-height:1.4;margin:0}" + ".vfw-msgs{flex:1;overflow-y:auto;padding:12px 12px 6px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth;min-height:0;max-height:280px}" + ".vfw-row{display:flex;gap:7px;align-items:flex-start}" + ".vfw-row.vfw-bot{align-self:flex-start;max-width:100%}" + ".vfw-row.vfw-usr{align-self:flex-end;flex-direction:row-reverse;max-width:82%}" + ".vfw-av{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#1976D2,#1565C0);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}" + ".vfw-av svg{width:12px;height:12px}" + ".vfw-bbl{padding:8px 11px;border-radius:12px;font-size:12.5px;line-height:1.5}" + ".vfw-row.vfw-bot .vfw-bbl{background:#F8F9FA;border:.5px solid #E0E0E0;border-top-left-radius:3px;color:#1A1A1A}" + ".vfw-row.vfw-usr .vfw-bbl{background:#1976D2;color:#fff;border-top-right-radius:3px}" + ".vfw-bbl p{margin:0 0 5px}.vfw-bbl p:last-child{margin:0}" + ".vfw-res{display:flex;flex-direction:column;gap:5px;margin-top:6px}" + ".vfw-card{background:#fff;border:1px solid #E0E0E0;border-radius:8px;padding:8px 10px;transition:border-color .15s}" + ".vfw-card:hover{border-color:#1976D2}" + ".vfw-csec{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#9AA0A6}" + ".vfw-ctit{font-size:12.5px;font-weight:500;color:#1A1A1A;line-height:1.3;margin:2px 0}" + ".vfw-cdsc{font-size:11.5px;color:#5F6368;line-height:1.4}" + ".vfw-clnk{display:inline-flex;align-items:center;gap:4px;margin-top:3px;font-size:11.5px;font-weight:500;color:#1565C0;text-decoration:none}" + ".vfw-clnk:hover{text-decoration:underline}" + ".vfw-sgrid{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:6px}" + ".vfw-sbtn{padding:7px 8px;border-radius:7px;border:1.5px solid #BBDEFB;background:#E3F2FD;color:#1565C0;font-size:11.5px;font-weight:500;text-align:left;cursor:pointer;transition:all .15s;line-height:1.3;font-family:'DM Sans',sans-serif}" + ".vfw-sbtn:hover{background:#1976D2;color:#fff;border-color:#1976D2}" + ".vfw-sbtn .vfw-si{font-size:13px;display:block;margin-bottom:2px}" + ".vfw-splist{display:flex;flex-direction:column;gap:4px;margin-top:6px}" + ".vfw-spi{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;padding:6px 8px;border-radius:7px;border:1px solid #E0E0E0;background:#fff}" + ".vfw-spi .vfw-spt{font-size:12px;font-weight:500;color:#1A1A1A}" + ".vfw-spi .vfw-spd{font-size:11px;color:#5F6368;margin-top:1px}" + ".vfw-spi a{font-size:11px;color:#1976D2;white-space:nowrap;font-weight:500;flex-shrink:0}" + ".vfw-qr{padding:5px 10px 8px;display:flex;flex-wrap:wrap;gap:4px;flex-shrink:0}" + ".vfw-qb{padding:4px 10px;border-radius:20px;border:1.5px solid #1976D2;background:transparent;color:#1565C0;font-size:11.5px;font-weight:500;cursor:pointer;white-space:nowrap;font-family:'DM Sans',sans-serif;transition:all .15s}" + ".vfw-qb:hover{background:#1976D2;color:#fff}" + ".vfw-inp-row{padding:8px 10px;border-top:1px solid #E0E0E0;display:flex;gap:7px;background:#fff;flex-shrink:0}" + ".vfw-inp{flex:1;padding:7px 10px;border-radius:8px;border:1.5px solid #E0E0E0;font-family:'DM Sans',sans-serif;font-size:12.5px;color:#1A1A1A;background:#F8F9FA;outline:none;transition:border-color .15s}" + ".vfw-inp:focus{border-color:#1976D2;background:#fff}" + ".vfw-send{width:34px;height:34px;border-radius:8px;background:#1976D2;border:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;transition:background .15s}" + ".vfw-send:hover{background:#1565C0}" + ".vfw-send svg{width:14px;height:14px}" + ".vfw-dots{display:flex;gap:4px;align-items:center;padding:9px 11px;background:#F8F9FA;border:.5px solid #E0E0E0;border-radius:12px;border-top-left-radius:3px}" + ".vfw-dot{width:5px;height:5px;border-radius:50%;background:#1976D2;opacity:.5;animation:vfw-bounce 1.1s infinite}" + ".vfw-dot:nth-child(2){animation-delay:.18s}.vfw-dot:nth-child(3){animation-delay:.36s}" + "@keyframes vfw-bounce{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-5px)}}" + ".vfw-nores{font-size:12px;color:#5F6368;line-height:1.5}" + ".vfw-nores strong{color:#1A1A1A;font-weight:600}" ); var style = document.createElement('style'); style.id = 'vfw-styles'; style.textContent = css; document.head.appendChild(style); // ── SVG Assets ── var BOT = ' '; var CLOSE = ' '; var SEND = ' '; var WARN = ' '; var LINK = ' '; // ── Configuration ── var SITE = 'https://www.vaccinationfacts.com'; var GAP_KEY = 'vf_gap_log'; var MAX_RESULTS = 6; // ── Page Index ── var PAGES = [ {url:'/',title:'Homepage',section:'Home',desc:'Overview of all site sections and featured content.',kw:['home','start','main','overview']}, {url:'/science',title:'Science Overview',section:'Science',desc:'Vaccine mechanisms, clinical trials, immunity, and biological concepts.',kw:['science','biology','vaccine science','overview']}, {url:'/science/immunology-basics',title:'Immunology Basics',section:'Science',desc:'Antigens, antibodies, B cells, T cells, and the immune response.',kw:['immunology','immune system','antibodies','antigens','b cells','t cells','immunity']}, {url:'/science/how-vaccines-work',title:'How Vaccines Work',section:'Science',desc:'How vaccines stimulate immune memory without causing disease.',kw:['how vaccines work','mechanism','immune memory']}, {url:'/science/herd-immunity',title:'Herd Immunity',section:'Science',desc:'Community immunity thresholds by disease and the role of vaccination coverage.',kw:['herd immunity','community immunity','population immunity','coverage']}, {url:'/science/clinical-trials',title:'Clinical Trials',section:'Science',desc:'How vaccine clinical trials are designed and conducted.',kw:['clinical trials','vaccine testing','research']}, {url:'/science/clinical-trials/phases',title:'Clinical Trial Phases',section:'Science',desc:'Phase 1, 2, 3, and 4 trial structure for vaccine evaluation.',kw:['trial phases','phase 1','phase 2','phase 3','phase 4']}, {url:'/science/clinical-trials/endpoints',title:'Trial Endpoints',section:'Science',desc:'Primary and secondary endpoints including efficacy, immunogenicity, and safety.',kw:['endpoints','efficacy endpoints','immunogenicity','outcome measures']}, {url:'/science/efficacy-vs-effectiveness',title:'Efficacy vs. Effectiveness',section:'Science',desc:'Distinction between controlled trial efficacy and real-world effectiveness.',kw:['efficacy','effectiveness','real world','vaccine performance']}, {url:'/science/waning-immunity',title:'Waning Immunity',section:'Science',desc:'Evidence on declining vaccine-induced immunity over time and booster implications.',kw:['waning immunity','booster','immunity decline','protection over time']}, {url:'/science/heterogeneous-mixing',title:'Heterogeneous Mixing',section:'Science',desc:'Population mixing patterns and their effect on disease spread.',kw:['heterogeneous mixing','epidemiology','population models']}, {url:'/science/pathogen-evolution',title:'Pathogen Evolution',section:'Science',desc:'How pathogens mutate and the implications for vaccine protection.',kw:['pathogen evolution','mutation','variants','viral evolution','immune escape']}, {url:'/science/non-sterilizing-immunity',title:'Non-Sterilizing Immunity',section:'Science',desc:'Sterilizing vs. non-sterilizing immunity with documented examples.',kw:['non-sterilizing immunity','sterilizing immunity','transmission','immunity types']}, {url:'/science/benefit-risk-framework',title:'Benefit-Risk Framework',section:'Science',desc:'Framework used to evaluate and communicate vaccine benefits relative to risks.',kw:['benefit risk','risk benefit','framework','risk assessment']}, {url:'/safety',title:'Vaccine Safety Overview',section:'Safety',desc:'Hub for adverse events, surveillance systems, VAERS, and the safety timeline.',kw:['safety','vaccine safety','adverse events','risks']}, {url:'/safety/vaers',title:'VAERS',section:'Safety',desc:'The CDC/FDA Vaccine Adverse Event Reporting System.',kw:['vaers','adverse event reporting','cdc','fda','surveillance','reporting system']}, {url:'/safety/vaers/data',title:'VAERS Data',section:'Safety',desc:'How to interpret VAERS data and its limitations as passive surveillance.',kw:['vaers data','vaers reports','adverse event data','how to read vaers']}, {url:'/safety/vsd',title:'Vaccine Safety Datalink (VSD)',section:'Safety',desc:'CDC active surveillance network using electronic health records.',kw:['vsd','vaccine safety datalink','active surveillance','ehr']}, {url:'/safety/best',title:'BEST Network',section:'Safety',desc:'FDA Biologics Effectiveness and Safety active surveillance system.',kw:['best','best network','fda surveillance','biologics']}, {url:'/safety/global-reporting-systems',title:'Global Reporting Systems',section:'Safety',desc:'International vaccine adverse event surveillance systems.',kw:['global reporting','international safety','surveillance systems','worldwide']}, {url:'/safety/global-reporting-systems/who-aefi',title:'WHO AEFI System',section:'Safety',desc:'WHO Adverse Events Following Immunization surveillance framework.',kw:['who aefi','world health organization','aefi','global vaccine safety']}, {url:'/safety/global-reporting-systems/vigibase',title:'VigiBase',section:'Safety',desc:'WHO global database of individual case safety reports.',kw:['vigibase','umc','who database','global adverse events']}, {url:'/safety/global-reporting-systems/eudravigilance',title:'EudraVigilance',section:'Safety',desc:'European Medicines Agency adverse reaction management system.',kw:['eudravigilance','ema','europe','eu adverse events']}, {url:'/safety/global-reporting-systems/yellow-card',title:'Yellow Card (UK)',section:'Safety',desc:'UK MHRA adverse event reporting system.',kw:['yellow card','mhra','uk','united kingdom']}, {url:'/safety/known-adverse-events',title:'Known Adverse Events',section:'Safety',desc:'Documented adverse events recognized by regulatory bodies, with evidence levels.',kw:['known adverse events','adverse reactions','documented side effects','confirmed risks']}, {url:'/safety/myocarditis',title:'Myocarditis & mRNA Vaccines',section:'Safety',desc:'Evidence on myocarditis and pericarditis associated with mRNA COVID-19 vaccines.',kw:['myocarditis','pericarditis','heart','mrna','covid vaccine','cardiac']}, {url:'/safety/anaphylaxis',title:'Anaphylaxis',section:'Safety',desc:'Anaphylaxis as a rare serious allergic reaction to vaccines.',kw:['anaphylaxis','allergic reaction','allergy','severe reaction']}, {url:'/safety/gbs',title:'Guillain-Barre Syndrome (GBS)',section:'Safety',desc:'Association between certain vaccines and GBS, a rare neurological condition.',kw:['gbs','guillain barre','guillain-barre','neurological','nerve']}, {url:'/safety/timeline',title:'Vaccine Safety Historical Timeline',section:'Safety',desc:'61-entry searchable timeline of vaccine safety events from 1798 to present.',kw:['safety timeline','history','historical','timeline','safety events','milestones']}, {url:'/learn',title:'Learn Overview',section:'Learn',desc:'FAQs, guides, visualizations, glossary, and audience-specific resources.',kw:['learn','education','resources','guides','educational']}, {url:'/learn/faq',title:'FAQ Overview',section:'Learn',desc:'Frequently asked questions organized by topic.',kw:['faq','frequently asked questions','common questions']}, {url:'/learn/faq/safety',title:'FAQ: Vaccine Safety',section:'Learn',desc:'Common questions about vaccine safety, side effects, and surveillance.',kw:['faq safety','safety questions','side effects faq']}, {url:'/learn/faq/children',title:'FAQ: Children & Vaccines',section:'Learn',desc:'Common questions about vaccinating children and the childhood schedule.',kw:['faq children','kids faq','children questions','child vaccines']}, {url:'/learn/faq/covid',title:'FAQ: COVID-19 Vaccines',section:'Learn',desc:'Common questions about COVID-19 vaccines, authorization, and effectiveness.',kw:['faq covid','covid questions','coronavirus faq']}, {url:'/learn/guides',title:'Guides Overview',section:'Learn',desc:'Practical guides including vaccination schedules and historical logs.',kw:['guides','how-to','reference','practical guides']}, {url:'/learn/guides/2026-schedule',title:'2026 Vaccination Schedule Guide',section:'Learn',desc:'A guide to interpreting and applying the 2026 recommended vaccination schedule.',kw:['2026 schedule','vaccination schedule guide','2026']}, {url:'/learn/guides/historical-log',title:'Historical Vaccination Log',section:'Learn',desc:'Historical record of changes to the recommended vaccination schedule over time.',kw:['historical log','schedule history','historical schedule','changes']}, {url:'/learn/for-clinicians',title:'For Clinicians',section:'Learn',desc:'Reference documentation for healthcare professionals.',kw:['clinicians','doctors','healthcare professionals','medical','clinical']}, {url:'/learn/for-journalists',title:'For Journalists',section:'Learn',desc:'Reference resources for journalists covering vaccine-related topics.',kw:['journalists','media','press','reporting','news']}, {url:'/learn/visualizations',title:'Visualizations',section:'Learn',desc:'Data visualizations and interactive tools for vaccine concepts and data.',kw:['visualizations','charts','interactive','data visualization','infographics']}, {url:'/learn/visualizations/safety-net',title:'Safety Net Visualization',section:'Learn',desc:'Interactive visualization of the U.S. vaccine safety surveillance network.',kw:['safety net','visualization','surveillance network','interactive']}, {url:'/learn/quiz',title:'Vaccine Knowledge Quiz',section:'Learn',desc:'Interactive quiz to test knowledge of vaccine science, history, and policy.',kw:['quiz','test','knowledge','interactive quiz']}, {url:'/learn/glossary',title:'Glossary',section:'Learn',desc:'Definitions of terms, abbreviations, and acronyms used across the site.',kw:['glossary','definitions','terms','abbreviations','acronyms','vocabulary','dictionary']}, {url:'/learn/2026-schedule',title:'2026 Vaccination Schedule',section:'Learn',desc:'The 2026 recommended U.S. vaccination schedule based on ACIP recommendations.',kw:['2026 schedule','schedule','recommended vaccines','acip schedule','immunization schedule']}, {url:'/research',title:'Research Overview',section:'Research',desc:'History, approval process, schedules, platforms, ingredients, and diseases.',kw:['research','overview']}, {url:'/research/history',title:'Vaccine History',section:'Research',desc:'History of vaccines from early variolation to modern platforms.',kw:['history','vaccine history','historical']}, {url:'/research/history/timeline',title:'General Vaccine History Timeline',section:'Research',desc:'Hub for the 396-entry history timeline across seven eras.',kw:['history timeline','general timeline','vaccine history','396','chronological']}, {url:'/research/history/timeline/pre-1900',title:'History Timeline: Pre-1900',section:'Research',desc:'Early vaccine history from variolation through the first vaccines for cholera, rabies, and plague.',kw:['pre 1900','early history','jenner','smallpox','variolation','1700s','1800s']}, {url:'/research/history/timeline/1900-1949',title:'History Timeline: 1900-1949',section:'Research',desc:'Early 1900s milestones including diphtheria, pertussis, and tuberculosis vaccines.',kw:['1900 1949','early 1900s','diphtheria','pertussis','bcg','tuberculosis']}, {url:'/research/history/timeline/1950-1979',title:'History Timeline: 1950-1979',section:'Research',desc:'The polio vaccine era and introduction of measles, mumps, and rubella vaccines.',kw:['1950 1979','polio','salk','sabin','measles','mmr','rubella','mumps']}, {url:'/research/history/timeline/1980-1999',title:'History Timeline: 1980-1999',section:'Research',desc:'Hepatitis B vaccine, the 1986 NCVIA, and smallpox eradication declaration.',kw:['1980 1999','hepatitis b','vicp','ncvia','1986','smallpox eradication','1980s','1990s']}, {url:'/research/history/timeline/2000-2009',title:'History Timeline: 2000-2009',section:'Research',desc:'Introduction of meningococcal, HPV, and rotavirus vaccines in the 2000s.',kw:['2000 2009','2000s','hpv vaccine','gardasil','rotavirus','meningococcal']}, {url:'/research/history/timeline/2010-2019',title:'History Timeline: 2010-2019',section:'Research',desc:'Dengvaxia episode, meningitis B vaccines, and 2010s developments.',kw:['2010 2019','2010s','dengvaxia','dengue','meningitis b']}, {url:'/research/history/timeline/2020-present',title:'History Timeline: 2020-Present',section:'Research',desc:'COVID-19 vaccine development, mRNA platform milestones, and recent history.',kw:['2020 present','covid','mrna','pfizer','moderna','recent','current']}, {url:'/research/history/timeline-cards',title:'Timeline Cards',section:'Research',desc:'Card-format view of vaccine history timeline entries.',kw:['timeline cards','cards','card view','visual timeline']}, {url:'/research/approval-process',title:'Vaccine Approval Process',section:'Research',desc:'Regulatory pathway for vaccine licensure in the United States.',kw:['approval process','licensure','bla','ind','regulatory pathway','how vaccines are approved']}, {url:'/research/schedules',title:'Vaccination Schedules',section:'Research',desc:'Hub for all schedule content: U.S. childhood, adult, catch-up, travel, and international.',kw:['schedules','vaccination schedule','immunization schedule']}, {url:'/research/schedules/us-childhood',title:'U.S. Childhood Schedule',section:'Research',desc:'Current CDC-recommended childhood immunization schedule from birth through age 18.',kw:['childhood schedule','child','pediatric','kids','birth','infant','acip','cdc schedule']}, {url:'/research/schedules/us-adult',title:'U.S. Adult Schedule',section:'Research',desc:'Current CDC-recommended adult immunization schedule.',kw:['adult schedule','adult vaccines','acip adult']}, {url:'/research/schedules/catch-up',title:'Catch-Up Schedule',section:'Research',desc:'CDC catch-up schedule for children and adults who missed recommended vaccines.',kw:['catch up','catch-up','missed vaccines','behind on vaccines','late vaccines']}, {url:'/research/schedules/travel',title:'Travel Vaccination Schedule',section:'Research',desc:'Recommended and required vaccines for international travel by destination.',kw:['travel','travel vaccines','international travel','travel schedule','abroad']}, {url:'/research/schedules/who-recommended',title:'WHO Recommended Schedule',section:'Research',desc:'World Health Organization recommended immunization schedule for children globally.',kw:['who schedule','world health organization','global schedule','international']}, {url:'/research/schedules/international-comparison',title:'International Schedule Comparison',section:'Research',desc:'Vaccination schedule comparison across multiple countries.',kw:['international comparison','compare schedules','different countries','global comparison']}, {url:'/research/schedules/acip',title:'ACIP Schedule Recommendations',section:'Research',desc:'ACIP process for developing and updating vaccination schedule recommendations.',kw:['acip schedule','acip recommendations','advisory committee','schedule process']}, {url:'/research/vaccines',title:'Vaccine Platforms & Ingredients',section:'Research',desc:'Hub for vaccine platform types and ingredient documentation.',kw:['vaccines','platforms','ingredients']}, {url:'/research/vaccines/platforms',title:'Vaccine Platforms',section:'Research',desc:'Live-attenuated, inactivated, subunit, toxoid, mRNA, and viral vector vaccines.',kw:['platforms','vaccine types','mrna','live attenuated','inactivated','subunit','toxoid','viral vector']}, {url:'/research/vaccines/ingredients',title:'Vaccine Ingredients',section:'Research',desc:'Hub for adjuvants, excipients, and preservative documentation.',kw:['ingredients','whats in vaccines','components','formulation']}, {url:'/research/vaccines/ingredients/adjuvants',title:'Adjuvants',section:'Research',desc:'Adjuvants used in vaccines including aluminum salts, MF59, and AS01.',kw:['adjuvants','aluminum','aluminium','alum','MF59','AS01','immune enhancer']}, {url:'/research/vaccines/ingredients/excipients',title:'Excipients',section:'Research',desc:'Inactive ingredients including stabilizers, preservatives, and residual manufacturing materials.',kw:['excipients','inactive ingredients','preservatives','stabilizers','gelatin','polysorbate']}, {url:'/research/vaccines/ingredients/thimerosal',title:'Thimerosal',section:'Research',desc:'Mercury-based preservative historically used in multi-dose vaccine vials.',kw:['thimerosal','mercury','preservative','ethylmercury','multi dose']}, {url:'/research/diseases',title:'Diseases Overview',section:'Research',desc:'Vaccine-preventable diseases, their epidemiology, and associated vaccines.',kw:['diseases','vaccine preventable','pathogens']}, {url:'/research/diseases/measles',title:'Measles',section:'Research',desc:'Measles epidemiology, MMR vaccine, elimination efforts, and outbreak data.',kw:['measles','mmr','rubella','mumps','outbreak','elimination']}, {url:'/research/diseases/covid-19',title:'COVID-19',section:'Research',desc:'SARS-CoV-2 virology, vaccine development, authorized vaccines, and evidence.',kw:['covid','covid-19','coronavirus','sars-cov-2','pandemic','mrna covid']}, {url:'/research/diseases/influenza',title:'Influenza',section:'Research',desc:'Seasonal flu epidemiology, vaccine formulation, effectiveness, and strain variation.',kw:['flu','influenza','flu shot','influenza vaccine','seasonal flu']}, {url:'/research/diseases/polio',title:'Polio',section:'Research',desc:'Polio, the Salk and Sabin vaccines, and global eradication progress.',kw:['polio','poliomyelitis','salk','sabin','ipv','opv','eradication','paralysis']}, {url:'/research/diseases/hpv',title:'HPV',section:'Research',desc:'HPV, cancer associations, Gardasil and Cervarix vaccines, and uptake data.',kw:['hpv','human papillomavirus','gardasil','cervarix','cancer','cervical cancer']}, {url:'/research/diseases/hepatitis-b',title:'Hepatitis B',section:'Research',desc:'Hepatitis B transmission, the vaccine, newborn vaccination, and global burden.',kw:['hepatitis b','hbv','liver','newborn vaccine']}, {url:'/research/diseases/pertussis',title:'Pertussis (Whooping Cough)',section:'Research',desc:'Pertussis, DTaP and Tdap vaccines, outbreak trends, and waning immunity.',kw:['pertussis','whooping cough','dtap','tdap','bordetella']}, {url:'/research/diseases/meningitis',title:'Meningitis',section:'Research',desc:'Bacterial and viral meningitis, MenACWY, MenB, and PCV vaccines.',kw:['meningitis','meningococcal','MenACWY','MenB','bacterial meningitis']}, {url:'/research/diseases/mpox',title:'Mpox',section:'Research',desc:'Mpox (formerly monkeypox), the JYNNEOS vaccine, and 2022 outbreak data.',kw:['mpox','monkeypox','jynneos','poxvirus','2022 outbreak']}, {url:'/research/diseases/pneumococcal',title:'Pneumococcal Disease',section:'Research',desc:'Pneumococcal disease and PCV13, PCV15, PCV20, and PPSV23 vaccines.',kw:['pneumococcal','pneumonia','pcv','ppsv','streptococcus']}, {url:'/research/diseases/smallpox',title:'Smallpox',section:'Research',desc:'Smallpox history, eradication campaign, and vaccine stockpile status.',kw:['smallpox','variola','eradication','jenner','vaccinia']}, {url:'/research/diseases/shingles',title:'Shingles',section:'Research',desc:'Shingles (herpes zoster), Shingrix and Zostavax vaccines.',kw:['shingles','herpes zoster','shingrix','zostavax','older adults','zoster']}, {url:'/research/diseases/rsv',title:'RSV',section:'Research',desc:'RSV, authorized vaccines for older adults, and maternal RSV vaccination.',kw:['rsv','respiratory syncytial virus','bronchiolitis','arexvy','abrysvo']}, {url:'/research/diseases/rabies',title:'Rabies',section:'Research',desc:'Rabies, post-exposure prophylaxis, pre-exposure vaccination, and travel risk.',kw:['rabies','post-exposure','pep','animal bite','travel rabies']}, {url:'/research/diseases/dengue',title:'Dengue',section:'Research',desc:'Dengue fever, the Dengvaxia controversy, and Qdenga vaccine authorization.',kw:['dengue','dengue fever','dengvaxia','qdenga','tropical']}, {url:'/research/diseases/malaria',title:'Malaria',section:'Research',desc:'Malaria, RTS,S/AS01 (Mosquirix) and R21/Matrix-M vaccine authorizations.',kw:['malaria','mosquirix','rts,s','r21','plasmodium','malaria vaccine']}, {url:'/regulatory',title:'Regulatory Overview',section:'Regulatory',desc:'FDA, CDC, EMA, WHO, ACIP, and post-market surveillance documentation.',kw:['regulatory','regulation','oversight','agencies']}, {url:'/regulatory/fda',title:'U.S. FDA',section:'Regulatory',desc:'FDA role in vaccine licensing, review, and post-market oversight.',kw:['fda','food and drug administration','approval','license','us regulatory']}, {url:'/regulatory/fda/eua',title:'Emergency Use Authorization (EUA)',section:'Regulatory',desc:'The EUA pathway, its legal basis, criteria, conditions, and historical uses.',kw:['eua','emergency use authorization','emergency','authorization','covid eua']}, {url:'/regulatory/fda/biologics-license',title:'Biologics License Application (BLA)',section:'Regulatory',desc:'The BLA pathway for full vaccine licensure in the United States.',kw:['bla','biologics license','full approval','licensure']}, {url:'/regulatory/cdc',title:'U.S. CDC',section:'Regulatory',desc:'CDC role in vaccine recommendations, surveillance, and public health guidance.',kw:['cdc','centers for disease control','recommendations','public health']}, {url:'/regulatory/ema',title:'European Medicines Agency (EMA)',section:'Regulatory',desc:'EMA role in vaccine evaluation and authorization in the European Union.',kw:['ema','european medicines agency','europe','eu','european approval']}, {url:'/regulatory/who',title:'World Health Organization (WHO)',section:'Regulatory',desc:'WHO role in vaccine prequalification, safety surveillance, and immunization policy.',kw:['who','world health organization','global','international','prequalification']}, {url:'/regulatory/acip',title:'ACIP',section:'Regulatory',desc:'Advisory Committee on Immunization Practices composition, meetings, and role in U.S. recommendations.',kw:['acip','advisory committee','immunization practices','recommendations','voting']}, {url:'/regulatory/post-market-surveillance',title:'Post-Market Surveillance',section:'Regulatory',desc:'Systems monitoring vaccine safety and effectiveness after licensure.',kw:['post market surveillance','after approval','monitoring','ongoing safety','prism']}, {url:'/controversies',title:'Controversies Overview',section:'Controversies',desc:'Evidence-based documentation of publicly debated claims in vaccine science.',kw:['controversies','contested','debated','claims','concerns']}, {url:'/controversies/autism-mmr',title:'Autism & MMR Vaccine',section:'Controversies',desc:'The claim linking MMR to autism, the Wakefield study, its retraction, and subsequent research.',kw:['autism mmr','mmr autism','wakefield','andrew wakefield','autism vaccine link','autism']}, {url:'/controversies/thimerosal-autism',title:'Thimerosal & Autism',section:'Controversies',desc:'The claim linking thimerosal in vaccines to autism and subsequent scientific evidence.',kw:['thimerosal autism','mercury autism','autism mercury']}, {url:'/controversies/aluminum-adjuvants',title:'Aluminum Adjuvants',section:'Controversies',desc:'Concerns raised about aluminum adjuvants, ASIA syndrome claims, and the regulatory response.',kw:['aluminum adjuvants','aluminium','ASIA','adjuvant safety']}, {url:'/controversies/shedding',title:'Vaccine Shedding',section:'Controversies',desc:'Documentation of vaccine shedding potential and which vaccines carry documented risk.',kw:['shedding','vaccine shedding','viral shedding','live vaccine shedding']}, {url:'/controversies/natural-immunity',title:'Natural Immunity',section:'Controversies',desc:'Comparative evidence on natural immunity versus vaccine-induced immunity.',kw:['natural immunity','prior infection','immunity comparison','infection vs vaccine','recovered']}, {url:'/controversies/vaers-misinterpretation',title:'VAERS Misinterpretation',section:'Controversies',desc:'Common misinterpretations of VAERS data and the correlation/causation distinction.',kw:['vaers misuse','vaers misinterpretation','vaers correlation','vaers causation']}, {url:'/controversies/mrna-dna-alteration',title:'mRNA & DNA Alteration Claims',section:'Controversies',desc:'Claims that mRNA vaccines alter human DNA and the evidence and scientific reasoning examined.',kw:['mrna dna','dna alteration','genetic modification','mrna changes dna','gene editing']}, {url:'/controversies/covid-spike-protein',title:'COVID Spike Protein Concerns',section:'Controversies',desc:'Concerns about the COVID-19 spike protein including toxicity and biodistribution claims.',kw:['spike protein','covid spike','protein toxicity','biodistribution']}, {url:'/controversies/schedule-too-many',title:'"Too Many Vaccines" Claims',section:'Controversies',desc:'The claim that the childhood schedule has too many vaccines and the immunological evidence.',kw:['too many vaccines','overloading immune system','schedule concerns','multiple vaccines']}, {url:'/legal',title:'Legal Overview',section:'Legal',desc:'Mandates, exemptions, VICP, vaccine court, and litigation.',kw:['legal','law','court','lawsuits']}, {url:'/legal/mandates',title:'Vaccine Mandates',section:'Legal',desc:'Vaccine mandate law including school requirements, employer mandates, and legal challenges.',kw:['mandates','vaccine mandate','required vaccines','compulsory']}, {url:'/legal/mandates/state-school',title:'State School Mandates',section:'Legal',desc:'State-by-state school entry vaccination requirements.',kw:['state school mandates','school requirements','school vaccines','state requirements']}, {url:'/legal/mandates/exemptions',title:'Vaccine Exemptions',section:'Legal',desc:'Medical, religious, and philosophical exemption policies across U.S. states.',kw:['exemptions','medical exemption','religious exemption','philosophical exemption','opt out']}, {url:'/legal/vicp',title:'Vaccine Injury Compensation Program (VICP)',section:'Legal',desc:'The VICP structure, funding, and history under the 1986 NCVIA.',kw:['vicp','vaccine injury compensation','compensation program','1986 act']}, {url:'/legal/vicp/how-to-file',title:'How to File a VICP Claim',section:'Legal',desc:'Process for filing a claim with the Vaccine Injury Compensation Program.',kw:['vicp claim','file claim','how to file','compensation claim','injured by vaccine']}, {url:'/legal/vicp/statistics',title:'VICP Statistics',section:'Legal',desc:'Historical and current statistics on VICP claims filed, compensated, and dismissed.',kw:['vicp statistics','compensation data','vicp data','claims statistics']}, {url:'/legal/vaccine-court',title:'Vaccine Court',section:'Legal',desc:'The U.S. Court of Federal Claims Office of Special Masters.',kw:['vaccine court','special masters','court of federal claims']}, {url:'/legal/history',title:'Vaccine Law History',section:'Legal',desc:'Legislative and legal history of vaccine law in the U.S., including the 1986 NCVIA.',kw:['vaccine law history','legal history','1986','ncvia','legislation']}, {url:'/legal/supreme-court',title:'Supreme Court Cases',section:'Legal',desc:'Landmark U.S. Supreme Court decisions related to vaccines and public health law.',kw:['supreme court','scotus','court cases','jacobson','bruesewitz','landmark cases']}, {url:'/legal/omnibus-proceedings',title:'Omnibus Autism Proceedings',section:'Legal',desc:'Omnibus Autism Proceedings in vaccine court addressing thousands of autism claims.',kw:['omnibus','omnibus autism','autism proceedings','vaccine court autism']}, {url:'/legal/litigation',title:'Vaccine Litigation',section:'Legal',desc:'Vaccine-related litigation outside the VICP.',kw:['litigation','lawsuits','legal cases','civil suits','vaccine lawsuits']}, {url:'/legal/foia',title:'FOIA & Vaccine Records',section:'Legal',desc:'FOIA requests and disclosures related to vaccine regulatory documents.',kw:['foia','freedom of information','documents','transparency','regulatory documents']}, {url:'/legal/prep-act',title:'PREP Act',section:'Legal',desc:'The PREP Act providing liability immunity for medical countermeasures during emergencies.',kw:['prep act','liability','immunity from liability','emergency preparedness']}, {url:'/populations',title:'Populations Overview',section:'Populations',desc:'Vaccine guidance for specific groups: children, elderly, pregnant, travelers, and more.',kw:['populations','groups','specific populations','who should get vaccinated']}, {url:'/populations/infants-children',title:'Infants & Children',section:'Populations',desc:'Vaccination considerations for infants and children from birth through age 12.',kw:['infants','babies','children','pediatric','newborn','kids','childhood vaccination']}, {url:'/populations/adolescents',title:'Adolescents',section:'Populations',desc:'Vaccination recommendations for adolescents including HPV and meningococcal vaccines.',kw:['adolescents','teens','teenagers','middle school','high school','hpv teens']}, {url:'/populations/adult',title:'Adults',section:'Populations',desc:'Vaccination considerations and current schedule for adults.',kw:['adults','adult vaccination','grown ups','adult schedule']}, {url:'/populations/elderly',title:'Older Adults',section:'Populations',desc:'Vaccination for older adults including high-dose flu, shingles, RSV, and pneumococcal.',kw:['elderly','older adults','seniors','aging','65 and older','shingles older','high dose flu']}, {url:'/populations/pregnancy',title:'Pregnancy & Vaccines',section:'Populations',desc:'Vaccines recommended during pregnancy including Tdap, influenza, RSV, and COVID-19.',kw:['pregnancy','pregnant','maternal','prenatal','vaccines during pregnancy','tdap pregnancy']}, {url:'/populations/immunocompromised',title:'Immunocompromised Individuals',section:'Populations',desc:'Vaccination for immunocompromised individuals including transplant and HIV-positive persons.',kw:['immunocompromised','immune deficiency','cancer','transplant','hiv','weakened immune system']}, {url:'/populations/healthcare-workers',title:'Healthcare Workers',section:'Populations',desc:'Vaccine requirements and recommendations for healthcare workers.',kw:['healthcare workers','medical workers','nurses','doctors','hospital staff','occupational']}, {url:'/populations/international-travelers',title:'International Travelers',section:'Populations',desc:'Travel vaccine recommendations, requirements by destination, and pre-travel planning.',kw:['international travelers','travel','abroad','destination vaccines','travel medicine']}, {url:'/policy',title:'Policy Overview',section:'Policy',desc:'U.S. federal and state policy, funding, employer policies, and provider incentives.',kw:['policy','vaccine policy','government','laws and policy']}, {url:'/policy/us-federal',title:'U.S. Federal Vaccine Policy',section:'Policy',desc:'Federal framework governing vaccine recommendations, programs, and funding.',kw:['federal policy','us federal','federal government','cdc policy','federal vaccine']}, {url:'/policy/emergency-powers-pandemic-policy',title:'Emergency Powers & Pandemic Policy',section:'Policy',desc:'Public health emergency powers related to vaccines, EUAs, PREP Act, and declarations.',kw:['emergency powers','pandemic','pandemic policy','public health emergency']}, {url:'/policy/state-school-requirements',title:'State School Requirements',section:'Policy',desc:'State-level school entry vaccination requirements, exemptions, and enforcement.',kw:['state school','school requirements','mandates','state policy','state law']}, {url:'/policy/funding-coverage-access',title:'Funding, Coverage & Access',section:'Policy',desc:'Vaccine funding, insurance coverage, and access programs including VFC and ACA.',kw:['funding','coverage','access','vfc','vaccines for children','insurance','medicaid','cost']}, {url:'/policy/employer-institutional-policies',title:'Employer & Institutional Policies',section:'Policy',desc:'Employer and institutional vaccine policies and EEOC/ADA legal considerations.',kw:['employer','workplace','institutional','hospital mandate','university requirement','eeoc','ada']}, {url:'/policy/provider-incentives',title:'Provider Incentives',section:'Policy',desc:'Financial and programmatic incentives for vaccine administration.',kw:['provider incentives','financial incentives','payment','reimbursement']}, {url:'/policy/state-adoption-mechanisms',title:'State Adoption Mechanisms',section:'Policy',desc:'How U.S. states adopt ACIP recommendations: auto-reference, administrative authority, legislative control, or hybrid.',kw:['state adoption','adoption mechanisms','how states adopt','acip adoption','astho']}, {url:'/policy/key-figures',title:'Key Policy Figures',section:'Policy',desc:'Profiles of key figures in U.S. vaccine policy.',kw:['key figures','policy figures','profiles','vaccine officials']}, {url:'/policy/key-figures/rfk-jr',title:'RFK Jr.',section:'Policy',desc:'Profile documenting Robert F. Kennedy Jr. and his public record related to vaccine policy.',kw:['rfk jr','rfk','robert kennedy','kennedy','hhs']}, {url:'/blog',title:'Blog Overview',section:'Blog',desc:'Editorial content, polling data, and debate documentation.',kw:['blog','articles','editorial','posts']}, {url:'/blog/pros-vs-cons',title:'Pros vs. Cons',section:'Blog',desc:'Arguments presented by proponents and critics of vaccination policy.',kw:['pros cons','arguments','pro vaccine','anti vaccine','both sides','debate']}, {url:'/blog/vax-vs-anti-vax',title:'Vax vs. Anti-Vax',section:'Blog',desc:'Positions and arguments of vaccine proponents and vaccine-critical communities.',kw:['vax anti vax','pro anti','vaccine debate','vaccine hesitancy','anti-vaccine']}, {url:'/blog/polling',title:'Polling',section:'Blog',desc:'Vaccine-related public opinion polling data and survey findings.',kw:['polling','public opinion','surveys','polls','vaccine attitudes']}, {url:'/blog/polling/survey-data',title:'Survey Data',section:'Blog',desc:'Survey and polling data on public attitudes toward vaccines and hesitancy levels.',kw:['survey data','polling data','vaccine hesitancy data','public opinion data']}, {url:'/people',title:'People Hub',section:'People',desc:'Hub for the Physician & Scientist Credibility Registry.',kw:['people','registry','physicians','scientists']}, {url:'/people/registry',title:'Physician & Scientist Registry',section:'People',desc:'Registry of researchers and clinicians with notable roles in vaccine policy and science.',kw:['registry','physician registry','scientist registry','credibility registry','doctors','researchers']}, {url:'/people/about-the-registry',title:'About the Registry',section:'People',desc:'Purpose, scope, and editorial standards of the Registry.',kw:['about registry','registry methodology','registry standards']}, {url:'/people/methodology',title:'Registry Methodology',section:'People',desc:'Methodology for selecting and maintaining Registry entries.',kw:['registry methodology','selection criteria','methodology']}, {url:'/people/template-preview',title:'Registry Template Preview',section:'People',desc:'Preview of the standardized template used for all Registry entries.',kw:['template','template preview','profile template','registry format']}, {url:'/about',title:'About',section:'About',desc:'Editorial team, methodology, standards, corrections, and funding.',kw:['about','about the site','who we are']}, {url:'/about/team',title:'Editorial Team',section:'About',desc:'Editorial team and organizational structure of VaccinationFacts.com.',kw:['team','editorial team','who runs','staff']}, {url:'/about/methodology',title:'Methodology',section:'About',desc:'Nine-section editorial methodology covering sourcing, review, neutrality, and corrections.',kw:['methodology','editorial methodology','how we work','standards','process','sourcing']}, {url:'/about/editorial-standards',title:'Editorial Standards',section:'About',desc:'Editorial standards and content policies governing all published content.',kw:['editorial standards','content policy','standards','editorial guidelines']}, {url:'/about/corrections',title:'Corrections',section:'About',desc:'Corrections policy and log for VaccinationFacts.com.',kw:['corrections','error corrections','updates','corrections log']}, {url:'/about/funding',title:'Funding & Independence',section:'About',desc:'Funding model and editorial independence of VaccinationFacts.com.',kw:['funding','independence','who funds','financial','reader funded','conflict of interest']}, {url:'/contact',title:'Contact',section:'Other',desc:'Contact page for VaccinationFacts.com.',kw:['contact','reach out','get in touch','email']}, {url:'/sitemap',title:'Sitemap',section:'Other',desc:'Full listing of all pages on VaccinationFacts.com.',kw:['sitemap','all pages','site map','full list']}, {url:'/privacy',title:'Privacy Policy',section:'Other',desc:'How VaccinationFacts.com handles visitor data.',kw:['privacy','privacy policy','data','cookies']}, {url:'/terms',title:'Terms of Use',section:'Other',desc:'Terms of use governing access to VaccinationFacts.com.',kw:['terms','terms of use','legal','conditions']} ]; // ── Sections ── var SECTIONS = [ {key:'Science', label:'Science', icon:'🔬'}, {key:'Safety', label:'Vaccine Safety', icon:'🛡'}, {key:'Research', label:'Research', icon:'📚'}, {key:'Regulatory', label:'Regulatory', icon:'⚖️'}, {key:'Controversies',label:'Controversies',icon:'📋'}, {key:'Legal', label:'Legal', icon:'🏛'}, {key:'Populations',label:'Populations', icon:'👥'}, {key:'Policy', label:'Policy', icon:'🏛'}, {key:'Learn', label:'Learn', icon:'🎓'}, {key:'People', label:'People', icon:'👤'}, {key:'Blog', label:'Blog', icon:'📰'}, {key:'About', label:'About', icon:'ℹ️'} ]; // ── Search ── function vfSearch(query) { var terms = query.toLowerCase().trim().split(/\s+/).filter(function(t){return t.length>1;}); if (!terms.length) return []; var scored = PAGES.map(function(page) { var hay = [page.title.toLowerCase(), page.section.toLowerCase(), page.desc.toLowerCase(), page.kw.join(' ')].join(' '); var score = 0; terms.forEach(function(t) { if (page.title.toLowerCase().indexOf(t)>-1) score+=10; if (page.url.toLowerCase().indexOf(t)>-1) score+=8; if (page.kw.some(function(k){return k.indexOf(t)>-1;})) score+=6; if (page.desc.toLowerCase().indexOf(t)>-1) score+=3; if (page.section.toLowerCase().indexOf(t)>-1) score+=2; }); return {page:page, score:score}; }).filter(function(r){return r.score>0;}).sort(function(a,b){return b.score-a.score;}); return scored.slice(0, MAX_RESULTS).map(function(r){return r.page;}); } // ── Gap Tracker ── function vfLogGap(query) { try { var raw = localStorage.getItem(GAP_KEY); var log = raw ? JSON.parse(raw) : {}; var key = query.toLowerCase().trim(); log[key] = (log[key]||0)+1; localStorage.setItem(GAP_KEY, JSON.stringify(log)); } catch(e){} } // ── Helpers ── function esc(s) { return String(s).replace(/&/g,'&').replace(//g,'>'); } // ── Build Widget HTML ── var panel = document.createElement('div'); panel.id = 'vfw-panel'; panel.setAttribute('role','dialog'); panel.setAttribute('aria-label','VaccinationFacts site assistant'); panel.innerHTML = [ '
', '
'+BOT+'
', '

VaccinationFacts Assistant

Site guide  ·  Not medical advice

', '', '
', '
'+WARN+'

Automated navigation tool — not medical advice. This assistant guides you to content on this site. Always consult a qualified healthcare provider for personal health decisions.

', '
', '
', '
', '', '', '
' ].join(''); var fab = document.createElement('button'); fab.id = 'vfw-fab'; fab.setAttribute('aria-label','Open site assistant'); fab.innerHTML = BOT; document.body.appendChild(panel); document.body.appendChild(fab); // ── State ── var isOpen = false; function togglePanel() { isOpen = !isOpen; if (isOpen) { panel.classList.add('vfw-open'); document.getElementById('vfw-inp').focus(); } else { panel.classList.remove('vfw-open'); } } fab.addEventListener('click', function() { togglePanel(); if (isOpen && document.getElementById('vfw-msgs').children.length === 0) { initChat(); } }); document.getElementById('vfw-close-btn').addEventListener('click', togglePanel); document.getElementById('vfw-send').addEventListener('click', handleSend); document.getElementById('vfw-inp').addEventListener('keydown', function(e){ if(e.key==='Enter') handleSend(); }); // ── Chat Logic ── function addBotMsg(html, extra) { var msgs = document.getElementById('vfw-msgs'); var row = document.createElement('div'); row.className = 'vfw-row vfw-bot'; row.innerHTML = '
'+BOT+'
'+html+'
'+(extra||'')+'
'; msgs.appendChild(row); scrollMsgs(); } function addUserMsg(text) { var msgs = document.getElementById('vfw-msgs'); var row = document.createElement('div'); row.className = 'vfw-row vfw-usr'; row.innerHTML = '
'+esc(text)+'
'; msgs.appendChild(row); scrollMsgs(); } function showTyping() { var msgs = document.getElementById('vfw-msgs'); var row = document.createElement('div'); row.className = 'vfw-row vfw-bot vfw-typing-row'; row.innerHTML = '
'+BOT+'
'; msgs.appendChild(row); scrollMsgs(); } function removeTyping() { var t = document.querySelector('.vfw-typing-row'); if (t) t.remove(); } function setQR(buttons) { var bar = document.getElementById('vfw-qr'); bar.innerHTML = ''; buttons.forEach(function(b) { var btn = document.createElement('button'); btn.className = 'vfw-qb'; btn.textContent = b.label; btn.addEventListener('click', b.action); bar.appendChild(btn); }); } function scrollMsgs() { setTimeout(function(){ var m=document.getElementById('vfw-msgs'); m.scrollTop=m.scrollHeight; }, 60); } function initChat() { addBotMsg('

Welcome to the VaccinationFacts.com assistant.

Enter any topic in the search bar — such as a disease, policy topic, researcher, safety system, or key term — and this assistant will guide you to the relevant pages on this site.

You can also browse by section using the buttons below.

'); setQR([ {label:'Browse sections', action:function(){showSections();}}, {label:'Vaccine Safety', action:function(){doSearch('vaccine safety');}}, {label:'COVID-19', action:function(){doSearch('covid-19');}}, {label:'Safety Reporting', action:function(){doSearch('vaers');}}, {label:'Vaccination Schedules', action:function(){doSearch('vaccination schedule');}} ]); } function handleSend() { var inp = document.getElementById('vfw-inp'); var q = inp.value.trim(); if (!q) return; inp.value = ''; addUserMsg(q); setQR([]); showTyping(); setTimeout(function(){ removeTyping(); renderResults(q); }, 380); } function doSearch(query) { addUserMsg(query); setQR([]); showTyping(); setTimeout(function(){ removeTyping(); renderResults(query); }, 380); } function renderResults(query) { var results = vfSearch(query); if (!results.length) { vfLogGap(query); var html = '

No pages were found for "'+esc(query)+'".

'; html += '

VaccinationFacts.com is still being developed, so the topic you searched for may not yet have a dedicated page.

'; html += '

You are welcome to contact us to suggest this topic, or check back later as new content is added regularly.

'; html += '

In the meantime, you can browse the site sections to look for related content that may already exist:

'; addBotMsg(html, buildSectionGrid(false)); setQR([ {label:'Contact Us', action:function(){window.open(SITE+'/contact','_blank');}}, {label:'New search', action:function(){document.getElementById('vfw-inp').focus();}} ]); return; } var count = results.length; var header = '

Found '+count+' page'+(count>1?'s':'')+' for "'+esc(query)+'":

'; addBotMsg(header, buildResultCards(results)); setQR([ {label:'Browse sections', action:function(){showSections();}}, {label:'New search', action:function(){document.getElementById('vfw-inp').focus();}} ]); } function buildResultCards(pages) { var wrap = document.createElement('div'); wrap.className = 'vfw-res'; pages.forEach(function(p) { var card = document.createElement('div'); card.className = 'vfw-card'; card.innerHTML = '
'+esc(p.section)+'
'+esc(p.title)+'
'+esc(p.desc)+'
'+LINK+' Open page'; wrap.appendChild(card); }); return wrap.outerHTML; } function showSections() { addUserMsg('Browse sections'); setQR([]); showTyping(); setTimeout(function(){ removeTyping(); addBotMsg('

Choose a section to browse its pages:

', buildSectionGrid(true)); setQR([{label:'New search', action:function(){document.getElementById('vfw-inp').focus();}}]); }, 340); } function buildSectionGrid(interactive) { var wrap = document.createElement('div'); wrap.className = 'vfw-sgrid'; SECTIONS.forEach(function(s) { var btn = document.createElement('button'); btn.className = 'vfw-sbtn'; btn.innerHTML = ''+s.icon+''+s.label; btn.addEventListener('click', function(){ if (interactive) showSection(s); else doSearch(s.key); }); wrap.appendChild(btn); }); return wrap.outerHTML; } function showSection(section) { addUserMsg(section.label); setQR([]); showTyping(); setTimeout(function(){ removeTyping(); var pages = PAGES.filter(function(p){return p.section===section.key;}).slice(0,10); addBotMsg('

'+section.icon+' '+section.label+'

', buildSubpageList(pages)); setQR([ {label:'Back to sections', action:function(){showSections();}}, {label:'New search', action:function(){document.getElementById('vfw-inp').focus();}} ]); }, 320); } function buildSubpageList(pages) { var wrap = document.createElement('div'); wrap.className = 'vfw-splist'; pages.forEach(function(p) { var item = document.createElement('div'); item.className = 'vfw-spi'; item.innerHTML = '
'+esc(p.title)+'
'+esc(p.desc)+'
Open'; wrap.appendChild(item); }); return wrap.outerHTML; } })();