User:Whiteknight/per book/Control Systems.js

// //Code to change the tab text and the page title of the page. Works only for this book.

function ControlSystemsChangeTab{ document.getElementById("ca-nstab-main").childNodes[0].innerHTML = "Control Systems" }

function ControlSystemsChangeTitle { var titleparts = wgPageName.split("/"); var bookname = titleparts[0].replace(/_/g, " "); if(titleparts.length > 0) { titleparts.splice(0, 1); var pagename = " " + titleparts.join("/").replace(/_/g, " ") + " ";   bookname = bookname + pagename; } document.getElementsByTagName('h1')[0].innerHTML = bookname; }

$(ControlSystemsChangeTab); $(ControlSystemsChangeTitle); //