MediaWiki:Group-sysop.js: Difference between revisions
(Created page with "→Any JavaScript here will be loaded for sysops only: →This code should load for all administrators: var wikiErrorMessage = 'This is a test'; console.log(wikiErrorMes...") |
(No difference)
|
Revision as of 11:30, 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';
console.log(wikiErrorMessage);
var siteNotice = document.querySelector('#localNotice');
siteNotice.innerHTML = '<div class="fs-alert fs-alert--error"><p>'+wikiErrorMessage+'</p></div>';