Widget: Homepage: Difference between revisions

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


     <script>
     <script>
         var query = '[[Category:Social media platform]]|?IMAGE|?Special:FilePath';
         async function data() {
        fetch('/api.php?action=ask&format=json&query=' + encodeURIComponent(query))
            var query = '[[Category:Social media platform]]|?IMAGE|?Special:FilePath';
            .then(response => response.json())
            var data  = await fetch('/api.php?action=ask&format=json&query=' + encodeURIComponent(query)).then(response => response.json());
             .then(data => console.log(data))
             console.log(data)
        }
     </script>
     </script>



Revision as of 11:59, 2 June 2022

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