Widget: DevGuidelines: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 29: | Line 29: | ||
<script> | <script> | ||
'use strict'; | 'use strict'; | ||
const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query); | |||
const guidelineQuery = '[[Category:Guideline]]' | |||
+ '|?Disaster Management Phase new' | |||
+ '|?Covers Thematic' | |||
+ '|?Audience Experience Level' | |||
+ '|?Target Audience' | |||
+ '|?Language' | |||
+ '|?Year Published'; | |||
async function getGuidelines() { | |||
const resp = await fetch(getQueryUrl(guidelineQuery)).then(response => reponse.json()); | |||
console.log(resp); | |||
} | |||
</script> | </script> | ||
<div id="guideline-list-wrapper"> | <div id="guideline-list-wrapper"> |
Revision as of 15:31, 31 August 2022
Development version of the List of Guidelines.
Not ready for production!