grote reorganisatie:

- HLN, NOS, NU, VRT: per week -> per dag
- yyyy-ww -> yyyy.ww
- yyyy*  -> yyyy/yyyy*
etc
This commit is contained in:
Peter Kleiweg
2026-05-27 22:42:03 +02:00
parent e430ff576b
commit 5c651387af
46 changed files with 328 additions and 227 deletions

View File

@@ -133,7 +133,9 @@ function makeTD(title, values) {
async function loadSource(source, week) {
if (!data.has(week)) {
data[week] = await getJSON('DATA-' + week + '-4.json')
data[week] = await getJSON(
week.substring(0, 4) + '/DATA-' + week + '-4.json',
)
}
idSubtitle.innerHTML = source + ' — t/m ' + data[week].last
@@ -154,7 +156,9 @@ async function loadSource(source, week) {
async function loadPart(part, week) {
if (!data.has(week)) {
data[week] = await getJSON('DATA-' + week + '-4.json')
data[week] = await getJSON(
week.substring(0, 4) + '/DATA-' + week + '-4.json',
)
}
idSubtitle.innerHTML = part + ' — t/m ' + data[week].last
@@ -185,7 +189,9 @@ async function loadWeken(source, part) {
if (i < dates.length) {
var week = dates[i].week
if (!data.has(week)) {
data[week] = await getJSON('DATA-' + week + '-4.json')
data[week] = await getJSON(
week.substring(0, 4) + '/DATA-' + week + '-4.json',
)
}
var values = data[week][source][part]
tr.appendChild(makeTD('t/m ' + data[week].last, values))