Content deleted Content added
Sideswipe9th (talk | contribs) Temp disable so I can figure out the new page layout |
Sideswipe9th (talk | contribs) Ok, lets try this with a different class name, and disable the newContainer code block |
||
Line 22:
if (navTocContainer == null)
{
// get the div with the class name mw-page-container-inner
var pageContainer = document.getElementsByClassName("
if (pageContainer.length > 0)
{
Line 37:
pageContainer[0].appendChild(nav);
/*// ok, now we have a nav element in the right place, time to move its content to the right place.
var newContainer = document.createElement("div"); // create a new div
newContainer.id = "vector-toc-pinned-container"; // give it the right id
newContainer.className = "vector-pinned-container"; // give it some class
nav.appendChild(newContainer); // and append it to the navbar*/
var toolsBar = document.getElementById("vector-page-tools"); // then grab the tools bar by ID
toolsBar.disabled = true; // because enabling the tools bar will break this, we want to force it to disabled
//newContainer.appendChild(toolsBar); // and finally append the tools bar to the floating ToC
}
}
else
|