User:Sideswipe9th/V22FloatingToolsMenu-debug-copy.js: Difference between revisions

Content deleted Content added
Temp disable so I can figure out the new page layout
Ok, lets try this with a different class name, and disable the newContainer code block
Line 22:
if (navTocContainer == null)
{
/*// it does not, so we're on a ToCless page
// get the div with the class name mw-page-container-inner
var pageContainer = document.getElementsByClassName("mwvector-pagecolumn-container-innerstart");
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