MediaWiki:Vector.js: Difference between revisions

m
I can't really preview this so let's hope it doesn't break stuff
m (Might have missed some code on that common attempt D: ... Anyway, let's try sticking it into Vector itself. Don't break, please... D:)
m (I can't really preview this so let's hope it doesn't break stuff)
Line 118: Line 118:
  // 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=new" title="Start new section: '+pageTitle+'">+</a>]</div>';
  divContainer.innerHTML = '<div class="editsection" style="font-size: 80%">[<a href="/w/index.php?title='+pageTitle+'&action=edit&section=new" title="Start new section: '+pageTitle+'">+</a>]</div>';


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