Difference between revisions 5460 and 5475 on bswikibooks

/*</pre>
== IE scrollbar compatibility==
<pre>*/
if (window.showModalDialog && document.compatMode && document.compatMode == "CSS1Compat")
{
  var oldWidth;
  var docEl = document.documentElement;

(contracted; show full)/* </pre>
==mainpg==
<pre> */

//Main page tab no longer says article
function mainpg() 
{
if (
wgPageName == 'Početna_strana')
  {
      if(document.getElementById('ca-nstab-main'))
      {
      document.getElementById('ca-nstab-main').firstChild.innerHTML = 'početna strana';
      }   
  }
else if(document.title.indexOf("Početna strana") != -1mw.config.get('wgIsMainPage'))
  {
      if(document.getElementById('ca-nstab-main'))
      {
      document.getElementById('ca-nstab-main').firstChild.innerHTML = 'početna strana';
      }   
  }
}
(contracted; show full)
 var mpTitle = "Početna strana";
 var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle);
 var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));

 if (isMainPage && !isDiff)
	mw.util.addCSS('#lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; }');

/* </pre> */