Content deleted Content added
DreamRimmer (talk | contribs) fix date parser Tag: Reverted |
DreamRimmer (talk | contribs) rm summary table Tag: Reverted |
||
Line 623:
html += `</select></p>`;
const defaultAge = 7;▼
if (defaultFilteredRfcs.length > 0) {▼
html += `<h4>Current RfCs (${defaultAge} days or newer)</h4><table class="wikitable sortable"><thead><tr><th>Topic</th><th>Title</th><th>Days Old</th><th>Started</th></tr></thead><tbody>`;▼
defaultFilteredRfcs.sort((a, b) => a.daysOld - b.daysOld).forEach(rfc => {▼
html += `<tr><td>${rfc.topic}</td><td><a href="${rfc.url}" target="_blank">${rfc.title}</a></td><td>${rfc.daysOld}</td><td>${rfc.timestamp}</td></tr>`;▼
});▼
html += '</tbody></table>';▼
} else {▼
html += `<p>No RfCs found that are ${defaultAge} days old or newer.</p>`;▼
}▼
ageOptions.forEach(age => {
const displayStyle = age === 7 ? 'block' : 'none';
html += `<div class="rfc-main-table" data-age="${age}" style="display: ${displayStyle};">`;
html += `<h4>Current RfCs (${age} days or newer) - ${filteredRfcs.length} total</h4>`;
▲
▲ html += `<tr><td>${rfc.topic}</td><td><a href="${rfc.url}" target="_blank">${rfc.title}</a></td><td>${rfc.daysOld}</td><td>${rfc.timestamp}</td></tr>`;
▲ });
▲ html += '</tbody></table>';
▲ } else {
html += `<h4>Current RfCs (${age} days or newer)</h4>`;
});
topicNames.forEach(topic => {▼
});▼
▲ html += '</tr>';
ageOptions.forEach(age => {
Line 682 ⟶ 673:
const selectedAge = document.getElementById('rfc-age-filter').value;
const groups = document.querySelectorAll('.rfc-age-group');
const tables = document.querySelectorAll('.rfc-main-table');
groups.forEach(group => {
group.style.display = group.dataset.age == selectedAge ? 'block' : 'none';
▲ });
table.style.display = table.dataset.age == selectedAge ? 'block' : 'none';
});
}
|