';
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);
}
});
});
So how's this for a conundrum? Utah state officials have refused to stop EnergySolutions from accepting more radioactive waste, despite environmentalists' pleas for a moratorium on such shipments until the safety of depleted uranium is decided. This week, the Utah Radiation Control Board voted that the shipments can continue until the federal Nuclear Regulatory Commission finishes deciding how to classify depleted uranium on the nation's radiation danger scale, reports Patty Henetz of the Salt Lake Tribune.
The officials said they didn't think the waste posed an immediate danger, but if the feds decide it does, well, then, they'll have EnergySolutions remove it.
Opponents argue that logic is a little scrambled, as in it's tough to unscramble an egg.
The decision to allow the waste to continue going to the Tooele County site could mean the Tooele County site, which has already accepted 49,000 metric tons of depleted uranium, will get an additional 14,000 more from South Carolina.