ECG Heart Rate Calculator
Calculate heart rate using the 300, 1500, and 6-second methods
Embed this calculator
`;
}window.toggleEmbedPanel = function() {
if (embedPanel.style.display === 'none' || embedPanel.style.display === '') {
generateEmbedCode();
embedPanel.style.display = 'block';
} else {
embedPanel.style.display = 'none';
}
};window.copyEmbedCode = function() {
embedCodeTextarea.select();
navigator.clipboard?.writeText(embedCodeTextarea.value).then(() => alert('Embed code copied!')).catch(
() => alert('Press Ctrl+C'));
};// ─── Initial state ───
document.addEventListener('DOMContentLoaded', function() {
sixSecondRow.style.display = 'none';
calculateHR();
});})();