MediaWiki:Example.js: Difference between revisions
Jump to navigation
Jump to search
Miraheze>Adám Brudzewsky No edit summary |
m (4 revisions imported: Migrate from miraheze) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
if($("#Longer_examples").length){ | if($("#Longer_examples").length){ | ||
console.log("yes: test js loaded"); | console.log("yes: test js loaded"); | ||
Longer_examples.onclick=function(){alert('hi')}; | |||
} else { | } else { | ||
console.log("no: skipped test js"); | console.log("no: skipped test js"); | ||
} | } |
Latest revision as of 15:34, 20 November 2019
console.log("load test js?"); if($("#Longer_examples").length){ console.log("yes: test js loaded"); Longer_examples.onclick=function(){alert('hi')}; } else { console.log("no: skipped test js"); }