InvestigateWest (investigatewest.org) is an independent news nonprofit dedicated to investigative journalism in the Pacific Northwest. Visit investigatewest.org/newsletters to sign up for weekly updates.
';
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);
}
});
});
A quick announcement and an invitation: We recently started a project to make old news new again.
Every so often, you'll see a post from us over at QUEST, public broadcasting's award-winning series on science and sustainability. We dig into the science of our stories from over the years and look into the latest research.
Robert's first story about that gooey asphalt sealant led Washington to ban it. That was 2010 and it was the first state ban in the country. (Last year Minnesota joined Washington in passing a ban.) Yet every year about 85 million gallons of toxic waste known to promote cancer are still carefully painted across about 170 square miles of American cities and suburbs.
The story you just read is only possible because readers like you support our mission to uncover truths that matter. If you value this reporting, help us continue producing high-impact investigations that drive real-world change. Your donation today ensures we can keep asking tough questions and bringing critical issues to light. Join us — because fearless, independent journalism depends on you!
The changes, which would expand the state’s investigatory abilities, still need approval from the governor-appointed Professional Educator Standards Board
Get the inside scoop in your inbox, free.
Subscribe to our weekly newsletters and never miss an investigation.