MediaWiki:Common.js

var BossDialogueBefore = $('.BossDialogueBefore'); var BossDialogueAfter = $('.BossDialogueAfter'); var BeforeCollapse = $('#BeforeCollapse'); var AfterCollapse = $('#AfterCollapse'); BossDialogueBefore.on('click', function { BeforeCollapse.toggleClass('uncollapse');  BossDialogueBefore.toggleClass('uncollapse'); }); BossDialogueAfter.on('click', function { AfterCollapse.toggleClass('uncollapse');  BossDialogueAfter.toggleClass('uncollapse'); });