Deprecated: Use of MediaWiki\Parser\Parser::$extTemplateStylesCache was deprecated in MediaWiki 1.42. [Called from MediaWiki\Extension\TemplateStyles\Hooks::onParserFirstCallInit in /var/www/html/extensions/TemplateStyles/includes/Hooks.php at line 216] in /var/www/html/includes/debug/MWDebug.php on line 372
MediaWiki:Common.js: Difference between revisions - CrabCraft Wiki Jump to content

📢 Please make sure to read our Style Guide before editing. For questions, suggestions, or technical issues, please contact Noah.

MediaWiki:Common.js: Difference between revisions

From CrabCraft Wiki
No edit summary
No edit summary
 
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. */
$(function () {
  if (localStorage.getItem('hideSitenotice') !== 'true') {
    $('#custom-sitenotice').show();
  }
  $('#sitenotice-close').on('click', function () {
    $('#custom-sitenotice').slideUp();
    localStorage.setItem('hideSitenotice', 'true');
  });
});

Latest revision as of 22:05, 23 June 2025

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

$(function () {
  if (localStorage.getItem('hideSitenotice') !== 'true') {
    $('#custom-sitenotice').show();
  }

  $('#sitenotice-close').on('click', function () {
    $('#custom-sitenotice').slideUp();
    localStorage.setItem('hideSitenotice', 'true');
  });
});