MediaWiki:Common.js: Difference between revisions

Center the page title on Main Page and Guided Research for Online Records
(Remove deprecated GR Main Page Map code)
(Center the page title on Main Page and Guided Research for Online Records)
Line 1: Line 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. */
if ( /Main_Page/.test(document.location.href) || /Guided_Research_for_Online_Records/.test(document.location.href) ) {
    $("#content h1").css("border", "0", "textAlign", "center");
}


// Initialize Tooltips from Bootstrap
// Initialize Tooltips from Bootstrap
Line 305: Line 309:
const re = /Hauptseite|Main_Page|P%C3%A1gina_principal|Accueil|Pagina_principale|%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8|%EB%8C%80%EB%AC%B8|%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0|Huvudsida|%E9%A6%96%E9%A1%B5/;
const re = /Hauptseite|Main_Page|P%C3%A1gina_principal|Accueil|Pagina_principale|%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8|%EB%8C%80%EB%AC%B8|%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0|Huvudsida|%E9%A6%96%E9%A1%B5/;
if ( re.test(document.location.pathname) ) {
if ( re.test(document.location.pathname) ) {
// align the Heading
 
$("#firstHeading").css({"border": "0", "textAlign": "center"});
     // console.log('loading menus data');
     // console.log('loading menus data');
     const regr = /GR$/;
     const regr = /GR$/;
53,890

edits