Widget: UseCaseList: Difference between revisions
From LINKS Community Center
Cschwentker (talk | contribs) m (Protected "Widget:UseCaseList" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
Cschwentker (talk | contribs) No edit summary |
||
Line 258: | Line 258: | ||
const PHASES = ["Before", "During", "After"]; | const PHASES = ["Before", "During", "After"]; | ||
const EX_LEVEL = ["Starter", "Intermediate", "Advanced"]; | const EX_LEVEL = ["Starter", "Intermediate", "Advanced"]; | ||
const SCALE = ["Country", "County", "City"]; | |||
const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query); | const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query); | ||
Line 437: | Line 438: | ||
document.getElementById('category-filter').innerHTML = categoryHtml; | document.getElementById('category-filter').innerHTML = categoryHtml; | ||
let scaleHtml = Array.from( | let scaleHtml = Array.from(SCALE.values()).reduce((acc, curr) => { | ||
const identifier = escapeAttr(curr); | const identifier = escapeAttr(curr); | ||
return acc | return acc |
Revision as of 12:57, 6 December 2022
current version of the List of Use Cases.
Currently in use