alejandrogs.es/public/js/note.js
alejandrogs73 4fb49961b4
All checks were successful
Zola / build-and-deploy (push) Successful in 11s
feat(infra): migración a tema Apollo, reestructuración del blog y página 'Sobre mí'
- Implementado tema Apollo como base visual.
- Segregación de contenido: Artículos movidos a /blog.
- Creación de identidad: Nueva página 'Sobre mí' (about.md).
- CI/CD: Actualizado workflow para soporte de submódulos recursivos.
- UX: Ajustes en homepage para listado de últimos posts.
2025-12-14 19:05:54 +01:00

14 lines
555 B
JavaScript

document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.note-toggle').forEach(function(toggleButton) {
var content = toggleButton.nextElementSibling;
var isHidden = content.style.display === 'none';
toggleButton.setAttribute('aria-expanded', !isHidden);
toggleButton.addEventListener('click', function() {
var expanded = this.getAttribute('aria-expanded') === 'true';
this.setAttribute('aria-expanded', !expanded);
content.style.display = expanded ? 'none' : 'block';
});
});
});