Investigating the health of a community
';
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);
}
});
});
The Duwamish is not only Seattle’s only river, and the original home of its first Native American people, it is now also an industrial waterway classified as one of the nation’s worst toxic waste sites and one of the few federal Superfund cleanup sites in the country to bisect a major urban area.
Through this project, InvestigateWest's Carol Smith examined how this confluence of factors – location, history and industry – has shaped the health of the communities that have grown up around the river. While reams of data have looked at the health of the river, much less is known about the health of the people who depend on or live near its waters. Smith was a 2010 recipient of the national California Endowment Health Journalism Fellowship from the University of Southern Calfornia's Annenberg School of Journalism. This project was done in conjunction with her fellowship and also appeared in www.seattlepi.com.
Carol, an experienced health journalist, was able to dig deep and find some fascinating public health data to illustrate what living in a Superfund site can do to the people who call it home.