American Revolution Battles Map

Battle Information

Click on a battle marker on the map to see details.

Date: ${battle.date}

Location: ${battle.location}

Summary: ${battle.summary}

`; } // --- PDF Download Functionality --- if (downloadPdfBtn) { downloadPdfBtn.addEventListener('click', function() { let pdfHtmlContent = ` American Revolution Battles List

American Revolution Battles

A summary of key battles from the American Revolutionary War.

`; battles.forEach(battle => { pdfHtmlContent += `

${battle.name}

Date: ${battle.date}

Location: ${battle.location}

Summary: ${battle.summary}

`; }); pdfHtmlContent += ` `; const pdfWindow = window.open('', '_blank'); if (pdfWindow) { pdfWindow.document.open(); pdfWindow.document.write(pdfHtmlContent); pdfWindow.document.close(); // pdfWindow.print(); // Optional: trigger print dialog automatically if desired } else { alert("Failed to open PDF window. Please check your browser's pop-up blocker settings."); } }); } // --- Initialize Tool --- plotBattleMarkers(); });
Scroll to Top