MediaWiki:Common.js: Difference between revisions
Appearance
Cdjensen94 (talk | contribs) |
Cdjensen94 (talk | contribs) |
||
| Line 15: | Line 15: | ||
}); | }); | ||
$(function () { | $(function () { | ||
// 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); | ||