Widget: DataExporter

From LINKS Community Center
Revision as of 11:54, 15 August 2023 by <bdi>Eschmidt</bdi> (talk | contribs) (Created page with "<!DOCTYPE html> <html> <head> <script> 'use strict'; const base = 'https://links.communitycenter.eu'; const url = '/index.php?...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<!DOCTYPE html> <html>

   <head>
       <script>
           'use strict';
           const base = 'https://links.communitycenter.eu';
           const url = '/index.php?title=Category:Disaster_Community_Technology&action=raw';
           const usr = '/api.php?action=query&meta=userinfo&format=json';
           async function exportData() {
               const res = await fetch(base + usr);
               document.getElementById('output').innerText = JSON.stringify(res);
           }
       </script>
   </head>
   <body>
       <button type="button" onclick="exportData()">Export Data</button>

        
   </body>

</html>