Public trust? An old fashioned idea whose time has come (again)
';
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);
}
});
});
Seattle's CityClub is putting out the word -- the nonprofit, non-partisan leadership building organization wants community members to come together to discuss the theme "public trust."
CityClub points out that a recent Pew Research Centersurvey finds a perfect storm of conditions associated with distrust of government – a dismal economy, an unhappy public, bitter partisan-based backlash, and epic discontent with Congress and elected officials. CityClub is doing its part to facilitate discussion around the topic during its 2010 Community Matters Campaign. The organization is inviting community members to host a Community Dialogue with friends or colleagues about public trust. To learn more about the campaign and how to get involved, contact CityClub and join the conversation.
With the Tea Party tearing apart the Republican establishment, the Democrats cowering on the sidelines and an ugly campaign season in offing, why not become part of the solution? Can't we all just get along? Let's give it a try.