「MediaWiki:Common.js」の版間の差分

提供: Yourpedia
移動: 案内検索
(新しいページ: 'Any JavaScript here will be loaded for all users on every page load.: var isViewingMainPage = (/^MediaWiki(\/..)? - MediaWiki$/.test(document.title)); if (isViewingMainPa...')
 
1行目: 1行目:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
  
var isViewingMainPage = (/^MediaWiki(\/..)? - MediaWiki$/.test(document.title));
+
var isViewingMainPage = (/^メインページ(\/..)? - Yourpedia$/.test(document.title));
 
if (isViewingMainPage) {
 
if (isViewingMainPage) {
 
   document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, h1.firstHeading { display: none !important; } #content { padding-top: 1em; }/*]]>*/</style>');
 
   document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, h1.firstHeading { display: none !important; } #content { padding-top: 1em; }/*]]>*/</style>');
 
}
 
}

2007年5月5日 (土) 07:29時点における版

/* Any JavaScript here will be loaded for all users on every page load. */

var isViewingMainPage = (/^メインページ(\/..)? - Yourpedia$/.test(document.title));
if (isViewingMainPage) {
  document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, h1.firstHeading { display: none !important; } #content { padding-top: 1em; }/*]]>*/</style>');
}