LLWiki正在建设中,欢迎加入我们!
Widget:年表标签/筛选
跳转到导航
跳转到搜索
JavaScript脚本:
window.addEventListener('load', function() {
document.querySelectorAll('.filter').forEach(function(ele) {
ele.addEventListener('click', function() {
setTimeout(function() {
document.querySelectorAll('#mw-content-text dl').forEach(function(parent) {
var child = parent.querySelector('dd > :not(.mw-collapsed)');
parent.style.display = child ? '' : 'none';
});
}, 50);
});
});
});
//