Difference between revisions of "MediaWiki:Common.js"

m
test
m (test)
m (test)
Line 3: Line 3:
mw.loader.load( 'https://cdn.jsdelivr.net/npm/uikit@3.5.8/dist/js/uikit-icons.min.js' );
mw.loader.load( 'https://cdn.jsdelivr.net/npm/uikit@3.5.8/dist/js/uikit-icons.min.js' );
mw.loader.load( 'https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js' );
mw.loader.load( 'https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js' );
var clipboard = new ClipboardJS('.btn');
 
$(document).ready(function () {
    var clipboard = new ClipboardJS('.btn');


       clipboard.on('success', function (e) {
       clipboard.on('success', function (e) {
Line 12: Line 14:
         console.log(e);
         console.log(e);
       });
       });
});