MediaWiki:Gadget-cosmostweaks.js: Difference between revisions
test Tag: Manual revert |
No edit summary Tag: Manual revert |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 58: | Line 58: | ||
document.documentElement.classList.add('fullwide'); | document.documentElement.classList.add('fullwide'); | ||
} | } | ||
const article = $('.cosmos-articleContainer'); | |||
$(function () { | $(function () { | ||
| Line 204: | Line 203: | ||
railToggle.click(function(){ | railToggle.click(function(){ | ||
article.toggleClass('ct-railshown'); | |||
if ( | if (article.is('.ct-railshown')) { | ||
$('#CosmosRail').css('display', 'none').fadeIn(500); | $('#CosmosRail').css('display', 'none').fadeIn(500); | ||
} | } | ||