';
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);
}
});
});
Springfield, OR, just became the latest city to add "parking meters" to its streets as a way to reduce panhandling and pay for services for people who are without homes.
They've installed "meters." So instead of paying a quarter or two for a half hour of parking, passersby plug 50-cents in the red parking meters to provide a shower for a homeless person. You can do more -- $1 is a hot meal, $3 is a bus pass and $5 supplies a sleeping bag. The Eugene Register Guard reports the program is administered by St. Vincent De Paul, which collects the money and makes sure it goes directly into services for homeless people.
The Springfield effort is modeled on a program in Denver, which helped get folks off the street and into shelter. A report there found that after 18 months the project resulted in a 92 percent reduction in the number of panhandlers in the downtown improvement district. They've also caught on around the country and in Canada, including Montreal and Ottawa. Portland, just up I-5, also has a "meters for the homeless" effort underway.
Some homeless advocates, however, don't like the concept, as Matt Palmquist reported in Miller-McCune Online.
Homeless advocates, needless to say, are not thrilled with the idea. As Sister Bernie Galvin, executive director of Religious Witness with Homeless People, told the San Francisco Chronicle: “Forget the children, forget the mothers who are struggling to raise their family homeless or in inadequate housing,” she said. “Will the city never give up on trying to find ways to make the lives of homeless people harder?”
Palmquist also points out that such efforts typically don't raise a lot of money; Portland's effort, for example, only raised $10,000 after several years.