MediaWiki:Example.js: Difference between revisions

Jump to navigation Jump to search
m
4 revisions imported: Migrate from miraheze
Miraheze>Adám Brudzewsky
(activate)
m (4 revisions imported: Migrate from miraheze)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
console.log("load test js?");
if($("#Longer_examples").length){
if($("#Longer_examples").length){
  $("#Longer_examples").onclick=Longer_examples.onclick=function(){alert('hi')};
console.log("yes: test js loaded");
Longer_examples.onclick=function(){alert('hi')};
} else {
console.log("no: skipped test js");
}
}

Navigation menu