Widget: Homepage: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 118: | Line 118: | ||
// }) | // }) | ||
// console.log(platformData); | // console.log(platformData); | ||
var url = '/api.php?action=query&format=json&prop=imageinfo&iiprop=url&titles=' + platformData[0].image | var url = '/api.php?action=query&format=json&prop=imageinfo&iiprop=url&titles=' + encodeURIComponent( platformData[0].image); | ||
console.log(url) | console.log(url) | ||
var res = await fetch(url).then(response => response.json()); | var res = await fetch(url).then(response => response.json()); |
Revision as of 12:27, 2 June 2022
Development verstion of the DCT Homepage.
Not ready for production!