Widget:Sandbox3: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<script type="text/javascript">
<script type="text/javascript">
function prod(){
try{
poke()
alert('I guess you do exist')
}
catch(e){
alert('You are not logged in. Please log in to continue')
}
}
function poke() {
var api = new mw.Api();
var api = new mw.Api();
api.get( {
api.get( {
Line 13: Line 23:
  }
  }
  } );
  } );
}
</script>
</script>
<input type="button" onclick="prod()" />
</includeonly>
</includeonly>

Latest revision as of 16:06, 22 October 2012