';
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);
}
});
});
A Republican candidate for governor in Idaho's 2010 elections is trying to explain away why he made a "joke" about a supporter's question about "Obama tags" during a discussion about wolf hunting. And he's not doing a very good job at it. At that rally on Tuesday, candidate Rex Rammell, a veterinarian, said, "The Obama tags? We'd buy some of those," reported Jared S. Hopkins of the Twin Falls Times News, who covered the session. Today, the newspaper reports, Rammell is making sure you know it's a joke with this line.
"Due to the large amount of press concerning his statement Dr. Rammell would like to clarify his comment: Anyone who understands the law, knows I was just joking, because Idaho has no jurisdiction to issue hunting tags in Washington D.C.''
Does this guy know it's a felony to threaten the life of the President?
"I was just being sarcastic. That was just a joke," Rammell told the reporter. "I would never support him being assassinated.
That's a relief. What a role model.
-- Rita Hibbard