';
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);
}
});
});
Washington State is among the latest to sue over public school financing, reports Linda Shaw of the Seattle Times. A coalition of parents, teachers, 30 school districts and the state's largest teachers union have banded together to uphold what they are calling a constitutional duty to provide funds for public schools.
The lawsuit goes to trial today in Seattle, a whopping 32 years after the state Supreme Court demanded that lawmakers design a way to fund basic education for all children. While state dollars still provide the majority of education funds, schools have heavily relied on local tax levies, donations and fundraisers. Plaintiffs say they have watched the gap rapidly widen between what the state provides, and what the schools need.
According to a National Access Network map, which provides state-by-state info, 45 out of 50 U.S. states have experienced school funding litigation.