';
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);
}
});
});
Here's the problem. It's a math problem. Not a political problem. A Park City, Utah, couple - young, working, no health problems, insured - is going broke over health care. The Moynahans - two self-employed parents and a young daughter - are struggling to deal with average annual increase of 20 percent in the family's health insurance premiums. They've switched between three insurance companies and four plans to try to save money, the Salt Lake Tribune reports. They have a stripped-down plan with a high deductible.
The Salt Lake paper did the story off a report by Families USA, which did a comprehensive study finding that that families nationally are being priced out of coverage. And employers who offer coverage are reeling. The Utah employer's average annual share of family premiums was $4,861 in 2000, and it rose 97 percent to $9,594 in 2009, the report notes. It is based on data from the U.S. Census and the U.S. Department of Health and Human Services.
But hey, it's hard to rant about math problems. No lines in the sand about math problems. Too simple.