Widget: Homepage: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 124: | Line 124: | ||
Object.getOwnPropertyNames(res.query.pages).forEach(pageId => { | Object.getOwnPropertyNames(res.query.pages).forEach(pageId => { | ||
var filename = res.query.pages[pageId].title; | var filename = res.query.pages[pageId].title; | ||
platformData[platformData.findIndex(platform => platform.image === filename)].image = | var url = res.query.pages[pageId].imageinfo[0].url; | ||
platformData[platformData.findIndex(platform => platform.image === filename)].image = url; | |||
}); | }); | ||
console.log( | console.log(platformData) | ||
Revision as of 13:09, 2 June 2022
Development verstion of the DCT Homepage.
Not ready for production!