Widget:Mymodules: verschil tussen versies

Uit basis
Naar navigatie springen Naar zoeken springen
Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 17: Regel 17:
       // data: array of objects; per object:  
       // data: array of objects; per object:  
       var html = "<tr> <th> Page </th> <th> kind </th> <th> time </th> </tr>\n";
       var html = "<tr> <th> Page </th> <th> kind </th> <th> time </th> </tr>\n";
      console.log(typeof data);
       data.forEach( (obj) => {
       data.forEach( (obj) => {
         html = html + "<tr>" +  
         html = html + "<tr>" +  
Regel 31: Regel 32:
       $.get("https://transparent-spruce.glitch.me/users/" + mw.config.get("wgUserId") + "/events", (res) => {
       $.get("https://transparent-spruce.glitch.me/users/" + mw.config.get("wgUserId") + "/events", (res) => {
         console.log(res);
         console.log(res);
         dest.innerHTML = make_modules_table(res);
         dest.innerHTML = make_modules_table(JSON.parse(res));
       });
       });
     }
     }

Versie van 30 dec 2019 11:50

This widget given an overview of your module status

Created by User:Eelco

Using this widget

For information on how to use this widget, see ???

text= kind= (string/identifier)

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Mymodules.