Widget:Mybutton: verschil tussen versies

Uit basis
Naar navigatie springen Naar zoeken springen
Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 22: Regel 22:
     function button_<!--{$id}-->_handler(evt) {
     function button_<!--{$id}-->_handler(evt) {
       evt.stopPropagation();
       evt.stopPropagation();
       $.get("http://www.example.com", (res) => {console.log(res);});
       $.get("https://www.example.com", (res) => {console.log(res);});
     }
     }



Versie van 23 dec 2019 20:25

This widget allows you to embed a button on your wiki page.

Created by User:Eelco

Using this widget

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

id= text=

Issues:

  • multiple buttons per page are allowed;
  • each button on a page must have a unique name (id);

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:Mybutton.