Difference between revisions of "Widget:Homepage"
From LINKS Community Center
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 14:09, 2 June 2022
Development verstion of the DCT Homepage.
Not ready for production!