User:Henneyj/wikia.js

importStylesheet('User:Hofmic/Collapsible_news.css'); $('#news_section').children.each(function {   $(this).click(function { $(this).children.each(function {           var id = $(this).attr('id');            var disp = $(this).attr('class');            if (id == "news_body_shrinkable") {                $(this).toggle;                $(this).parent('class', (disp == "show" ? 'hide' : 'show'));            }        }); }); })