110
edits
Changes
no edit summary
$(function() {
$('.playground').append('<span class="toggle-states"><a onclick="if ($(\'.mw-collapsible-content\').toggleClasshasClass(\'force-expand\')) { $(\'.mw-collapsible-content\').removeClass(\'force-expand\'); $(\'.mw-collapsible-content\').addClass(\'force-collapse\'); } else { $(\'.mw-collapsible-content\').removeClass(\'force-expand\'); };/*$(\'.mw-collapsible-bracket\').trigger(\'click\');*/">Show/Hide All</a></span>');}); /*if ($(\'.mw-collapsible-content\').hasClass(\'force-expand\')) { $(\'.mw-collapsible-content\').removeClass(\'force-expand\'); $(\'.mw-collapsible-content\').addClass(\'force-collapse\'); } else { $(\'.mw-collapsible-content\').removeClass(\'force-expand\'); }*/