';
document.querySelector('#copytext').value = textContent;
modal.showModal();
});
// Modal close functionality
const modal = document.querySelector('.republish-modal');
const closeBtn = document.querySelector('.republish-modal-close');
// Close button click
closeBtn.addEventListener('click', function() {
modal.close();
});
// Close on backdrop click
modal.addEventListener('click', function(e) {
if (e.target === modal) {
modal.close();
}
});
// Close on ESC key (this is usually built-in, but adding for safety)
modal.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
modal.close();
}
});
// Copy text button functionality
document.querySelector('.copy-text-button').addEventListener('click', async function() {
const textarea = document.querySelector('#copytext');
const text = textarea.value;
try {
// Try modern Clipboard API first
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(text);
this.textContent = 'Copied!';
} else {
// Fallback for older browsers
textarea.select();
document.execCommand('copy');
this.textContent = 'Copied!';
}
// Reset button text after 2 seconds
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
} catch (err) {
console.error('Failed to copy text: ', err);
// Fallback to selection if copying fails
textarea.select();
this.textContent = 'Text selected';
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
}
});
});
Bug bites. Animal feces. Viruses.
Those are three of the ways that Third World diseases are being spread in the United States, particularly in slums, the rural South and along the Mexican border, Stephanie Simon and Betsy McKay report in The Wall Street Journal.
Yes, the headlines today are full of news that up to half the U.S. population could contract swine flu this fall. But George Washington University microbiologist Peter Hotez says that's nothing compared to the likes of dengue fever or Chagas:
These are diseases that we know are ten-fold more important than swine flu. They're on no one's radar.
Now, as you might suspect, these diseases are not likely to be problem for you if you live in a suburb, where sanitation, insect control and veterinary care are routine.
However, in crowded slums, risks multiply manifold.
The health-care legislation in the House calls for a concentrated study of these diseases, but its fate is uncertain in the Senate.