Widget:Testbed: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
$("#input1").click(function(){ | $("#input1").click(function(){ | ||
alert(' | var api = new mw.Api(event); | ||
api.get({ | |||
action : 'wbrinsertmetric', | |||
username : 'Matt_Pijoan', | |||
question : 'TestQues', | |||
difficulty : 5, | |||
format : 'json' | |||
}, { | |||
ok : function (res) { | |||
alert('Great success'); | |||
} | |||
}); | }); | ||