insertNavigationBar("All Apps"); function main(json) { // Set tab title document.title = `Apps - ${json.name}`; // Sort apps in decending order of version date (newest first) json.apps.sort((a, b) => (new Date(b.versionDate)).valueOf() - (new Date(a.versionDate)).valueOf()); // Create & insert app items json.apps.forEach(app => { if (app.beta) return; // Ignore beta apps let html = `
${appHeaderHTML(app) }

${app.subtitle ?? ""}

`; if (app.screenshotURLs) { html += `
`; for (let i = 0; i < app.screenshotURLs.length, i < 2; i++) html += ` `; html += `
`; } html += `
`; document.getElementById("apps").insertAdjacentHTML("beforeend", html); }); }