addNavigationBar("All Apps"); fetch(sourceURL) .then(response => response.json()) .then(json => { if (json.tintColor) setTintColor(json.tintColor) document.title = `Apps - ${json.name}`; json.apps.sort((a, b) => (new Date(b.versionDate)).valueOf() - (new Date(a.versionDate)).valueOf()); json.apps.forEach(app => { if (app.beta) return; // Ignore beta apps const urls = app.screenshotURLs; let html = `
`; html += appHeaderHTML(app); html += `

${app.subtitle ?? ""}

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