时年

时年鉴 - 2026年

加载中...

'; // 发送AJAX请求 var xhr = new XMLHttpRequest(); xhr.open('POST', 'https://ficor.net/wp-admin/admin-ajax.php', true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function() { if (xhr.status >= 200 && xhr.status < 300) { try { var response = JSON.parse(xhr.responseText); if (response.success) { // 更新容器内容之前销毁图表实例 if (typeof window.yearbookChart !== 'undefined' && window.yearbookChart) { try { window.yearbookChart.destroy(); } catch (e) { console.warn('Failed to destroy chart before updating content:', e); } window.yearbookChart = null; } // 更新容器内容 container.innerHTML = response.data.content; // 重新初始化事件监听器 initYearbookEventListeners(); } else { console.error('加载失败:', response.data); } } catch (e) { console.error('解析响应失败:', e); } } else { console.error('请求失败:', xhr.status); } }; xhr.onerror = function() { console.error('请求错误'); }; // 发送请求 xhr.send('action=get_yearbook_content&year=' + year + '&month=' + (month || '') + '&nonce=c3aa49b608'); } function initYearbookEventListeners() { // 重新绑定年份选择器事件 var yearSelect = document.getElementById('year-select'); if (yearSelect) { yearSelect.onchange = updateMonthOptions; } // 重新绑定月份选择器事件 var monthSelect = document.getElementById('month-select'); if (monthSelect) { monthSelect.onchange = updateMonthOptions; } // 重新初始化图表 if (typeof window.safeInitChart === 'function') { window.safeInitChart(); } // 重新初始化工具提示(如果jQuery可用) if (typeof jQuery !== 'undefined' && typeof jQuery.fn.tooltip !== 'undefined') { jQuery('.yearbook-tooltip').tooltip({ position: { my: "center bottom-10", at: "center top" } }); } // 修复代码标签包裹问题 if (typeof jQuery !== 'undefined') { jQuery('.yearbook-container').each(function() { var $container = jQuery(this); var $codeParent = $container.closest('code'); if ($codeParent.length > 0) { // 将容器移动到标签外 $codeParent.replaceWith($container); } }); } } // 暴露函数到全局作用域以便在HTML中使用 window.updateMonthOptions = updateMonthOptions; window.updateUrl = updateUrl; window.loadYearbookContent = loadYearbookContent; window.initYearbookEventListeners = initYearbookEventListeners; })();

年度统计概览

文章

0
同比: -100%

媒体

0
同比: -100%

评论

3
同比: -99.5%

2026年 年度之最

最多浏览

最多评论

最佳博友

obaby
1 次互动
皇家元林
1 次互动
皮皮社长
1 次互动

年度统计详情

月份 文章 媒体 评论 合计
1月 0 0 3 3
总计 0 0 3 3

数据可视化