MediaWiki:Group-sysop.js: Difference between revisions

From FamilySearch Wiki
No edit summary
No edit summary
Line 4: Line 4:


var wikiErrorMessage = 'This is a test';
var wikiErrorMessage = 'This is a test';
console.log(wikiErrorMessage);
 
var siteNotice = document.querySelector('#localNotice');
var siteNotice = document.querySelector('#localNotice');
//siteNotice.innerHTML = '<div class="fs-alert fs-alert--error"><p>'+wikiErrorMessage+'</p></div>';
//siteNotice.innerHTML = '<div class="fs-alert fs-alert--error"><p>'+wikiErrorMessage+'</p></div>';

Revision as of 11:31, 24 January 2018

/* Any JavaScript here will be loaded for sysops only */

/* This code should load for all administrators */

var wikiErrorMessage = 'This is a test';

var siteNotice = document.querySelector('#localNotice');
//siteNotice.innerHTML = '<div class="fs-alert fs-alert--error"><p>'+wikiErrorMessage+'</p></div>';