a926e1825d
- Admin articles : filtres auteur/catégorie/statut par GET, compteur de résultats
- Admin articles : suppression massive avec checkboxes, confirmation JS, contrôle d'ownership
- Profil auteur : bio tronquée à 3 lignes avec bouton 'plus', limite à 6 articles affichés
- Profil auteur : bouton CTA pill 'Mes liens' vers /liens/{slug}
- Page liens : boutons pill colorés (palette auto par index), fond gris clair, grand avatar
15 lines
565 B
JavaScript
15 lines
565 B
JavaScript
(function(){
|
|
var bio = document.getElementById('author-bio');
|
|
var btn = document.getElementById('bio-toggle');
|
|
if (!bio || !btn) return;
|
|
requestAnimationFrame(function() {
|
|
if (bio.scrollHeight > bio.clientHeight + 2) { btn.hidden = false; }
|
|
});
|
|
btn.addEventListener('click', function() {
|
|
var exp = btn.getAttribute('aria-expanded') === 'true';
|
|
bio.classList.toggle('bio-clamped', exp);
|
|
btn.textContent = exp ? 'plus' : 'moins';
|
|
btn.setAttribute('aria-expanded', exp ? 'false' : 'true');
|
|
});
|
|
})();
|