';
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);
}
});
});
Congress is considering bringing parity to taxation of health care benefits.
The plan, touted by Sen. Max Baucus (D-Montana), the chair of the Senate Finance Committee, would tax high-end corporate health care benefits to pay for wide ranging reforms of the U.S. health care system, according to Ken Bensinger of the Los Angeles Times.
Sen. John Kerry (D-Mass.) first introduced the plan this summer, arguing that the tax would compel insurers to reduce their costs and allocate their expenses in a more equitable way.
Businesses pay taxes on their lower paid workers' benefits, so officials say the move would correct a regressive tax structure. Employers would pay the tax, rather than employees.
But labor unions could cozy up to insurers and big business to fight the proposal because they are concerned that the cuts could go deeper, and that insurers would raise premiums or eliminate services to counteract their effect on profits.