Widget: Homepage: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 121: | Line 121: | ||
encodeURIComponent(platformData.map(platform => platform.image).join('|')); | encodeURIComponent(platformData.map(platform => platform.image).join('|')); | ||
var res = await fetch(imageUrlQuery).then(response => response.json()); | var res = await fetch(imageUrlQuery).then(response => response.json()); | ||
Object.getOwnPropertyNames(res.query.pages).forEach(pageId => { | |||
var filename = res.query.pages[pageId].title; | |||
platformData[platformData.findIndex(platform => platform.image === filename)].image = filename; | |||
}); | |||
console.log(platformData) | |||
} | } | ||
Revision as of 13:07, 2 June 2022
Development verstion of the DCT Homepage.
Not ready for production!