Widget: Homepage: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 110: | Line 110: | ||
console.log(platformResponse) | console.log(platformResponse) | ||
var platformData = Object.getOwnPropertyNames(platformResponse.query.results).map(pName => { | var platformData = Object.getOwnPropertyNames(platformResponse.query.results).map(pName => { | ||
return { name: pName, image: platformResponse.query.results[pName].printouts.IMAGE[0].fulltext.replace('PAGENAME:', '') }; | return { | ||
name: pName, | |||
image: platformResponse.query.results[pName].printouts.IMAGE[0].fulltext.replace('PAGENAME:', '').replace(' ', '_') | |||
}; | |||
}); | }); | ||
Revision as of 12:39, 2 June 2022
Development verstion of the DCT Homepage.
Not ready for production!