INNER CODE UNIT · JavaScript

closeUserTrailModal

XortexAI/XMem · admin/app.js:254

function closeUserTrailModal() {
  document.getElementById('user-trail-modal').style.display = 'none';
}

function formatDateShort(dateStr) {
  if (!dateStr) return '—';
  const d = new Date(dateStr);
  const now = new Date();
  const diffMs = now - d;
  const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));

  if (diffDays === 0) return 'Today';
  if (diffDays === 1) return 'Yesterday';
  if (diffDays < 7) return `${diffDays}d ago`;

  return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…