';
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);
}
});
});
Since November, the Las Vegas police department has helped initiate deportation proceedings agains nearly 2,000 illegal immigrants who are inmates in the Clark County Detention Center.
In a new partnership that blends criminal law and immigration law enforcement, Las Vegas police report the names of violent offenders believed to be in the U.S. illegally to U.S. Immigration and Customs Enforcement.
The Las Vegas Review-Journal reports that the Clark County program is narrower in scope than that of Maricopa County in Arizona, where police officers can arrest people for immigration violations. However, once someone has been arrested in Clark County on unrelated charges, they can be screened for possible deportation.
A Las Vegas police spokesman said an inmate's criminal history affects whether they initiate deportation proceedings. Another 1,800 inmates who are illegal immigrants were not reported because they had no violent criminal history.
Critics of the partnership call it tantamount to racial profiling; they say the police's double duty will deter Hispanic community members from reporting crimes.