Jump to content

MediaWiki:Common.js: Difference between revisions

Line 15: Line 15:
});
});
$(function () {
$(function () {
  // Where to display
  // Only run on the Main Page
  if (mw.config.get('wgPageName') !== 'Continuum_Universes_Wiki') return;
 
   var $spot = $('<div id="lore-spotlight"><h3>Random Lore Spotlight</h3><div class="content">Loading…</div></div>');
   var $spot = $('<div id="lore-spotlight"><h3>Random Lore Spotlight</h3><div class="content">Loading…</div></div>');
   $('#mw-content-text').prepend($spot);
   $('#mw-content-text').prepend($spot);