Site News |
---|
Warning: This wiki contains spoilers. Read at your own risk! Social media: If you would like, please join our Discord server, and/or follow us on Twitter (X) or Tumblr! |
User:L95/common.js: Difference between revisions
From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
< User:L95
Tag: Undo |
No edit summary |
||
Line 7: | Line 7: | ||
workListItem.id = 'pt-work'; | workListItem.id = 'pt-work'; | ||
var linkNode=document.createElement('A'); | var linkNode=document.createElement('A'); | ||
linkNode.href = "/User:L95/Sandbox"; | linkNode.href = "wiki/User:L95/Sandbox"; | ||
linkNode.title = "Sandbox"; | linkNode.title = "Sandbox"; | ||
var text = document.createTextNode("Sandbox"); | var text = document.createTextNode("Sandbox"); |
Revision as of 17:51, 29 December 2021
function addWorkPageLink() {
var pPersonalList = document.getElementById('p-personal').getElementsByTagName( 'ul' )[0];
var workListItem=document.createElement('LI');
workListItem.className = 'spe';
workListItem.id = 'pt-work';
var linkNode=document.createElement('A');
linkNode.href = "wiki/User:L95/Sandbox";
linkNode.title = "Sandbox";
var text = document.createTextNode("Sandbox");
linkNode.appendChild(text);
workListItem.appendChild(linkNode)
pPersonalList.insertBefore(workListItem, document.getElementById('pt-logout'));
}
jQuery(document).ready( addWorkPageLink );