';
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);
}
});
});
Last February, Carol Smith's report, “The Prescription Epidemic” revealed how aggressive marketing and sales of pharmaceuticals drove a culture of overprescription in Washington and created the spectacular run-up in the number of deaths from prescription overdoses.
Today that story—and the documentary of the same name that we co-produced with KCTS—was recognized by Best of the West, a journalism contest for news outlets from Alaska to Texas. Here's what the judge had to say:
“InvestigateWest’s report on the prescription drug epidemic in Washington tackles a controversial topic – the unintended consequences of making pain medication available to those in need. Carol Smith and her colleagues revealed not just the personal cost of overdoses but also the hidden influence of drug companies on the guidelines for the use of painkillers. The research, the writing and the multimedia presentation offer readers creative, compelling and unforgettable work,” the judge wrote.
Congratulations also to the staff of The Oregonian, who won top honors in the category for their reporting on the Oregon Public Employees Retirement System.