MediaWiki:Mobile.js: Difference between revisions

Don't use firstHeading because that's specific to destop. Both Desktop and Mobile will have #content h1
(Center the page title on Guided Research for Online Records)
(Don't use firstHeading because that's specific to destop. Both Desktop and Mobile will have #content h1)
Line 288: Line 288:
// Test if we're on one of the Main Pages. .href works for both straight titles and querystring titles
// Test if we're on one of the Main Pages. .href works for both straight titles and querystring titles
if ( /Main_Page/.test(document.location.href) || /Guided_Research_for_Online_Records/.test(document.location.href) ) {
if ( /Main_Page/.test(document.location.href) || /Guided_Research_for_Online_Records/.test(document.location.href) ) {
     $("#firstHeading").css("border", "0", "textAlign", "center");
     $("#content h1").css("border", "0", "textAlign", "center");
}
}


53,890

edits