';
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);
}
});
});
It may not be surprising, but it’s worth noting that the poverty rate for children varies widely by the counties they live in. In Oregon, children in rural counties were the most likely to live in impoverished households.
According to Betsy Hammond, writing in The Oregonian, children in the Lake Oswego, Sherwood, Corbett and West Linn-Wilsonville school districts had six percent or fewer children living under the poverty line.
In contrast, many of the school districts in southeast Oregon’s Harney County and in the Three Rivers school district near Grants Pass had up to one-third of their students living in poverty.
Poverty level is considered $22,050 a year for a family of four.
Students need more assistance in high-poverty communities in order to read and do math. A federal report released last week shows that kids who go to school in low-income districts are about 12 times more likely to be attending low-performing schools, Hammond writes.
Holly Pruett, executive director of Stand for children in Oregon, told the Oregonian:
“For children living in poverty, schools are the essential lifeline to the skills and the inspiration to be able to succeed in life.”
--Carol Smith