';
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 recession is driving more people than ever to seek state assistance with health care in Colorado, reports Tim Hoover in the Denver Post. The state saw a 14 percent spike in Medicaid enrollment in the budget year that ended in June, a "record-setting rate that capped a year with the largest-ever number of people in the health insurance program." In June alone, there were 80,000 more Coloradans on Medicaid than the previous month. Nearly 10 percent of the state's residents are now enrolled in Medicaid, which covers low-income pregnant women, children, the elderly and disabled.
State officials say they are seeing a pattern of unemployed people laid off from good jobs who have never sought state assistance before being driven to seek assistance from Medicaid and other programs in order to get health insurance for themselves or their children.