MediaWiki:ShareMenu/code.js

$(function{  if(document.getElementById("VectoredShareMenu") != null){      return;   }   var workingSkin = mw.config.get("skin");   if( workingSkin === "wikia" || workingSkin === "oasis") {   $("nav").first.append('   '); } $("#p-wikicities-nav").after('  '); $("#top-syslinks").append('<circle cx="5" cy="15" r="5" style="fill:#000000;stroke:#000000;stroke-width:0;" /><circle cx="20" cy="5" r="5" style="fill:#000000;stroke:#000000;stroke-width:0;" /><circle cx="20" cy="25" r="5" style="fill:#000000;stroke:#000000;stroke-width:0;" /><polyline points="20,5,5,15,20,25" style="stroke:#000000;stroke-width:5;fill:none;" /> <div style="background-color:#000000; color: #00FF00; width:28em; height:45em; overflow:scroll; display:none; position:fixed; top:6.25em; right:0.1em; z-index:4096; padding:0.5em;" id="PowerShareMenu"> '); }); $('#VectoredShareMenu').ready(function{ document.getElementById("VectoredShareMenu").addEventListener("click", function{  var visible = document.getElementById("PowerShareMenu").style.display;   if(visible=="none"){ document.getElementById("PowerShareMenu").style.display = "inline";   }   else{   document.getElementById("PowerShareMenu").style.display = "none";   } }); }); //