';
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 Arizona Republic also has a story this morning that the military, which has had difficulty in recent years filling its recruiting slots, is now slammed with applicants who are turning there after unsuccessful job hunts in the civilian world. http://www.azcentral.com/arizonarepublic/news/articles/2009/06/24/20090624militaryjobs.html
The Salt Lake Tribune made note that its neighbors in Wyoming are expanding their State Veterinary Lab from a "biosafety level two" to a "level three." The buzz about it, though, focused on the hope that the move would leave to a better vaccine against brucellosis, a disease that causes pregnant cattle to abort their fetuses.The disease turned up in a Wyoming herd last year, and the state's cattle industry risks losing its federal brucellosis-free status and stricter testing requirements if it turns up again. http://www.sltrib.com/nationworld/ci_12678658
The Trib also reports that wildlife conservation groups lodged protests against a $1.3 million quarterly oil and gas lease sale in the Fillmore, Price and Vernal regions. A conservation partnership noted the BLM has deferred auctioning lease parcels in the Fillmore region out of concern for sage grouse and Bonneville cutthroat trout. The Theodore Roosevelt Conservation Partnership argues mule deer and elk deserve the same deference. http://www.sltrib.com/portlet/article/html/fragments/print_article.jsp?articleId=12674661&siteId=297
Meanwhile, closer to home, the Salt Lake County Council is stymied on how best to allow residents to build backyard chicken coops. It refused to pass a proposal that would have required a coop to be built like "maximum-security prison" and instead passed the proposal over to it public-works subcommittee for revision. http://www.sltrib.com/portlet/article/html/fragments/print_article.jsp?articleId=12675079&siteId=297