MediaWiki:Vector.js: Difference between revisions

m
oh, two divs. in two different sections.
m (I can't really preview this so let's hope it doesn't break stuff)
m (oh, two divs. in two different sections.)
Line 83: Line 83:
  // create div and set innerHTML to link
  // create div and set innerHTML to link
  var divContainer = document.createElement("div");
  var divContainer = document.createElement("div");
  divContainer.innerHTML = '<div class="editsection">[<a href="/w/index.php?title='+pageTitle+'&action=edit&section=0" title="Edit first section: '+pageTitle+'">edit top of page</a>]</div>';
  divContainer.innerHTML = '<div class="editsection" style="font-size: 80%">[<a href="/w/index.php?title='+pageTitle+'&action=edit&section=0" title="Edit first section: '+pageTitle+'">edit top of page</a>]</div>';


  // insert divContainer into the DOM below the h1
  // insert divContainer into the DOM below the h1