';
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 battle over where to put foreign radioactive waste is getting hotter in Utah, where Rep. Jim Matheson has sent a letter to Gov. Gary Herbert calling Energy Solutions Inc.'s offer to share its profits with the state nothing short of "influence peddling," according to a report by Matt Canham and Thomas Burr of the Salt Lake Tribune.
The Salt Lake City-based nuclear services company has proposed a deal that could net the state $3 billion over a decade, and Senate Majority Leader Sheldon Killpack, mindful the state's budget is $700 million short, said the offer should be reconsidered.
"It's a horrible idea to consider opening up Utah to the entire world's radioactive garbage in exchange for a share of what the company says are the profits," Matheson said in the Tribune story. "No other country on Earth takes another country's nuclear waste and I am determined that the U.S. won't be the exception."
The latest salvo against the proposal follows a federal court ruling earlier this month that limits states' rights to restrict radioactive waste going to their disposal facilities.