${item.list.map(link => `- ${link.title}
`).join("")}
`).join(""); $("#filing").append(content); $(".Xc_census__filing .button").html("加载更多"); } }); } } loadContent(); $(".Xc_census__filing .content").on("click", ".panel", function () { const parent = $(this).parents(".content"); parent.find(".panel").not($(this)).removeClass("in"); parent.find(".panel-body").not($(this).siblings(".panel-body")).stop().hide("fast"); $(this).toggleClass("in").siblings(".panel-body").stop().toggle("fast"); }); $(".Xc_census__filing .button").on("click", function () { loadContent(); $(this).html("loading..."); });}if (typeof observer === 'undefined') { observer = new MutationObserver(mutations => { mutations.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node.nodeType === 1 && $(node).hasClass('Xc_census__filing')) { Xc_tongji(); } }); }); });}if (typeof config === 'undefined') { config = { childList: true, subtree: true };}var targetNode = document.body;observer.observe(targetNode, config);$(document).on('pjax:complete', function () { if (!isContentLoaded) { Xc_tongji(); isContentLoaded = true; }});document.addEventListener("DOMContentLoaded", function () { if (!isContentLoaded) { Xc_tongji(); isContentLoaded = true; }});