Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 35: | Line 35: | ||
const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | const dctQueryUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(dctQuery); | ||
const dctResponse = await fetch(dctQueryUrl).then(response => response.json()); | const dctResponse = await fetch(dctQueryUrl).then(response => response.json()); | ||
console.log('Response:', dctResponse) | |||
const list = Object.getOwnPropertyNames(dctResponse.query.results).map(dctKey => { | const list = Object.getOwnPropertyNames(dctResponse.query.results).map(dctKey => { |
Revision as of 11:14, 7 June 2022
Development verstion of the DCT List.
Not ready for production!