Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 138: Line 138:


     // Helpers
     // Helpers
     const escapeAttr = text => text ? text.replace(/\s/g, '-') : text;
     const escapeAttr = text => text ? text.replace(/\W/g, '-') : text;
     const getFilePath = title => title ? '/index.php/Special:FilePath/' + title : title;
     const getFilePath = title => title ? '/index.php/Special:FilePath/' + title : title;
     const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query);
     const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query);

Revision as of 08:38, 6 September 2022

Development verstion of the DCT List.
Not ready for production!