Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 176: | Line 176: | ||
async function getDcts() { | async function getDcts() { | ||
// TEST TEST TEST TEST TEST TEST TEST | // TEST TEST TEST TEST TEST TEST TEST | ||
const fq = '[[Category:Function_category]]'; | const CKEY = 'children' | ||
const fq = '[[Category:Function_category]]' + | |||
'|?-Subproperty_of=' + CKEY; | |||
const qUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(fq); | const qUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(fq); | ||
const fRes = await fetch(qUrl).then(response => response.json()); | const fRes = await fetch(qUrl).then(response => response.json()); | ||
console.log('Func result', fRes); | console.log('Func result', fRes); | ||
const re = /^.+:(.+)$/; | |||
// TEST TEST TEST TEST TEST TEST TEST | // TEST TEST TEST TEST TEST TEST TEST | ||
Revision as of 12:10, 30 August 2022
Development verstion of the DCT List.
Not ready for production!