pediatric neurosurgery, pediatric neurosurgery journal, pediatric scientific journal, neurosurgery journals accepting case reports
ISSN: 2675-3626
(envie o arquivo pela Biblioteca de arquivos ou por FTP em /public/journals/1/)
================================================================= */
(function () {
"use strict";
/* ----- Textos e links editáveis ----- */
var APN = {
eyebrowBadge: "Open access",
eyebrow: "Free to publish · Free to read",
titleHtml: "Archives of Pediatric Neurosurgery",
lead: "", // vazio = usa o 1º parágrafo de "About the Journal"
metrics: [
["2019", "Founded by SBNPed"],
["3×", "Issues per year"],
["0.2", "Scopus CiteScore 2025"],
["B4", "Qualis CAPES"]
],
quick: [
["fa-book", "Current issue", "Latest published articles", "issue/current"],
["fa-bolt", "Online first", "Accepted, ahead of print", "issue/view/18"],
["fa-archive", "Archives", "Every volume since 2019", "issue/archive"],
["fa-paper-plane", "Submit", "Author guidelines & template", "about/submissions"],
["fa-bullhorn", "Call for papers", "Open themes & deadlines", "callforpapers"],
["fa-users", "Editorial team", "Board and reviewers", "about/editorialTeam"]
],
railLabel: "Highlights from this issue"
};
var d = document, root = d.documentElement, body = d.body;
root.classList.add("apn-js");
var reduce = window.matchMedia && matchMedia("(prefers-reduced-motion: reduce)").matches;
function el(tag, cls, html) { var n = d.createElement(tag); if (cls) n.className = cls; if (html != null) n.innerHTML = html; return n; }
function $(s, c) { return (c || d).querySelector(s); }
function $$(s, c) { return Array.prototype.slice.call((c || d).querySelectorAll(s)); }
function txt(n) { return n ? n.textContent.replace(/\s+/g, " ").trim() : ""; }
/* URL base da revista (…/sbnped2019/) */
var home = $(".pkp_site_name a");
var base = home ? home.href.trim().replace(/\/index\/?$/, "/") : location.href.replace(/\/[^\/]*$/, "/");
if (!/\/$/.test(base)) base += "/";
/* ----- toast ----- */
var toast = el("div", "apn-toast"); toast.setAttribute("role", "status"); body.appendChild(toast);
var tt; function say(m) { toast.textContent = m; toast.classList.add("is-on"); clearTimeout(tt); tt = setTimeout(function () { toast.classList.remove("is-on"); }, 2200); }
function copy(t, ok) {
var done = function () { say(ok); };
if (navigator.clipboard && window.isSecureContext) navigator.clipboard.writeText(t).then(done, fb); else fb();
function fb() { var a = el("textarea"); a.value = t; a.style.cssText = "position:fixed;opacity:0"; body.appendChild(a); a.select(); try { d.execCommand("copy"); done(); } catch (e) {} a.remove(); }
}
/* ----- 1. Hero + atalhos (somente na página inicial) ----- */
var issue = $(".current_issue");
if (body.classList.contains("pkp_page_index") && $(".page_index_journal")) {
var coverImg = issue && $(".obj_issue_toc .heading .cover img, .heading .cover img", issue);
var issueTitle = issue ? txt($(".current_issue_title", issue)) : "";
var pub = issue ? txt($(".heading .published .value", issue)) : "";
var issueLink = issue && $(".heading .cover", issue) ? $(".heading .cover", issue).href : base + "issue/current";
var lead = APN.lead;
if (!lead) { var ps = $$(".homepage_about p"); for (var i = 0; i < ps.length; i++) { var t = txt(ps[i]); if (t.length > 60) { lead = t; break; } } }
var hero = el("section", "apn-hero");
hero.setAttribute("aria-label", "Journal highlights");
var m = APN.metrics.map(function (x) { return "" + x[0] + "" + x[1] + ""; }).join("");
hero.innerHTML =
'' +
'";
var quick = el("nav", "apn-quick"); quick.setAttribute("aria-label", "Quick links");
quick.innerHTML = '";
var content = $(".pkp_structure_content");
content.parentNode.insertBefore(hero, content);
content.parentNode.insertBefore(quick, content);
body.classList.add("apn-has-hero");
/* capa reage ao mouse */
var cv = $(".apn-cover__img", hero);
if (cv && !reduce) {
hero.addEventListener("pointermove", function (e) {
var r = hero.getBoundingClientRect(), x = (e.clientX - r.left) / r.width - .5, y = (e.clientY - r.top) / r.height - .5;
cv.style.transform = "rotateY(" + (-14 + x * 16) + "deg) rotateX(" + (6 - y * 10) + "deg)";
});
hero.addEventListener("pointerleave", function () { cv.style.transform = ""; });
}
/* carrossel de destaques */
if (issue) {
var items = $$(".obj_article_summary", issue).filter(function (a) { return $(".cover img", a); }).slice(0, 10);
if (items.length >= 3) {
var rail = el("div", "apn-rail");
rail.innerHTML = '' + APN.railLabel + '' +
'
' +
'';
var track = $(".apn-rail__track", rail);
items.forEach(function (a) {
var sec = a.closest(".section"), h = sec && $("h2,h3", sec);
var link = $(".title a", a);
var c = el("a", "apn-card");
c.href = link ? link.href : "#";
c.innerHTML = '' +
'' + txt(h) + '' + txt($(".title", a)) + '' + txt($(".authors", a)) + "
";
track.appendChild(c);
});
var btns = $$(".apn-icon-btn", rail);
function upd() { btns[0].disabled = track.scrollLeft < 8; btns[1].disabled = track.scrollLeft + track.clientWidth > track.scrollWidth - 8; }
btns.forEach(function (b) { b.addEventListener("click", function () { track.scrollBy({ left: +b.dataset.dir * track.clientWidth * .9, behavior: reduce ? "auto" : "smooth" }); }); });
track.addEventListener("scroll", upd, { passive: true }); setTimeout(upd, 50);
var h2 = $("h2", issue);
if (h2) h2.insertAdjacentElement("afterend", rail);
}
}
}
/* ----- 2. Filtro por seção no sumário ----- */
$$(".obj_issue_toc .sections").forEach(function (wrap) {
var secs = $$(":scope > .section", wrap).filter(function (s) { return $("h2,h3", s); });
if (secs.length < 2) return;
var bar = el("div", "apn-filter"); bar.setAttribute("role", "toolbar"); bar.setAttribute("aria-label", "Filter by section");
var total = $$(".obj_article_summary", wrap).length;
function chip(label, n, idx) {
var b = el("button", "apn-chip", label + " " + n + ""); b.type = "button"; b.dataset.i = idx; b.setAttribute("aria-pressed", idx === "all" ? "true" : "false"); return b;
}
bar.appendChild(chip("All", total, "all"));
secs.forEach(function (s, i) { bar.appendChild(chip(txt($("h2,h3", s)), $$(".obj_article_summary", s).length, i)); });
bar.addEventListener("click", function (e) {
var b = e.target.closest(".apn-chip"); if (!b) return;
$$(".apn-chip", bar).forEach(function (c) { c.setAttribute("aria-pressed", c === b ? "true" : "false"); });
secs.forEach(function (s, i) {
var show = b.dataset.i === "all" || +b.dataset.i === i;
s.classList.toggle("apn-hidden", !show);
if (show) $$(".apn-reveal", s).forEach(function (r) { r.classList.add("is-in"); });
});
});
wrap.parentNode.insertBefore(bar, wrap);
});
/* ----- 3. Botões extras em cada artigo: copiar DOI e compartilhar ----- */
$$(".obj_article_summary").forEach(function (a) {
var gl = $(".galleys_links", a); if (!gl) { gl = el("ul", "galleys_links"); a.appendChild(gl); }
var doiA = $(".doiInSummary a, .pub_id.doi a", a), link = $(".title a", a);
var li = el("li"); li.style.marginLeft = "auto"; li.className = "apn-row";
if (doiA) {
var b1 = el("button", "apn-mini", ' Copy DOI'); b1.type = "button";
b1.addEventListener("click", function () { copy(doiA.href, "DOI copied to clipboard"); b1.classList.add("is-done"); b1.innerHTML = ' Copied'; setTimeout(function () { b1.classList.remove("is-done"); b1.innerHTML = ' Copy DOI'; }, 2200); });
li.appendChild(b1);
}
if (link) {
var b2 = el("button", "apn-mini", ' Share'); b2.type = "button";
b2.addEventListener("click", function () {
if (navigator.share) navigator.share({ title: txt(link), url: link.href }).catch(function () {});
else copy(link.href, "Article link copied");
});
li.appendChild(b2);
}
if (li.children.length) gl.appendChild(li);
});
/* ----- 4. Revelar ao rolar ----- */
var rv = $$(".obj_article_summary, .obj_announcement_summary, .pkp_structure_sidebar .pkp_block, .obj_issue_toc > .heading, .obj_issue_summary, .apn-card, .homepage_about");
if ("IntersectionObserver" in window && !reduce) {
var io = new IntersectionObserver(function (es) {
es.forEach(function (e) { if (e.isIntersecting) { e.target.classList.add("is-in"); io.unobserve(e.target); } });
}, { rootMargin: "0px 0px -8% 0px", threshold: .05 });
rv.forEach(function (n) {
var sib = n.parentElement ? Array.prototype.indexOf.call(n.parentElement.children, n) : 0;
n.classList.add("apn-reveal"); n.style.setProperty("--d", Math.min(sib, 5) * 70 + "ms"); io.observe(n);
});
}
/* ----- 5. Barra de progresso, cabeçalho e voltar ao topo ----- */
var bar = el("div", "apn-progress"); body.appendChild(bar);
var top = el("button", "apn-top", '↑');
top.type = "button"; top.setAttribute("aria-label", "Back to top"); body.appendChild(top);
var ring = $("circle", top);
top.addEventListener("click", function () { window.scrollTo({ top: 0, behavior: reduce ? "auto" : "smooth" }); });
var ticking = false;
function onScroll() {
var y = window.scrollY, h = d.documentElement.scrollHeight - innerHeight, p = h > 0 ? y / h : 0;
bar.style.transform = "scaleX(" + p + ")";
ring.setAttribute("stroke-dasharray", (p * 100).toFixed(1) + " 100");
body.classList.toggle("apn-scrolled", y > 40);
top.classList.toggle("is-on", y > 600);
ticking = false;
}
window.addEventListener("scroll", function () { if (!ticking) { ticking = true; requestAnimationFrame(onScroll); } }, { passive: true });
onScroll();
})();
});