';
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);
}
});
});
Colorado as an outdoor recreation mecca? Colorado as the capital of the global uranium industry? Take your pick, but you can't have both, seems to be the sentiment in the Paradox Valley area near the Utah border. Montrose County commissioners there have delayed a decision on a controversial uranium mill proposal, but deep community divisions remain, writes David O. Williams in the Colorado Independent.
The mill - capable of producing enough fuel rods to power a city bigger than Denver - has run into opposition from people who live in Telluride and Ridgway, Williams writes, who argue that the mill would damage the region's reputation as an international outdoor tourism destination. But the fuel company, Energy Fuels Inc., says it's possible to avoid past mistakes and operate in a way that makes tourism and uranium mining and processing compatible. Many of those who live nearby are in favor of the jobs - including 282 mining jobs and 256 support jobs - the mill would create, and bristle at the invasion of Coloradoans they view as outsiders.
One local, however, speaks for those against the mill.
"If the mill is allowed, the stigma of a uranium mill in Paradox Valley will make agriculture and tourism extremely difficult," Goldfogel said. "There is no market for organic produce grown down the road from a uranium mill. There is no market for my farm if you allow this mill."