5846c515f3
- 4 temas WordPress: persona-cv (activo), lumina, apex-cv, cvolio - Plugin pflores-cv-fields con CMB2 (100% gratuito) — admin editable - Generador PDF dinámico con Chromium headless (?cv_pdf=1) - Datos del CV de Patricia Flores cargados en CMB2 - URL dinámica con soporte proxy SSL (NPM/X-Forwarded-Proto) - WP Mail SMTP instalado (pendiente config SMTP) - Documentación completa: PROMPT_IA.md, DEPLOY_WEB.md, PRODUCCION.md, VERSIONADO.md
20 lines
628 B
JavaScript
20 lines
628 B
JavaScript
document.addEventListener("DOMContentLoaded", () => {
|
|
const toggle = document.querySelector(".site-nav-toggle");
|
|
const nav = document.querySelector(".site-nav");
|
|
const printButtons = document.querySelectorAll("[data-cvolio-print]");
|
|
|
|
if (toggle && nav) {
|
|
toggle.addEventListener("click", () => {
|
|
const expanded = toggle.getAttribute("aria-expanded") === "true";
|
|
toggle.setAttribute("aria-expanded", String(!expanded));
|
|
nav.classList.toggle("is-open", !expanded);
|
|
});
|
|
}
|
|
|
|
printButtons.forEach((button) => {
|
|
button.addEventListener("click", () => {
|
|
window.print();
|
|
});
|
|
});
|
|
});
|